IDebugSystemObjects::GetProcessIdsByIndex method (dbgeng.h)

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

Syntax

HRESULT GetProcessIdsByIndex(
  [in]            ULONG  Start,
  [in]            ULONG  Count,
  [out, optional] PULONG Ids,
  [out, optional] PULONG SysIds
);

Parameters

[in] Start

Specifies the index of the first process whose ID is requested.

[in] Count

Specifies the number of processes whose IDs are requested.

[out, optional] 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.

[out, optional] 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

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

Return code Description
S_OK
The method was successful.

Remarks

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

Requirement Value
Target Platform Desktop
Header dbgeng.h (include Dbgeng.h)