Panoptes 1.0.0
Endpoint Detection and Response
Loading...
Searching...
No Matches
Functions
dllmain.cpp File Reference
#include <Windows.h>
#include "hook.hpp"

Go to the source code of this file.

Functions

BOOL APIENTRY DllMain (HMODULE hModule, DWORD ul_reason_for_call, LPVOID lpReserved)
 

Function Documentation

◆ 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);
10 PlaceHooks();
11
12 break;
13 case DLL_PROCESS_DETACH:
14 UnHook();
15 break;
16 }
17 return TRUE;
18}
VOID UnHook()
The UnHook function removes the hooks from the NTDLL functions.
Definition hook.cpp:97
VOID PlaceHooks()
The PlaceHooks function places the hooks on the NTDLL functions.
Definition hook.cpp:72

References PlaceHooks(), and UnHook().