ReactOS
0.4.17-dev-304-g69474b3
DllMain.c
Go to the documentation of this file.
1
2
#include <windows.h>
3
4
void
init_locale
(
HMODULE
module
);
5
6
// Used by wine/locale.c
7
char
system_dir
[
MAX_PATH
];
8
9
static
10
void
11
InitSystemDir
(
void
)
12
{
13
GetSystemDirectoryA
(
system_dir
,
MAX_PATH
);
14
}
15
16
BOOL
WINAPI
DllMain
(
HINSTANCE
hinstDLL,
DWORD
fdwReason
,
LPVOID
lpvReserved
)
17
{
18
switch
(
fdwReason
)
19
{
20
case
DLL_PROCESS_ATTACH
:
21
InitSystemDir
();
22
//init_locale(hinstDLL);
23
break
;
24
25
case
DLL_THREAD_ATTACH
:
26
break
;
27
28
case
DLL_THREAD_DETACH
:
29
break
;
30
31
case
DLL_PROCESS_DETACH
:
32
break
;
33
}
34
35
return
TRUE
;
36
}
fdwReason
static DWORD const fdwReason
Definition:
appcrt_dllmain.cpp:57
TRUE
#define TRUE
Definition:
types.h:120
DLL_THREAD_DETACH
#define DLL_THREAD_DETACH
Definition:
compat.h:133
DLL_PROCESS_ATTACH
#define DLL_PROCESS_ATTACH
Definition:
compat.h:131
DLL_PROCESS_DETACH
#define DLL_PROCESS_DETACH
Definition:
compat.h:130
MAX_PATH
#define MAX_PATH
Definition:
compat.h:34
DLL_THREAD_ATTACH
#define DLL_THREAD_ATTACH
Definition:
compat.h:132
GetSystemDirectoryA
UINT WINAPI GetSystemDirectoryA(OUT LPSTR lpBuffer, IN UINT uSize)
Definition:
path.c:2202
BOOL
unsigned int BOOL
Definition:
ntddk_ex.h:94
DWORD
unsigned long DWORD
Definition:
ntddk_ex.h:95
void
Definition:
nsiface.idl:2307
lpvReserved
static IN DWORD IN LPVOID lpvReserved
Definition:
load_notifications.c:17
DllMain
BOOL WINAPI DllMain(HANDLE hDll, DWORD dwReason, LPVOID lpReserved)
Definition:
DllMain.c:9
module
Definition:
dbghelp_private.h:377
system_dir
char system_dir[MAX_PATH]
Definition:
DllMain.c:7
InitSystemDir
static void InitSystemDir(void)
Definition:
DllMain.c:11
init_locale
void init_locale(HMODULE module)
Definition:
locale.c:1913
WINAPI
#define WINAPI
Definition:
msvc.h:6
dll
win32
kernelbase
DllMain.c
Generated on Wed Jun 17 2026 06:04:20 for ReactOS by
1.9.6