How to convert WinEventProc's dwmsEventTime parameter to DateTime? RRS feed

  • Question

  • MSDN says it's the event time in milliseconds but I'm unable to convert it to .NET datetime format. Anyone knows how to do that?

    delegatevoidWinEventDelegate(IntPtrhWinEventHook, uinteventType, IntPtrhwnd, intidObject, intidChild, uintdwEventThread, uintdwmsEventTime);

    From MSDN:


    Type: DWORD

    Specifies the time, in milliseconds, that the event was generated.

    Wednesday, May 21, 2014 1:16 PM