SendMessage Method (IntPtr, UInt32, Int32, String)

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 int SendMessage(
	IntPtr hWnd,
	uint msg,
	int wParam,
	string lParam
)
Visual Basic (Declaration)
<PermissionSetAttribute(SecurityAction.Demand, Name := "FullTrust")> _
Public Shared Function SendMessage ( _
	hWnd As IntPtr, _
	msg As UInteger, _
	wParam As Integer, _
	lParam As String _
) As Integer
Visual C++
[PermissionSetAttribute(SecurityAction::Demand, Name = L"FullTrust")]
public:
static int SendMessage(
	IntPtr hWnd, 
	unsigned int msg, 
	int wParam, 
	String^ 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..::.String
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