packages/Windows API Code Pack 1.1/source/WindowsAPICodePack/Core/Interop/CoreNativeMethods.cs
/// <summary>
/// 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. 
/// </summary>
/// <param name="windowHandle">Handle to the window whose window procedure will receive the message. 
/// If this parameter is HWND_BROADCAST, the message is sent to all top-level windows in the system, 
/// including disabled or invisible unowned windows, overlapped windows, and pop-up windows; 
/// but the message is not sent to child windows.
/// </param>
/// <param name="message">Specifies the message to be sent.</param>
/// <param name="wparam">Specifies additional message-specific information.</param>
/// <param name="lparam">Specifies additional message-specific information.</param>
/// <returns>A return code specific to the message being sent.</returns>
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.
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 .
[DllImport("user32.dll", CharSet = CharSet.Auto, SetLastError = true)]
        public static extern IntPtr SendMessage(
            IntPtr windowHandle,
            uint message,
            ref int wparam,
            [MarshalAs(UnmanagedType.LPWStr)] StringBuilder lparam);
[ DllImport ( " " , CharSet = CharSet . Auto , SetLastError = true ) ] public static extern IntPtr SendMessage ( IntPtr windowHandle , uint message , ref int wparam , [ MarshalAs ( UnmanagedType . LPWStr ) ] StringBuilder lparam ) ;
Sends the specified message to a window or windows.
Sends the specified message to a window or windows .
A return code specific to the message being sent.
A return code specific to the message being sent .
windowHandle
IntPtr
Handle to the window whose window procedure will receive the message.
If this parameter is HWND_BROADCAST, the message is sent to all top-level windows in the system,
including disabled or invisible unowned windows, overlapped windows, and pop-up windows;
but the message is not sent to child windows.
Handle to the window whose window procedure will receive the message . If this parameter is HWND_BROADCAST the message is sent to all top - level windows in the system including disabled or invisible unowned windows overlapped windows and pop - up windows ; but the message is not sent to child windows .
message
uint
Specifies the message to be sent.
Specifies the message to be sent .
int
ref
StringBuilder
[MarshalAs(UnmanagedType.LPWStr)]
wparam
Specifies additional message-specific information.
Specifies additional message - specific information .
lparam
Specifies additional message-specific information.
Specifies additional message - specific information .