[NTDLL_VISTA]
[reactos.git] / reactos / dll / win32 / ntdll_vista / DllMain.c
1 #include <stdarg.h>
2
3 #define WIN32_NO_STATUS
4
5 #include <windef.h>
6 #include <winbase.h>
7 #include <winreg.h>
8 #include <winuser.h>
9 #include <winwlx.h>
10
11 #define NDEBUG
12 #include <debug.h>
13
14 VOID
15 RtlpInitializeKeyedEvent(VOID);
16
17 VOID
18 RtlpCloseKeyedEvent(VOID);
19
20 BOOL
21 WINAPI
22 DllMain(HANDLE hDll,
23 DWORD dwReason,
24 LPVOID lpReserved)
25 {
26 if (dwReason == DLL_PROCESS_ATTACH)
27 {
28 DisableThreadLibraryCalls(hDll);
29 RtlpInitializeKeyedEvent();
30 }
31 else if (dwReason == DLL_PROCESS_DETACH)
32 {
33 RtlpCloseKeyedEvent();
34 }
35 return TRUE;
36 }