ReactOS
0.4.16-dev-1946-g52006dd
DllMain.c
Go to the documentation of this file.
1
#include "
ntdll_vista.h
"
2
3
NTSTATUS
4
NTAPI
5
RtlpInitializeLocaleTable
(
VOID
);
6
7
BOOL
8
WINAPI
9
DllMain
(
HANDLE
hDll,
10
DWORD
dwReason
,
11
LPVOID
lpReserved
)
12
{
13
NTSTATUS
Status
;
14
15
if
(
dwReason
==
DLL_PROCESS_ATTACH
)
16
{
17
LdrDisableThreadCalloutsForDll
(hDll);
18
RtlpInitializeKeyedEvent
();
19
Status
=
RtlpInitializeLocaleTable
();
20
if
(!
NT_SUCCESS
(
Status
))
21
{
22
RtlpCloseKeyedEvent
();
23
return
FALSE
;
24
}
25
}
26
else
if
(
dwReason
==
DLL_PROCESS_DETACH
)
27
{
28
RtlpCloseKeyedEvent
();
29
}
30
return
TRUE
;
31
}
NTSTATUS
LONG NTSTATUS
Definition:
precomp.h:26
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
FALSE
#define FALSE
Definition:
types.h:117
NT_SUCCESS
#define NT_SUCCESS(StatCode)
Definition:
apphelp.c:33
DLL_PROCESS_ATTACH
#define DLL_PROCESS_ATTACH
Definition:
compat.h:131
DLL_PROCESS_DETACH
#define DLL_PROCESS_DETACH
Definition:
compat.h:130
BOOL
unsigned int BOOL
Definition:
ntddk_ex.h:94
DWORD
unsigned long DWORD
Definition:
ntddk_ex.h:95
Status
Status
Definition:
gdiplustypes.h:25
void
Definition:
nsiface.idl:2307
RtlpInitializeLocaleTable
NTSTATUS NTAPI RtlpInitializeLocaleTable(VOID)
Definition:
locale.c:529
DllMain
BOOL WINAPI DllMain(HANDLE hDll, DWORD dwReason, LPVOID lpReserved)
Definition:
DllMain.c:9
ntdll_vista.h
RtlpCloseKeyedEvent
VOID NTAPI RtlpCloseKeyedEvent(VOID)
Definition:
condvar.c:468
RtlpInitializeKeyedEvent
VOID NTAPI RtlpInitializeKeyedEvent(VOID)
Definition:
condvar.c:460
NTAPI
#define NTAPI
Definition:
typedefs.h:36
WINAPI
#define WINAPI
Definition:
msvc.h:6
lpReserved
_In_ DWORD _In_ int _In_ int _In_opt_ LPNLSVERSIONINFO _In_opt_ LPVOID lpReserved
Definition:
winnls.h:1268
dll
ntdll
nt_0600
DllMain.c
Generated on Thu Dec 4 2025 06:03:58 for ReactOS by
1.9.6