BOOL PostAppMessage(htask, uMsg, wParam, lParam) | |||||
HTASK htask; | /* handle of task to receive message | */ | |||
UINT uMsg; | /* message to post, */ | ||||
WPARAM wParam; | /* first message parameter | */ | |||
LPARAM lParam; | /* second message parameter | */ |
The PostAppMessage function posts (places) a message in the message queue of the given application (task) and then returns without waiting for the application to process the message. The application to which the message is posted retrieves the message by calling the GetMessage or PeekMessage function. The hwnd member of the returned MSG structure is NULL.
htask
Identifies the task to which the message is posted. The GetCurrentTask function returns this handle.
uMsg
Specifies the type of message to be posted.
wParam
Specifies 16 bits of additional message-dependent information.
lParam
Specifies 32 bits of additional message-dependent information.
The return value is nonzero if the function is successful. Otherwise, it is zero.