User32DispatchMessage Method

Dispatches a message to a window procedure.

It is typically used to dispatch a message retrieved by the GetMessage(NativeMessage, IntPtr, UInt32, UInt32) function.

Definition

Namespace: DevCase.Win32.NativeMethods
Assembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
[DllImportAttribute("User32.dll", CharSet = CharSet.Auto)]
public static IntPtr DispatchMessage(
	in NativeMessage refMsg
)

Parameters

refMsg  NativeMessage
A pointer to a structure that contains the message.

Return Value

IntPtr
The return value specifies the value returned by the window procedure.

Although its meaning depends on the message being dispatched, the return value generally is ignored.

Remarks

See Also