Platform SDK: Interprocess Communications

MSLLHOOKSTRUCT

The MSLLHOOKSTRUCT structure contains information about a low-level keyboard input event.

typedef struct tagMSLLHOOKSTRUCT {
    POINT     pt;
    DWORD     mouseData;
    DWORD     flags;
    DWORD     time;
    ULONG_PTR dwExtraInfo;
} MSLLHOOKSTRUCT, *PMSLLHOOKSTRUCT;

Members

pt
Specifies a POINT structure that contains the x- and y-coordinates of the cursor, in screen coordinates.
mouseData

If the message is WM_MOUSEWHEEL, the high-order word of this member is the wheel delta. The low-order word is reserved. A positive value indicates that the wheel was rotated forward, away from the user; a negative value indicates that the wheel was rotated backward, toward the user. One wheel click is defined as WHEEL_DELTA, which is 120.

If the message is WM_XBUTTONDOWN, WM_XBUTTONUP, WM_XBUTTONDBLCLK, WM_NCXBUTTONDOWN, WM_NCXBUTTONUP, or WM_NCXBUTTONDBLCLK, the high-order word specifies which X button was pressed or released, and the low-order word is reserved. This value can be one or more of the following values.

Value Meaning
XBUTTON1 The first X button was pressed or released.
XBUTTON2 The second X button was pressed or released.

Otherwise, mouseData is not used.

flags
Specifies the event-injected flag.
Value Meaning
0 Specifies whether the event was injected. The value is 1 if the event was injected; otherwise, it is 0.
1-15 Reserved.

An application can use the following value to test the mouse flags.
Value Purpose
LLMHF_INJECTED Test the event-injected flag.

time
Specifies the time stamp for this message.
dwExtraInfo
Specifies extra information associated with the message.

Requirements

  Windows NT/2000: Requires Windows NT 4.0 SP3 or later.
  Windows 95/98: Unsupported.
  Header: Declared in Winuser.h; include Windows.h.

See Also

Hooks Overview, Hook Structures, LowLevelMouseProc, POINT, SetWindowsHookEx, WM_MOUSEWHEEL, WM_XBUTTONDOWN, WM_XBUTTONUP, WM_XBUTTONDBLCLK, WM_NCXBUTTONDOWN, WM_NCXBUTTONUP, WM_NCXBUTTONDBLCLK