I've been thinking of calling conventions lately.
Then I realized something.
WinMain and the message handling function (tends to be named something like MainWndProc or such in Quake) are both WINAPI which is stdcall, not cdecl.
I've never really paid too much attention to how those 2 specific functions must use a different calling convention than the rest of the code.
No doubt because it is "interfacing" with the operating system, just like how Windows API calls are WINAPI calling convention.
The night is young. How else can I annoy the world before sunsrise?
Inquisitive minds want to know ! And if they don't -- well like that ever has stopped me before ..