winmain function
The WinMain char based function was introduced with Windows, in the early 1980's: int CALLBACK WinMain( HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow ); where CALLBACK, HINSTANCE and LPSTR are defined by the <windows.h> header (LPSTR is just char*).