WM_QUIT This message is used to signal all window procedures that the application wants to terminate, and is generated when the user called the PostQuitMessage() function. Parameters wParam contains the result code given in PostQuitMessage(). lParam is not used.