I want to get the handle of a process by the process name.
I have PID but when I use openProcess
to get the handle always it will return 0 or 180, the function that I use to get the PID working properly
Handle := OpenProcess(PROCESS_QUERY_INFORMATION or PROCESS_VM_READ,False,PID);
What should I do?