Debugging Tools for Windows

GetProcessIdBySystemId

The GetProcessIdBySystemId method returns the engine process ID for a process specified by its system process ID.

HRESULT
  IDebugSystemObjects::GetProcessIdBySystemId(
    IN ULONG  SysId,
    OUT PULONG  Id
    );

Parameters

SysId
Specifies the system process ID.
Id
Receives the engine process ID.

Return Value

S_OK
The method was successful.
E_NOTIMPL
The target is a kernel-mode target.

This method may also return other error values. See Return Values for more details.

Interface Version

GetProcessIdBySystemId is available in all versions of IDebugSystemObjects.

Comments

This method is only available in user-mode debugging.

For more information about processes, see Threads and Processes.

Requirements

Headers: Defined in Dbgeng.h. Include Dbgeng.h.

Build machine: CAPEBUILD