User32SendMessage(SafeHandle, Int32, IntPtr, StringBuilder) Method

Sends the specified message to a window or windows.

The SendMessage function calls the window procedure for the specified window and does not return until the window procedure has processed the message.

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, BestFitMapping = false, 
	ThrowOnUnmappableChar = true, SetLastError = true)]
public static IntPtr SendMessage(
	SafeHandle hWnd,
	int msg,
	IntPtr wParam,
	StringBuilder lParam
)

Parameters

hWnd  SafeHandle
A handle to the window whose window procedure will receive the message.
msg  Int32
The message to be sent.
wParam  IntPtr
Additional message-specific information.
lParam  StringBuilder
Additional message-specific information.

Return Value

IntPtr
The return value specifies the result of the message processing; it depends on the message sent.

Remarks

See Also