IDebugSystemObjects::GetThreadIdsByIndex method (dbgeng.h)

The GetThreadIdsByIndex method returns the engine and system thread IDs for the specified threads in the current process.

Syntax

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

Parameters

[in] Start

Specifies the index of the first thread whose IDs are requested.

[in] Count

Specifies the number of threads whose IDs are requested.

[out, optional] Ids

Receives the engine thread 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 thread 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 thread is zero. The index of the last thread is the number of threads returned by GetNumberThreads minus one.

For more information about threads, see Threads and Processes.

Requirements

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