The return value is a pseudo handle to the current process.
DWORD pid = GetCurrentProcessId(); HANDLE hProcess2 = OpenProcess(0, FALSE, pid);
HANDLE hProcess2 = OpenProcess(PROCESS_ALL_ACCESS, FALSE, pid);
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)