Method PostMessage
PostMessage(IntPtr, int, IntPtr, IntPtr)
Places a message in the message queue associated with the thread that created the specified window and returns without waiting for the thread to process the message.
public static bool PostMessage(IntPtr hwnd, int msg, IntPtr wparam, IntPtr lparam)
Parameters
hwnd
IntPtrHandle to the window whose window procedure is to receive the message.
msg
intSpecifies the message to be posted.
wparam
IntPtrSpecifies additional message-specific information.
lparam
IntPtrSpecifies additional message-specific information.
Returns
- bool
True if succeed; otherwise false.