IDebugSystemObjects4::GetTotalNumberThreads method (dbgeng.h)

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.

Syntax

HRESULT GetTotalNumberThreads(
  [out] PULONG Total,
  [out] PULONG LargestProcess
);

Parameters

[out] Total

Receives the total number of threads for all the processes in the current target.

[out] LargestProcess

Receives the largest number of threads in any process for the current target.

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

For more information about threads, see Threads and Processes.

Requirements

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