Panoptes 1.0.0
Endpoint Detection and Response
Loading...
Searching...
No Matches
dllmain.cpp
Go to the documentation of this file.
1#include <Windows.h>
2#include "hook.hpp"
3
4BOOL APIENTRY DllMain(HMODULE hModule, DWORD ul_reason_for_call, LPVOID lpReserved)
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}
19
BOOL APIENTRY DllMain(HMODULE hModule, DWORD ul_reason_for_call, LPVOID lpReserved)
Definition dllmain.cpp:4
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
int BOOL
Definition inject.h:3
unsigned long DWORD
Definition inject.h:2