The GetProcessIdsByIndex method returns the engine process ID and system process ID for the specified processes in the current target.
HRESULT GetProcessIdsByIndex( [in] ULONG Start, [in] ULONG Count, [out, optional] PULONG Ids, [out, optional] PULONG SysIds );
- 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.
This method may also return error values. See Return Values for more details.
The method was successful.
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.