MOUSEHOOKSTRUCT structure (Windows)

Switch View :
ScriptFree
MOUSEHOOKSTRUCT structure

Applies to: desktop apps only

Contains information about a mouse event passed to a WH_MOUSE hook procedure, MouseProc.

Syntax

typedef struct tagMOUSEHOOKSTRUCT {
  POINT     pt;
  HWND      hwnd;
  UINT      wHitTestCode;
  ULONG_PTR dwExtraInfo;
} MOUSEHOOKSTRUCT, *PMOUSEHOOKSTRUCT, *LPMOUSEHOOKSTRUCT;

Members

pt

Type: POINT

The x- and y-coordinates of the cursor, in screen coordinates.

hwnd

Type: HWND

A handle to the window that will receive the mouse message corresponding to the mouse event.

wHitTestCode

Type: UINT

The hit-test value. For a list of hit-test values, see the description of the WM_NCHITTEST 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

Winuser.h (include Windows.h)

See also

Reference
MouseProc
SetWindowsHookEx
WM_NCHITTEST
Conceptual
Hooks

 

 

Send comments about this topic to Microsoft

Build date: 2/3/2012