Group: Message and Message Queue - Library: user32
Places (posts) 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.
How to activate Windows Calculator
Terminating all running applications from a VFP program
BOOL PostMessage(
HWND hWnd, // handle to destination window
UINT Msg, // message
WPARAM wParam, // first message parameter
LPARAM lParam // second message parameter
);
DECLARE SHORT PostMessage IN user32;
INTEGER hWnd,;
INTEGER Msg,;
STRING @ wParam,;
INTEGER lParam
hWnd [in] Handle to the window whose window procedure is to receive the message.
Msg [in] Specifies the message to be posted.
wParam [in] Specifies additional message-specific information.
lParam [in] Specifies additional message-specific information.
If the function succeeds, the return value is nonzero.