WM_QUIT

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.

Parameter Description  

wParam Contains the exit code given in the PostQuitMessage call.  
lParam Is not used.