Thanks for your help! I used OpenProcess to acquire a handle and it worked fine.
(Fixed code below)
#define PATCH_LOCATION 0x0013A142
DWORD process_id;
Type: Posts; User: 44ffcc
Thanks for your help! I used OpenProcess to acquire a handle and it worked fine.
(Fixed code below)
#define PATCH_LOCATION 0x0013A142
DWORD process_id;
I am writing a program to patch a memory location in another running process. Unfortunately it doesn't work as ReadProcessMemory gets an error 6 ("The handle is invalid."), even though the process ID...