SendNotifyMessage

  BOOL SendNotifyMessage(hwnd, uMsg, wParam, lParam)    
  HWND hwnd; /* handle of destination window */
  UINT uMsg; /* message to send */
  WPARAM wParam; /* first message parameter */
  LPARAM lParam; /* second message parameter */

The SendNotifyMessage function sends the specified message to the given window. If the window was created by the calling thread, SendNotifyMessage calls the window procedure for the window and does not return until the window procedure has processed the message. If the window was created by a different thread, SendNotifyMessage passes the message to the window procedure and returns immediately; it does not wait for the window procedure to finish processing the message.

Parameters

hwnd

Identifies the window whose window procedure will receive the message.

uMsg

Specifies the message to be sent.

wParam

Specifies additional message-dependent information.

lParam

Specifies additional message-dependent information.

Return Value

The return value is TRUE if the function is successful or FALSE if an error occurs. To obtain extended error information, use the GetLastError function.

See Also

PostMessage, PostThreadMessage, SendMessage