Debugging Tools for Windows

GetNumberProcesses

The GetNumberProcesses method returns the number of processes for the current target.

HRESULT
  IDebugSystemObjects::GetNumberProcesses(
    OUT PULONG  Number
    );

Parameters

Number
Receives the number of processes.

Return Value

S_OK
The method was successful.

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

Interface Version

GetNumberProcesses is available in all versions of IDebugSystemObjects.

Comments

In kernel-mode debugging, there is only a single virtual process representing the kernel.

In user-mode debugging, the number of processes changes with the create-process and exit-process debugging events.

For more information about processes, see Threads and Processes.

Requirements

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

Build machine: CAPEBUILD