IDebugSystemObjects::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 [in]

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

Count [in]

Specifies the number of processes whose IDs are requested.

Ids [out, optional]

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

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 codeDescription
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

Header

Dbgeng.h (include Dbgeng.h)

 

 

Send comments about this topic to Microsoft

Show:
© 2014 Microsoft