Debugging Tools for Windows

GetProcessIdsByIndex

The GetProcessIdsByIndex method returns the engine process ID and system process ID for the specified processes in the current target.

HRESULT
  IDebugSystemObjects::GetProcessIdsByIndex(
    IN ULONG  Start,
    IN ULONG  Count,
    OUT OPTIONAL PULONG  Ids,
    OUT OPTIONAL PULONG  SysIds
    );

Parameters

Start
Specifies the index of the first process whose ID is requested.
Count
Specifies the number of processes whose IDs are requested.
Ids
Receives the engine process IDs. If Ids is NULL, this information is not returned; otherwise, Ids is treated as an array of Count ULONG values.
SysIds
Receives the system process IDs. If SysIds is NULL, this information is not returned; otherwise, SysIds is treated as an array of Count ULONG values.

Return Value

S_OK
The method was successful.

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

Interface Version

GetProcessIdsByIndex is available in all versions of IDebugSystemObjects.

Comments

The index of the first process is zero. The index of the last process is the number of processes returned by GetNumberProcesses minus one.

For more information about processes, see Threads and Processes.

Requirements

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

Build machine: CAPEBUILD