ReactOS
0.4.16-dev-36-g301675c
DllMain.c
Go to the documentation of this file.
1
2
#include "
advapi32_vista.h
"
3
4
BOOL
5
RegInitialize
(
VOID
);
6
7
BOOL
8
WINAPI
9
DllMain
(
HANDLE
hDll,
10
DWORD
dwReason
,
11
LPVOID
lpReserved)
12
{
13
/* For now, there isn't much to do */
14
if
(
dwReason
==
DLL_PROCESS_ATTACH
)
15
{
16
DisableThreadLibraryCalls
(hDll);
17
18
if
(!
RegInitialize
())
19
{
20
return
FALSE
;
21
}
22
}
23
24
return
TRUE
;
25
}
advapi32_vista.h
dwReason
DWORD dwReason
Definition:
misc.cpp:141
TRUE
#define TRUE
Definition:
types.h:120
FALSE
#define FALSE
Definition:
types.h:117
DLL_PROCESS_ATTACH
#define DLL_PROCESS_ATTACH
Definition:
compat.h:131
DisableThreadLibraryCalls
BOOL WINAPI DisableThreadLibraryCalls(IN HMODULE hLibModule)
Definition:
loader.c:85
BOOL
unsigned int BOOL
Definition:
ntddk_ex.h:94
DWORD
unsigned long DWORD
Definition:
ntddk_ex.h:95
void
Definition:
nsiface.idl:2307
DllMain
BOOL WINAPI DllMain(HANDLE hDll, DWORD dwReason, LPVOID lpReserved)
Definition:
DllMain.c:26
RegInitialize
BOOL RegInitialize(VOID)
Definition:
reg.c:70
WINAPI
#define WINAPI
Definition:
msvc.h:6
dll
win32
advapi32_vista
DllMain.c
Generated on Mon Sep 16 2024 06:03:28 for ReactOS by
1.9.6