Name

CWPRETSTRUCT

Synopsis

Contains information that the WH_CALLWNDPROCRET hook uses. This structure is similar to the CWPSTRUCT structure that the WH_CALLWNDPROC hook uses, except that this structure contains an extra member, lResult:

Public Type CWPRETSTRUCT
        lResult As Long
        lParam As Long
        wParam As Long
        message As Long
        hwnd As Long
End Type

Structure Members

lResult

The return value of the window procedure after processing the message

lParam

The second parameter of the message

wParam

The first parameter of the message

message

The message identifier

hwnd

The window handle that the message is directed to

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.