A strange question, but where do you put your main variables for a Windows program? In a standard console app, they would go in main (), but you can't really put them in WinMain () because the WindowProc handles most of the code.
But it also doesn't seem appropriate to me to put all the variables in a callback function so I tend to cheat and just make them global.
So where is it conventional to put them?