INtime SDK Help
RtOpenProcess (iwin32x)
INtime SDK v6 > About INtime > Alternate APIs > iwin32 API > iwin32x API > RtOpenProcess (iwin32x)

Returns a handle to the process with the given ID.

HANDLE RtOpenProcess(
    DWORD dwDesiredAccess,
    BOOLEAN bInheritHandle,
    DWORD dwProcessId
);

Parameters

dwDesiredAccess
Ignored.
bInheritHandle
Ignored.
dwProcessId
Specifies the process identifier of the process to open.

Remarks

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.

Return Values

Open handle to specified process
Success.
NULL
Failure. For extended error information, see the Windows' GetLastError function.

Requirements

Versions Defined in Include Link to
INtime 3.0 intime/nt/include/iwin32x.h iwin32x.h iwin32x.lib

Notes

See Also

RtCloseHandle, iwin32x API, iwin32 Overview