reactos/lib/sdk/crt/startup/dllmain.c
Amine Khaldi 527f2f9057 [SHELL/EXPERIMENTS]
* Create a branch for some evul shell experiments.

svn path=/branches/shell-experiments/; revision=61927
2014-02-02 19:37:27 +00:00

12 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;
}