HwndSourceHook HwndSourceHook HwndSourceHook HwndSourceHook Delegate

Definition

Represents the method that handles Win32 window messages.

public delegate IntPtr HwndSourceHook(IntPtr hwnd, int msg, IntPtr wParam, IntPtr lParam, bool % handled);
public delegate IntPtr HwndSourceHook(IntPtr hwnd, int msg, IntPtr wParam, IntPtr lParam, ref bool handled);
type HwndSourceHook = delegate of nativeint * int * nativeint * nativeint *  -> nativeint
Public Delegate Function HwndSourceHook(hwnd As IntPtr, msg As Integer, wParam As IntPtr, lParam As IntPtr, ByRef handled As Boolean) As IntPtr 

Parameters

hwnd
IntPtr IntPtr IntPtr IntPtr

The window handle.

msg
Int32 Int32 Int32 Int32

The message ID.

wParam
IntPtr IntPtr IntPtr IntPtr

The message's wParam value.

lParam
IntPtr IntPtr IntPtr IntPtr

The message's lParam value.

handled
Boolean Boolean Boolean Boolean

A value that indicates whether the message was handled. Set the value to true if the message was handled; otherwise, false.

Return Value

System.IntPtr

The appropriate return value depends on the particular message. See the message documentation details for the Win32 message being handled.

Inheritance
HwndSourceHookHwndSourceHookHwndSourceHookHwndSourceHook

Remarks

Use the AddHook method to register this handler to receive messages.

Applies to

See also