Returns a handle to the process with the given ID.
HANDLE RtOpenProcess(
    DWORD dwDesiredAccess,
    BOOLEAN bInheritHandle,
    DWORD dwProcessId
);
dwDesiredAccess 
bInheritHandle 
dwProcessId 
The handle returned by RtOpenProcess can be used in any function that requires a handle to a process, such as wait functions.
When you finish with the handle, close it using RtCloseHandle.
RtOpenProcess can also be used from a Windows application to obtain the handle of an iWin32 process.
| Versions | Defined in | Include | Link to | 
|---|---|---|---|
| INtime 3.0 | intime/nt/include/iwin32x.h | iwin32x.h | iwin32x.lib | 
Notes
RtCloseHandle, iwin32x API, iwin32 Overview