|
Overview |
|
|
|
Group |
|
|
|
Quick Info
Windows NT
| Yes
| Win95
| Yes
| Win32s
| Yes
| Import Library
| user32.lib
| Header File
| winuser.h
| Unicode
| No
| Platform Notes
| None
|
|
|
PostQuitMessage
The PostQuitMessage function indicates to Windows 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
| );
|
|
Parameters
nExitCode
Specifies an application exit code. This value is used as the wParam parameter of the WM_QUIT message.
Return Values
This function does not return a value.
Remarks
The PostQuitMessage function posts a WM_QUIT message to the thread's message queue and returns immediately; the function
simply indicates to the system that the thread is requesting to quit at some
time in the future.
When the thread retrieves the WM_QUIT message from its message queue, it
should exit its message loop and return control to Windows. The exit value returned
to Windows must be the wParam parameter of the WM_QUIT message.
See Also
GetMessage, PeekMessage, PostMessage, WM_DESTROY, WM_QUIT
Related Links
Software for Delphi and C++ Builder developers
Software for Visual Studio .NET developers
Software for Visual Basic 6 developers
Delphi Tips&Tricks
MegaDetailed.NET
TMS Scripter Studio Pro components for Delphi/C++Builder
More Online Helps
Win32 Multimedia Programmer's Reference (mmedia.hlp)
OLE Programmer's Reference (ole.hlp)
Microsoft Windows Pen API Programmer's Reference (penapi.hlp)
Microsoft Windows Sockets 2 Reference (sock2.hlp)
Microsoft Windows Telephony API (TAPI) Programmer's Reference (tapi.hlp)
Unix Manual Pages
|