Platform SDK: Interprocess Communications |
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;
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.
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. |
Windows NT/2000: Requires Windows NT 4.0 SP3 or later.
Windows 95/98: Unsupported.
Header: Declared in Winuser.h; include Windows.h.
Hooks Overview, Hook Structures, LowLevelMouseProc, POINT, SetWindowsHookEx, WM_MOUSEWHEEL, WM_XBUTTONDOWN, WM_XBUTTONUP, WM_XBUTTONDBLCLK, WM_NCXBUTTONDOWN, WM_NCXBUTTONUP, WM_NCXBUTTONDBLCLK