CWPSTRUCT structure (Windows)

Switch View :
ScriptFree
CWPSTRUCT structure

Applies to: desktop apps only

Defines the message parameters passed to a WH_CALLWNDPROC hook procedure, CallWndProc.

Syntax

typedef struct tagCWPSTRUCT {
  LPARAM lParam;
  WPARAM wParam;
  UINT   message;
  HWND   hwnd;
} CWPSTRUCT, *PCWPSTRUCT, *LPCWPSTRUCT;

Members

lParam

Type: LPARAM

Additional information about the message. The exact meaning depends on the message value.

wParam

Type: WPARAM

Additional information about the message. The exact meaning depends on the message value.

message

Type: UINT

The message.

hwnd

Type: HWND

A handle to the window to receive the message.

Requirements

Minimum supported client

Windows 2000 Professional

Minimum supported server

Windows 2000 Server

Header

Winuser.h (include Windows.h)

See also

Reference
CallWndProc
SetWindowsHookEx
Conceptual
Hooks

 

 

Send comments about this topic to Microsoft

Build date: 2/3/2012

Community Content

Thomas Lee
VB.NET Declaration
<System.Runtime.InteropServices.StructLayout(System.Runtime.InteropServices.LayoutKind.Sequential)> _
Public Structure CWPSTRUCT
Public lParam As IntPtr
Public wParam As IntPtr
Public message As Integer
Public hWnd As IntPtr
End Structure