Windows API
WinMain function
int WINAPI WinMain (HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow)
- hInstance - application handle
- hPrevInstance - obsolete parameter, which is always null
- lpCmdLine - command line, which started the application, similar to the args parameter to main in C
- nCmdShow - specifies the starting mode of the application (minimized, maximized or normal)