-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdllmain.cpp
More file actions
36 lines (30 loc) · 836 Bytes
/
dllmain.cpp
File metadata and controls
36 lines (30 loc) · 836 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
30
31
32
33
34
35
#define WIN32_LEAN_AND_MEAN
#include <windows.h>
#include "src/InitBase.h"
BOOL APIENTRY DllMain( HMODULE hModule,
DWORD ul_reason_for_call,
LPVOID lpReserved
)
{
if (ul_reason_for_call == DLL_PROCESS_ATTACH)
{
/*
NOTE:
Call Sequence:
CTOR of global/static objects in YRDict.dll
DllMain(DLL_PROCESS_ATTACH) of YRDict.dll
EntryPoint of GameMD.exe
InitBeforeEveryGameMDFunction
CTOR of global/static objects in GameMD.exe
WinMain of GameMD.exe
...
Exit of GameMD.exe
DTOR of global/static objects in GameMD.exe
UninitAfterEveryGameMDFunction
ExitProcess
*/
InitBeforeEveryGameMDFunction_Register();
}
return TRUE;
}