ExeMain


Description:
This shows how to prevent any of the CRT code from executing in an EXE. Useful for making those tiny EXEs even smaller, and a bit faster.
 
Code:
extern "C" void WinMainCRTStartup() {

     WinMain(NULL,NULL,NULL,NULL);

}

int WINAPI WinMain (HINSTANCE, HINSTANCE, PSTR, int) {

     /* ... */

     return 0;
}