The default window procedure posts a WM_QUIT message to the appropriate queue and sets ulReserved to 0.