NativeMethods.SendMessage Method
Sends the specified message to one or more windows.
Namespace: Microsoft.VisualStudio
Assembly: Microsoft.VisualStudio.Data.Schema.Project (in Microsoft.VisualStudio.Data.Schema.Project.dll)
Syntax
'Declaration
Public Shared Function SendMessage ( _
hWnd As IntPtr, _
Msg As Integer, _
wParam As IntPtr, _
lParam As IntPtr _
) As IntPtr
'Usage
Dim hWnd As IntPtr
Dim Msg As Integer
Dim wParam As IntPtr
Dim lParam As IntPtr
Dim returnValue As IntPtr
returnValue = NativeMethods.SendMessage(hWnd, _
Msg, wParam, lParam)
public static IntPtr SendMessage(
IntPtr hWnd,
int Msg,
IntPtr wParam,
IntPtr lParam
)
public:
static IntPtr SendMessage(
IntPtr hWnd,
int Msg,
IntPtr wParam,
IntPtr lParam
)
public static function SendMessage(
hWnd : IntPtr,
Msg : int,
wParam : IntPtr,
lParam : IntPtr
) : IntPtr
static member SendMessage :
hWnd:IntPtr *
Msg:int *
wParam:IntPtr *
lParam:IntPtr -> IntPtr
Parameters
- hWnd
Type: System.IntPtr
The handle to the destination window
- Msg
Type: System.Int32
The specified message
- wParam
Type: System.IntPtr
The first message parameter
- lParam
Type: System.IntPtr
The second message parameter
Return Value
Type: System.IntPtr
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.