#include <Windows.h>
#include "hook.hpp"
Go to the source code of this file.
|
| BOOL APIENTRY | DllMain (HMODULE hModule, DWORD ul_reason_for_call, LPVOID lpReserved) |
| |
◆ DllMain()
| BOOL APIENTRY DllMain |
( |
HMODULE |
hModule, |
|
|
DWORD |
ul_reason_for_call, |
|
|
LPVOID |
lpReserved |
|
) |
| |
Definition at line 4 of file dllmain.cpp.
5{
6 switch (ul_reason_for_call)
7 {
8 case DLL_PROCESS_ATTACH:
9 DisableThreadLibraryCalls(hModule);
11
12 break;
13 case DLL_PROCESS_DETACH:
15 break;
16 }
17 return TRUE;
18}
VOID UnHook()
The UnHook function removes the hooks from the NTDLL functions.
VOID PlaceHooks()
The PlaceHooks function places the hooks on the NTDLL functions.
References PlaceHooks(), and UnHook().