GetProcessIdsByIndex method

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

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

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

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

   
Windows Driver kit version
Target platform Desktop
Minimum KMDF version
Minimum UMDF version
Header dbgeng.h (include Dbgeng.h)
Library
IRQL
DDI compliance rules