Debugging Tools for Windows |
The GetNumberThreads method returns the number of threads in the current process.
HRESULT
IDebugSystemObjects::GetNumberThreads(
OUT PULONG Number
);
This method may also return error values. See Return Values for more details.
GetNumberThreads is available in all versions of IDebugSystemObjects.
In kernel-mode debugging, there is a virtual thread representing each processor.
In user-mode debugging, the number of threads changes with the IDebugEventCallbacks::CreateThread and IDebugEventCallbacks::ExitThread events.
For more information about threads, see Threads and Processes.
Headers: Defined in Dbgeng.h. Include Dbgeng.h.