RtOpenProcess
RtOpenProcess returns a handle to an existing process object.
Syntax
HANDLE RtOpenProcess( DWORD dwAccess, BOOL bInherit, DWORD dwProcessId );
Parameters
dwAccess
Ignored.
bInherit
Ignored.
dwProcessId
The process identifier of the process to open.
Return Value
An open handle to the specified process if the function succeeds, NULL if the function fails
To get extended error information, call GetLastError.
Remarks
The handle returned by RtOpenProcess can be used in any function that requires a handle to a process, such as the wait functions, provided the appropriate access rights were requested.
When you are finished with the handle, be sure to close it using CloseHandle.
Requirements
Minimum Supported Version | RTX64 2013 |
Header | Rtapi.h |
Library | RtApi.lib (Windows), Rtx_Rtss.lib (RTSS) |
See Also: