ReactOS
0.4.16-dev-1288-g7ec3a7e
Functions
DllMain.c File Reference
#include "
ntdll_vista.h
"
Include dependency graph for DllMain.c:
Go to the source code of this file.
Functions
BOOL
WINAPI
DllMain
(
HANDLE
hDll,
DWORD
dwReason
,
LPVOID
lpReserved
)
Function Documentation
◆
DllMain()
BOOL
WINAPI
DllMain
(
HANDLE
hDll
,
DWORD
dwReason
,
LPVOID
lpReserved
)
Definition at line
5
of file
DllMain.c
.
8
{
9
if
(
dwReason
==
DLL_PROCESS_ATTACH
)
10
{
11
LdrDisableThreadCalloutsForDll
(hDll);
12
RtlpInitializeKeyedEvent
();
13
}
14
else
if
(
dwReason
==
DLL_PROCESS_DETACH
)
15
{
16
RtlpCloseKeyedEvent
();
17
}
18
return
TRUE
;
19
}
LdrDisableThreadCalloutsForDll
NTSTATUS NTAPI LdrDisableThreadCalloutsForDll(_In_ PVOID BaseAddress)
Definition:
ldrapi.c:1154
dwReason
DWORD dwReason
Definition:
misc.cpp:135
TRUE
#define TRUE
Definition:
types.h:120
DLL_PROCESS_ATTACH
#define DLL_PROCESS_ATTACH
Definition:
compat.h:131
DLL_PROCESS_DETACH
#define DLL_PROCESS_DETACH
Definition:
compat.h:130
RtlpCloseKeyedEvent
VOID NTAPI RtlpCloseKeyedEvent(VOID)
Definition:
condvar.c:468
RtlpInitializeKeyedEvent
VOID NTAPI RtlpInitializeKeyedEvent(VOID)
Definition:
condvar.c:460
dll
ntdll
nt_0600
DllMain.c
Generated on Sun Jun 15 2025 06:19:02 for ReactOS by
1.9.6