The GetThreadIdsByIndex method returns the engine and system thread IDs for the specified threads in the current process.
HRESULT GetThreadIdsByIndex( [in] ULONG Start, [in] ULONG Count, [out, optional] PULONG Ids, [out, optional] PULONG SysIds );
- 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.
This method may also return error values. See Return Values for more details.
The method was successful.
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.
Build date: 11/16/2013