EVENTMSG in JournalRecordProc & JournalPlayBackProc - Programmers Heaven

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

EVENTMSG in JournalRecordProc & JournalPlayBackProc

When we install JournalRecordProc or JournalPlayBackProc, we shall handle EVENTMSG structure. If EVENTMSG contains a keyboard message, what's the meaning of the paramL and paramH?

Thanks for your help.

Comments

  • pritaeaspritaeas Posts: 274Member
    Hi. Taken from MSDN:

    The message element of the EVENTMSG structure is the message ID for the message, the WM_* value. The paramL and paramH values depend on whether the event is a mouse or a keyboard event. If it is a mouse event, the values contain the x and y coordinates of the event. If it is a keyboard event, paramL contains the scan code in the HIBYTE and the virtual-key code in the LOBYTE, and paramH contains the repeat count. Bit 15 of the repeat count specifies whether the event is an extended key. The time element of the EVENTMSG structure contains the system time (when the event occurred), which it obtained from the return value of GetTickCount. The hwnd is the window handle for the event.

    This is the link where the text comes from:

    http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnwui/html/msdn_hooks32.asp

    hth, pritaeas

    : When we install JournalRecordProc or JournalPlayBackProc, we shall
    : handle EVENTMSG structure. If EVENTMSG contains a keyboard message,
    : what's the meaning of the paramL and paramH?
Sign In or Register to comment.