Name
SendNotifyMessage
Synopsis
If this function is used to send a message to a window in the same thread, the calling function halts processing until the SendNotifyMessage function returns, similar to the SendMessage function. If the message is sent to a window in a different thread, the function returns immediately:
Public Declare Function SendNotifyMessage Lib "user32" _ Alias "SendNotifyMessageA" _ (ByVal hwnd As Long, ByVal Msg As Long, _ ByVal wParam As Long, ByVal lParam As Long) As Long
Parameters
-
hwnd
The handle of the target window, or
HWND_BROADCAST
if the message is to be sent to all top-level windows in the system-
wMsg
The message to send to the target window
-
wParam
The first parameter of the message
-
lParam
The second parameter of the message
Return Value
This function returns only an error status (zero on failure, nonzero on success) and no other information.
Get Subclassing and Hooking with Visual Basic now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.