OpenProcess() returns unexpected value

-1

Im trying to get a process HANDLE via HANDLE hProcess = OpenProcess(PROCESS_ALL_ACCESS, false, processID); The processID is definetly correct (checked via debugger) and the applications are both (mine and the target process) 32 bit.

The debugger also shows me, that hProcess gets assigned the following value: 0x000000cc

Thanks in advance!

c++
winapi
openprocess
asked on Stack Overflow Aug 11, 2019 by GutZuFusss

1 Answer

0

Okay, turns out this result is expected. Sorry for the inconvinience.

answered on Stack Overflow Aug 11, 2019 by GutZuFusss

User contributions licensed under CC BY-SA 3.0