Skip to content

Latest commit

 

History

History
59 lines (41 loc) · 1.35 KB

PostMessage.md

File metadata and controls

59 lines (41 loc) · 1.35 KB

Home

Function name : PostMessage

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.


Code examples:

How to activate Windows Calculator
Terminating all running applications from a VFP program

Declaration:

BOOL PostMessage(
  HWND hWnd,      // handle to destination window
  UINT Msg,       // message
  WPARAM wParam,  // first message parameter
  LPARAM lParam   // second message parameter
);  

FoxPro declaration:

DECLARE SHORT PostMessage IN user32;
	INTEGER   hWnd,;
	INTEGER   Msg,;
	STRING  @ wParam,;
	INTEGER   lParam
  

Parameters:

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.


Return value:

If the function succeeds, the return value is nonzero.