ReactOS  0.4.15-dev-1397-g19779b3
DllMain.c File Reference
#include <stdarg.h>
#include <windef.h>
#include <winbase.h>
#include <winreg.h>
#include <winuser.h>
#include <winwlx.h>
#include <ndk/rtltypes.h>
#include <ndk/umfuncs.h>
#include <debug.h>
Include dependency graph for DllMain.c:

Go to the source code of this file.

Macros

#define WIN32_NO_STATUS
 
#define NDEBUG
 

Functions

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

Macro Definition Documentation

◆ NDEBUG

#define NDEBUG

Definition at line 13 of file DllMain.c.

◆ WIN32_NO_STATUS

#define WIN32_NO_STATUS

Definition at line 3 of file DllMain.c.

Function Documentation

◆ DllMain()

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

Definition at line 24 of file DllMain.c.

27 {
29  {
32  }
33  else if (dwReason == DLL_PROCESS_DETACH)
34  {
36  }
37  return TRUE;
38 }
VOID RtlpInitializeKeyedEvent(VOID)
Definition: condvar.c:459
#define TRUE
Definition: types.h:120
#define DLL_PROCESS_ATTACH
Definition: compat.h:131
DWORD dwReason
Definition: misc.cpp:154
#define DLL_PROCESS_DETACH
Definition: compat.h:130
NTSTATUS NTAPI LdrDisableThreadCalloutsForDll(IN PVOID BaseAddress)
Definition: ldrapi.c:1187
VOID RtlpCloseKeyedEvent(VOID)
Definition: condvar.c:466

◆ RtlpCloseKeyedEvent()

VOID RtlpCloseKeyedEvent ( VOID  )

Definition at line 466 of file condvar.c.

467 {
471 }
#define ASSERT(a)
Definition: mode.c:45
NTSTATUS NTAPI NtClose(IN HANDLE Handle)
Definition: obhandle.c:3399
static HANDLE CondVarKeyedEventHandle
Definition: condvar.c:42
#define NULL
Definition: types.h:112

Referenced by DllMain().

◆ RtlpInitializeKeyedEvent()

VOID RtlpInitializeKeyedEvent ( VOID  )

Definition at line 459 of file condvar.c.

460 {
463 }
NTSYSAPI NTSTATUS WINAPI NtCreateKeyedEvent(HANDLE *, ACCESS_MASK, const OBJECT_ATTRIBUTES *, ULONG)
#define EVENT_ALL_ACCESS
Definition: isotest.c:82
#define ASSERT(a)
Definition: mode.c:45
static HANDLE CondVarKeyedEventHandle
Definition: condvar.c:42
#define NULL
Definition: types.h:112

Referenced by DllMain().