OpenProcess Fails
-
What would you do if
::OpenProcess(PROCESS_VM_READ, FALSE, dwProcessID)
fails with error code 5 (Access is denied)? WheredwProcessID
is a valid process ID. Is there any way to work around this problem?OpenProcess(PROCESS_VM_READ, FALSE, GetCurrentProcessId()); if you want know dwProccessId in the example MSDN you can find one program that you can see dwProccessId from another proccess
-
What would you do if
::OpenProcess(PROCESS_VM_READ, FALSE, dwProcessID)
fails with error code 5 (Access is denied)? WheredwProcessID
is a valid process ID. Is there any way to work around this problem?I would use the
OpenProcessToken()
/LookupPrivilegeValue()
/AdjustTokenPrivileges()
trio to gain access.
"Let us be thankful for the fools. But for them the rest of us could not succeed." - Mark Twain
"We will be known forever by the tracks we leave." - Native American Proverb
-
I would use the
OpenProcessToken()
/LookupPrivilegeValue()
/AdjustTokenPrivileges()
trio to gain access.
"Let us be thankful for the fools. But for them the rest of us could not succeed." - Mark Twain
"We will be known forever by the tracks we leave." - Native American Proverb
-
OpenProcessToken() LookupPrivilegeValue() AdjustTokenPrivileges() Google for examples.
"Let us be thankful for the fools. But for them the rest of us could not succeed." - Mark Twain
"We will be known forever by the tracks we leave." - Native American Proverb