WM_QUIT return values

This is a discussion on WM_QUIT return values within the Windows Programming forums, part of the Platform Specific Boards category; In my program, under WM_DESTROY, I use PostQuitMessage(0). After my message loop, in WinMain(), I return msg.wParam. The exit code ...

WM_QUIT return values

In my program, under WM_DESTROY, I use PostQuitMessage(0). After my message loop, in WinMain(), I return msg.wParam. The exit code for my program however, is always -1080664280 (0xBF965F28). Is this behaviour normal? According to MSDN my exit code should be 0.