1 #include <oscalls.h> 2 #define _DECL_DLLMAIN 3 #include <process.h> 4 5 WINBOOL WINAPI DllMain (HANDLE hDllHandle, DWORD dwReason, LPVOID lpreserved) 6 { 7 /* If the DLL provides no DllMain, then chances are that it doesn't bother with thread initialization */ 8 if(dwReason == DLL_PROCESS_ATTACH) 9 DisableThreadLibraryCalls(hDllHandle); 10 return TRUE; 11 } 12