BOOL PostAppMessage(hTask,wMsg,wParam,lParam)
This function posts a message to an application identified by a task handle, and then returns without waiting for the application to process the message. The application receiving the message obtains the message by calling the GetMessage or PeekMessage function. The hWnd parameter of the returned MSG structure is NULL.
Parameter | Type/Description |
hTask | HANDLE Identifies the task that is to receive the message. The GetCurrentTask function returns this handle. | |
wMsg | WORD Specifies the type of message posted. | |
wParam | WORD Specifies additional message information. | |
lParam | DWORD Specifies additional message information. |
The return value specifies whether or not the message is posted. It is nonzero if the message is posted. Otherwise, it is zero.