SendMessage Method (IntPtr, UInt32, Int32, StringBuilder)

Vista Bridge Library

[This is preliminary documentation and is subject to change.]

Sends a window message.

Namespace:  Microsoft.SDK.Samples.VistaBridge.Library
Assembly:  VistaBridgeLibrary (in VistaBridgeLibrary.dll) Version: 1.4.0.0 (1.4.0.0)

Syntax

C#
[PermissionSetAttribute(SecurityAction.Demand, Name = "FullTrust")]
public static IntPtr SendMessage(
	IntPtr hWnd,
	uint msg,
	ref int wParam,
	StringBuilder lParam
)
Visual Basic (Declaration)
<PermissionSetAttribute(SecurityAction.Demand, Name := "FullTrust")> _
Public Shared Function SendMessage ( _
	hWnd As IntPtr, _
	msg As UInteger, _
	ByRef wParam As Integer, _
	lParam As StringBuilder _
) As IntPtr
Visual C++
[PermissionSetAttribute(SecurityAction::Demand, Name = L"FullTrust")]
public:
static IntPtr SendMessage(
	IntPtr hWnd, 
	unsigned int msg, 
	int% wParam, 
	StringBuilder^ lParam
)

Parameters

hWnd
Type: System..::.IntPtr
The window handle.
msg
Type: System..::.UInt32
The window message.
wParam
Type: System..::.Int32 %
The wParam argument.
lParam
Type: System.Text..::.StringBuilder
The lParam argument.

Return Value

The value returned by the win32 call.

Permissions

PermissionDescription
System.Security.Permissions..::.SecurityPermissionDemand value: Demand; Named Permission Sets: FullTrust.

See Also