IDebugSystemObjects3::GetTotalNumberThreadsAndProcesses method (dbgeng.h)
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.
Syntax
HRESULT GetTotalNumberThreadsAndProcesses(
[out] PULONG TotalThreads,
[out] PULONG TotalProcesses,
[out] PULONG LargestProcessThreads,
[out] PULONG LargestSystemThreads,
[out] PULONG LargestSystemProcesses
);
Parameters
[out] TotalThreads
Receives the total number of threads in all processes in all targets.
[out] TotalProcesses
Receives the total number of processes in all targets.
[out] LargestProcessThreads
Receives the largest number of threads in any process on any target.
[out] LargestSystemThreads
Receives the largest number of threads in any target.
[out] LargestSystemProcesses
Receives the largest number of processes in any target.
Return value
This method may also return error values. See Return Values for more details.
Return code | Description |
---|---|
|
The method was successful. |
Remarks
If no target is found, all the values are set to zero.
Requirements
Requirement | Value |
---|---|
Target Platform | Desktop |
Header | dbgeng.h (include Dbgeng.h) |