Hprocess
hProcess is a handle to a process object in the Windows API. It is an opaque value returned by functions such as CreateProcess and OpenProcess and is stored in the calling process’s handle table. The handle serves as a reference to the newly created or existing process object and is used with various API calls to monitor or control the process.
Common uses of hProcess include waiting for a process to finish, querying its exit code, and terminating
Lifetime and rights: a process handle remains valid until it is closed with CloseHandle. The access rights
Important distinctions: hProcess is a handle, not a process ID (PID). The PID can be retrieved from