Share via


WM_QUIT (Compact 2013)

3/28/2014

This message indicates a request to terminate an application and is generated when the application calls the PostQuitMessage function. It causes the GetMessage function to return zero.

Syntax

WM_QUIT nExitCode = (int) wParam;

Parameters

  • nExitCode
    Specifies the exit code given in the PostQuitMessage function.

Return Value

This message does not have a return value, because it causes the message loop to terminate before the message is sent to the application's window procedure.

Requirements

Header

winuser.h

See Also

Reference

Window Messages
GetMessage
PostQuitMessage