mirror of
https://github.com/reactos/reactos.git
synced 2024-11-01 20:32:36 +00:00
41 lines
645 B
C
41 lines
645 B
C
#include <stdarg.h>
|
|
|
|
#define WIN32_NO_STATUS
|
|
|
|
#include <windef.h>
|
|
#include <winbase.h>
|
|
#include <winreg.h>
|
|
#include <winuser.h>
|
|
#include <winwlx.h>
|
|
#include <ndk/rtltypes.h>
|
|
#include <ndk/umfuncs.h>
|
|
|
|
#define NDEBUG
|
|
#include <debug.h>
|
|
|
|
VOID
|
|
NTAPI
|
|
RtlpInitializeKeyedEvent(VOID);
|
|
|
|
VOID
|
|
NTAPI
|
|
RtlpCloseKeyedEvent(VOID);
|
|
|
|
BOOL
|
|
WINAPI
|
|
DllMain(HANDLE hDll,
|
|
DWORD dwReason,
|
|
LPVOID lpReserved)
|
|
{
|
|
if (dwReason == DLL_PROCESS_ATTACH)
|
|
{
|
|
LdrDisableThreadCalloutsForDll(hDll);
|
|
RtlpInitializeKeyedEvent();
|
|
}
|
|
else if (dwReason == DLL_PROCESS_DETACH)
|
|
{
|
|
RtlpCloseKeyedEvent();
|
|
}
|
|
return TRUE;
|
|
}
|