IWin32WindowExtensionsSendMessage(IWin32Window, Int32, IntPtr, IntPtr) Method

Sends the specified message to the specified window.

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.Extensions.IWin32WindowExtensions
Assembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
public static IntPtr SendMessage(
	this IWin32Window window,
	int msg,
	IntPtr wParam,
	IntPtr lParam
)

Parameters

window  IWin32Window
The source window.
msg  Int32
The message to be sent.
wParam  IntPtr
Additional message-specific information.
lParam  IntPtr
Additional message-specific information.

Return Value

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

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IWin32Window. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).

See Also