Name

MSLLHOOKSTRUCT

Synopsis

Contains information used by the WH_MOUSE_LL hook:

Public Type MSLLHOOKSTRUCT
        pt As POINTAPI
        mousedata As Long
        flags As Long
	    time As Long
        dwExtraInfo As Long
End Type

Structure Members

pt

The x and y coordinates of the mouse pointer.

mousedata

If the wParam parameter specifies the WM_MOUSEWHEEL message, the high-order word of this member contains the mouse wheel delta (a positive value means that the mouse wheel was rolled forward, a negative value means that it was rolled backward). If the wParam parameter specifies that an XButton was clicked, the high-order word of this member determines whether the first or second XButton was pressed. The low-order word is reserved by the system in both cases.

flags

Determines whether the message was injected. If ANDing this flag with 1 results in a 1 or True, this message was injected; otherwise, the message was not injected. You can inject a mouse message into the messaging system by using the SendInput function defined in Chapter 12.

time

The time that this message was posted to the message queue.

dwExtraInfo

Extra information.

Get Subclassing and Hooking with Visual Basic now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.