Debugging Tools for Windows

GetTotalNumberThreads

The GetTotalNumberThreads method returns the total number of threads for all the processes in the current target, in addition to the largest number of threads in any process for the current target.

HRESULT
  IDebugSystemObjects::GetTotalNumberThreads(
    OUT PULONG  Total,
    OUT PULONG  LargestProcess
    );

Parameters

Total
Receives the total number of threads for all the processes in the current target.
LargestProcess
Receives the largest number of threads in any process for the current target.

Return Value

S_OK
The method was successful.

This method may also return error values. See Return Values for more details.

Interface Version

GetTotalNumberThreads is available in all versions of IDebugSystemObjects.

Comments

For more information about threads, see Threads and Processes.

Requirements

Headers: Defined in Dbgeng.h. Include Dbgeng.h.

Build machine: CAPEBUILD