IDebugSystemObjects::GetThreadIdsByIndex method

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

Start [in]

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

Count [in]

Specifies the number of threads whose IDs are requested.

Ids [out, optional]

Receives the engine thread IDs. If Ids is NULL, this information is not returned; otherwise, Ids is treated as an array of Count ULONG valuess.

SysIds [out, optional]

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

Header

Dbgeng.h (include Dbgeng.h)

 

 

Send comments about this topic to Microsoft

Show:
© 2014 Microsoft