Panoptes
1.0.0
Endpoint Detection and Response
Loading...
Searching...
No Matches
src
dll
src
dllmain.cpp
Go to the documentation of this file.
1
#include <Windows.h>
2
#include "
hook.hpp
"
3
4
BOOL
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
DllMain
BOOL APIENTRY DllMain(HMODULE hModule, DWORD ul_reason_for_call, LPVOID lpReserved)
Definition
dllmain.cpp:4
hook.hpp
UnHook
VOID UnHook()
The UnHook function removes the hooks from the NTDLL functions.
Definition
hook.cpp:97
PlaceHooks
VOID PlaceHooks()
The PlaceHooks function places the hooks on the NTDLL functions.
Definition
hook.cpp:72
BOOL
int BOOL
Definition
inject.h:3
DWORD
unsigned long DWORD
Definition
inject.h:2
Generated by
1.9.8