WINAPI BOOL DllMain (HANDLE hDll, DWORD dwReason, LPVOID lpReserved) { switch (dwReason) { case DLL_PROCESS_ATTACH: loader_ini_load(); LOG(FULL_NAME " loaded %d modules", modules); return modules != 0; case DLL_PROCESS_DETACH: loader_exit(); break; case DLL_THREAD_ATTACH: break; case DLL_THREAD_DETACH: break; } return TRUE; }
void sys_exit(void) { loader_exit(); }