Answer the question
In order to leave comments, you need to log in
What function can be used to convert int PID to Handle?
Good evening.
The question is when creating a process, one of the processes receives a PID in the form of an int, and WaitForSingleObject needs a handle.
It seems like there is a function with which you can get it. That is, knowing the PID, find out the handle /
Thank you.
Answer the question
In order to leave comments, you need to log in
HANDLE processHandle = OpenProcess(PROCESS_ALL_ACCESS, FALSE, processId);
CloseHandle(processHandle);
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question