I am looking for a more technical explanation then the OS calls the function. Can anyone help me out or point me to a website or book?
As far as windows goes, the entry point functions are:
void __cdecl mainCRTStartup( void ) {}void __stdcall WinMainCRTStartup( void ) {}BOOL __stdcall _DllMainCRTStartup(HINSTANCE hinstDLL,DWORD fdwReason,void* lpReserved) {}The only reason to use these over the normal main/WinMain/DllMain is if you wanted to use your own run time library (If you want smaller file size or custom features)
For custom run time implementations and other tricks to get smaller PE files, see: