[win32] WinMain
Depening on the unicode-ness of the compilation you can define either
WinMain or wWinMain.
int WINAPI WinMain(HINSTANCE hInst, HINSTANCE hInstPrev, PSTR cmdline, int cmdshow)
WINAPI- The calling convention
HINSTANCE hInst- handle to the instance (see Instance handle (HINSTANCE) )
HINSTANCE hInstPrev- has no meaning. It was used in 16-bit Windows, but is now always zero.
PSTR cmdline- command-line arguments as a string
int cmdshow- a flag how the window should be shown (see the possible show codes at MS docs )