-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdll.cpp
More file actions
29 lines (28 loc) · 662 Bytes
/
dll.cpp
File metadata and controls
29 lines (28 loc) · 662 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#include "ExceptionHandler.hpp"
BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD dwReason, LPVOID)
{
if (dwReason == DLL_PROCESS_ATTACH)
{
DisableThreadLibraryCalls(hinstDLL);
ExceptionManager::EHSettings settings ={
{ 0x80000004,
0x80000006,
0x40010006,
0x406D1388 },
{ },
"EH DLL",
(std::uintptr_t)GetModuleHandle(NULL),
NULL,
ExceptionManager::DefaultHandler,
ExceptionManager::DefaultProcessor,
NULL,
NULL,
false,
true,
false
};
ExceptionManager::Init(&settings);
return TRUE;
}
return TRUE;
}