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
hwndIntPtrHandle to the window whose window procedure is to receive the message.
msgintSpecifies the message to be posted.
wparamIntPtrSpecifies additional message-specific information.
lparamIntPtrSpecifies additional message-specific information.
Returns
- bool
True if succeed; otherwise false.