Skip to content

Commit d891dbf

Browse files
author
dude719
committed
Changed OpenProcess desired access.
1 parent bbdfe48 commit d891dbf

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

Injectora/Injector.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ bool Injector::Setup()
150150
return false;
151151
}
152152

153-
processHandle = OpenProcess(PROCESS_ALL_ACCESS, FALSE, processId);//PROCESS_CREATE_THREAD | PROCESS_QUERY_INFORMATION | PROCESS_VM_OPERATION | PROCESS_VM_WRITE | PROCESS_VM_READ
153+
processHandle = OpenProcess(PROCESS_CREATE_THREAD | PROCESS_QUERY_INFORMATION | PROCESS_VM_OPERATION | PROCESS_VM_WRITE | PROCESS_VM_READ, FALSE, processId);
154154
#if defined _DEBUG
155155
printf("processHandle: 0x%X\n", processHandle);
156156
#endif

Injectora/nt_ddk.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@
44
#include <Windows.h>
55
#include <bcrypt.h>
66

7-
8-
97
#define NT_SUCCESS(x) ((x) >= 0)
108
#ifndef STATUS_SUCCESS
119
#define STATUS_SUCCESS ((NTSTATUS)0x00000000L)

0 commit comments

Comments
 (0)