ReactOS
0.4.15-dev-7842-g558ab78
dllmain.c
Go to the documentation of this file.
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
}
dwReason
DWORD dwReason
Definition:
misc.cpp:154
TRUE
#define TRUE
Definition:
types.h:120
DllMain
BOOL WINAPI DllMain(HINSTANCE hDLLInst, DWORD fdwReason, LPVOID lpvReserved)
Definition:
dllmain.c:52
DLL_PROCESS_ATTACH
#define DLL_PROCESS_ATTACH
Definition:
compat.h:131
DisableThreadLibraryCalls
BOOL WINAPI DisableThreadLibraryCalls(IN HMODULE hLibModule)
Definition:
loader.c:85
DWORD
unsigned long DWORD
Definition:
ntddk_ex.h:95
void
Definition:
nsiface.idl:2307
oscalls.h
WINBOOL
int32_t WINBOOL
Definition:
typedefs.h:58
WINAPI
#define WINAPI
Definition:
msvc.h:6
sdk
lib
crt
startup
dllmain.c
Generated on Thu Mar 28 2024 06:14:30 for ReactOS by
1.9.6