Indicates to the system that a thread has made a request to terminate (quit). It is typically used in response to a WM_DESTROY message.
VOID PostQuitMessage(int nExitCode // exit code);
DECLARE PostQuitMessage IN user32 INTEGER nExitCode
[in] Specifies an application exit code. This value is used as the wParam parameter of the WM_QUIT message.
This function does not return a value.
Calling PostQuitMessage within FoxPro application acts like ExitProcess -- it closes VFP. The difference that I can see between them (one affects a thread, another -- the whole process), probably is less important in VFP.