I want to get a process descriptor by process name.
I have a PID, but when I use openProcessto get the descriptor always, it will return 0 or 180, the function that I use to work PID correctly
Handle := OpenProcess(PROCESS_QUERY_INFORMATION or PROCESS_VM_READ,False,PID);
What should I do?
source
share