Platform SDK: Interprocess Communications

MOUSEHOOKSTRUCT

The MOUSEHOOKSTRUCT structure contains information about a mouse event passed to a WH_MOUSE hook procedure, MouseProc.

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

Members

pt
Specifies a POINT structure that contains the x- and y-coordinates of the cursor, in screen coordinates.
hwnd
Handle to the window that will receive the mouse message corresponding to the mouse event.
wHitTestCode
Specifies the hit-test value. For a list of hit-test values, see the description of the WM_NCHITTEST message.
dwExtraInfo
Specifies extra information associated with the message.

Requirements

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

See Also

Hooks Overview, Hook Structures, MouseProc, POINT, SetWindowsHookEx, WM_NCHITTEST