reactos/lib/sdk/crt/startup/dllmain.c
Hermès Bélusca-Maïto 65ce146169 Create a branch for working on csrss and co.
svn path=/branches/ros-csrss/; revision=57561
2012-10-14 13:04:31 +00:00

11 lines
359 B
C

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