Files
mirror-processhacker/1.x/branches/ph-plugins/NProcessHacker/NProcessHackerHook/nphhook.c
T
wj32 7bd28e4357 moved branches, tags, trunk to 1.x branch
git-svn-id: svn://svn.code.sf.net/p/processhacker/code@2304 21ef857c-d57f-4fe0-8362-d861dc6d29cd
2009-10-25 02:22:46 +00:00

24 lines
385 B
C

#include <windows.h>
#include "../kphhook.h"
BOOL WINAPI DllMain(
HINSTANCE hinstDLL,
DWORD fdwReason,
LPVOID lpvReserved
)
{
switch (fdwReason)
{
case DLL_PROCESS_ATTACH:
KphHookInit();
break;
case DLL_PROCESS_DETACH:
KphHookDeinit();
break;
default:
break;
}
return TRUE;
}