Debugging Tools for Windows

GetTotalNumberThreadsAndProcesses

The GetTotalNumberThreadsAndProcesses method returns the total number of threads and processes in all the targets the engine is attached to, in addition to the largest number of threads and processes in a target.

HRESULT
  IDebugSystemObjects3::GetTotalNumberThreadsAndProcesses(
    OUT PULONG  TotalThreads,
    OUT PULONG  TotalProcesses,
    OUT PULONG  LargestProcessThreads,
    OUT PULONG  LargestSystemThreads,
    OUT PULONG  LargestSystemProcesses
    );

Parameters

TotalThreads
Receives the total number of threads in all processes in all targets.
TotalProcesses
Receives the total number of processes in all targets.
LargestProcessThreads
Receives the largest number of threads in any process on any target.
LargestSystemThreads
Receives the largest number of threads in any target.
LargestSystemProcesses
Receives the largest number of processes in any target.

Return Value

S_OK
The method was successful.

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

Interface Version

GetTotalNumberThreadsAndProcesses is available in IDebugSystemObjects3 and later versions.

Comments

If no target is found, all the values are set to zero.

Requirements

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

See Also

Threads and Processes

Build machine: CAPEBUILD