Files
mirror-processhacker/trunk/NProcessHacker/Test/test.c
T
wj32 5808bbcfc6 * added transparency hooking to NProcessHacker
* added some registry-related things to ProcessHacker.Native

git-svn-id: svn://svn.code.sf.net/p/processhacker/code@1379 21ef857c-d57f-4fe0-8362-d861dc6d29cd
2009-06-06 09:50:14 +00:00

30 lines
573 B
C

#ifndef UNICODE
#define UNICODE
#endif
#include <windows.h>
#include <stdio.h>
#include "../kph.h"
#include "../kphhook.h"
int wmain(int argc, WCHAR *argv[])
{
ULONG pid;
HANDLE processHandle;
CHAR memory[0x1000];
if (argc < 2)
{
printf("Usage: test [pid to kill]\n");
return 1;
}
pid = _wtoi(argv[1]);
KphHookInit();
processHandle = OpenProcess(PROCESS_ALL_ACCESS, FALSE, pid);
ReadProcessMemory(processHandle, 0x10000, memory, 0x1000, NULL);
return 0;
}