ReactOS 0.4.16-dev-306-g647d351
DllMain.c File Reference
#include "advapi32_vista.h"
Include dependency graph for DllMain.c:

Go to the source code of this file.

Functions

BOOL RegInitialize (VOID)
 
BOOL WINAPI DllMain (HANDLE hDll, DWORD dwReason, LPVOID lpReserved)
 

Function Documentation

◆ DllMain()

BOOL WINAPI DllMain ( HANDLE  hDll,
DWORD  dwReason,
LPVOID  lpReserved 
)

Definition at line 9 of file DllMain.c.

12{
13 /* For now, there isn't much to do */
15 {
17
18 if (!RegInitialize())
19 {
20 return FALSE;
21 }
22 }
23
24 return TRUE;
25}
DWORD dwReason
Definition: misc.cpp:141
#define TRUE
Definition: types.h:120
#define FALSE
Definition: types.h:117
#define DLL_PROCESS_ATTACH
Definition: compat.h:131
BOOL WINAPI DisableThreadLibraryCalls(IN HMODULE hLibModule)
Definition: loader.c:85
BOOL RegInitialize(VOID)
Definition: reg.c:70

◆ RegInitialize()

BOOL RegInitialize ( VOID  )

Definition at line 70 of file reg.c.

71{
72 TRACE("RegInitialize()\n");
73
74 /* Lazy init hack */
75 if (!DllInitialized)
76 {
77 ProcessHeap = RtlGetProcessHeap();
79 MAX_DEFAULT_HANDLES * sizeof(HANDLE));
81
83 }
84
85 return TRUE;
86}
static HANDLE ProcessHeap
Definition: reg.c:35
static HANDLE DefaultHandleTable[MAX_DEFAULT_HANDLES]
Definition: reg.c:34
#define MAX_DEFAULT_HANDLES
Definition: reg.c:27
static RTL_CRITICAL_SECTION HandleTableCS
Definition: reg.c:33
static BOOLEAN DllInitialized
Definition: reg.c:38
NTSYSAPI NTSTATUS NTAPI RtlInitializeCriticalSection(_In_ PRTL_CRITICAL_SECTION CriticalSection)
#define TRACE(s)
Definition: solgame.cpp:4
#define RtlZeroMemory(Destination, Length)
Definition: typedefs.h:262

Referenced by CloseDefaultKeys(), DllMain(), MapDefaultKey(), RegDisablePredefinedCache(), RegDisablePredefinedCacheEx(), RegOpenUserClassesRoot(), and RegOverridePredefKey().