Applies to: desktop apps only
Contains information about a low-level mouse input event.
Syntax
typedef struct tagMSLLHOOKSTRUCT {
POINT pt;
DWORD mouseData;
DWORD flags;
DWORD time;
ULONG_PTR dwExtraInfo;
} MSLLHOOKSTRUCT, *PMSLLHOOKSTRUCT, *LPMSLLHOOKSTRUCT;
Members
- pt
-
Type: POINT
-
The x- and y-coordinates of the cursor, in screen coordinates.
- mouseData
-
Type: DWORD
-
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. Otherwise, mouseData is not used.
Value Meaning - XBUTTON1
- 0x0001
The first X button was pressed or released.
- XBUTTON2
- 0x0002
The second X button was pressed or released.
- flags
-
Type: DWORD
-
The event-injected flag. An application can use the following value to test the mouse flags.
Value Meaning - LLMHF_INJECTED
- 0x00000001
Test the event-injected flag.
- time
-
Type: DWORD
-
The time stamp for this message.
- dwExtraInfo
-
Type: ULONG_PTR
-
Additional information associated with the message.
Requirements
|
Minimum supported client | Windows 2000 Professional |
|---|---|
|
Minimum supported server | Windows 2000 Server |
|
Header |
|
See also
- Reference
- LowLevelMouseProc
- SetWindowsHookEx
- WM_MOUSEWHEEL
- WM_XBUTTONDOWN
- WM_XBUTTONUP
- WM_XBUTTONDBLCLK
- WM_NCXBUTTONDOWN
- WM_NCXBUTTONUP
- WM_NCXBUTTONDBLCLK
- Conceptual
- Hooks
- Other Resources
- POINT
Send comments about this topic to Microsoft
Build date: 2/3/2012
The MSLLHOOKSTRUCT structure contains information about a low-level keyboard input event.
<StructLayout(LayoutKind.Sequential)> _
Public Structure MSLLHOOKSTRUCT
Public pt As POINTAPI 'This is point structure reffered in See Also at this page
Public mouseData As Integer
Public ReadOnly Property mouseData_high() As Short
Get
Return (mouseData And &HFFFF0000) >> 16
End Get
End Property
Public ReadOnly Property mouseData_low() As Short
Get
Return mouseData And &HFFFF
End Get
End Property
Public flags As MSLLHOOKSTRUCTFlags
Public time As Integer
Public dwExtraInfo As IntPtr
End Structure
<Flags()> _
Public Enum MSLLHOOKSTRUCTFlags As Integer
LLMHF_INJECTED = 1
End Enum