Debugging Tools for Windows

GetRunningProcessSystemIds

The GetRunningProcessSystemIds method returns the process IDs for each running process.

HRESULT
  IDebugClient::GetRunningProcessSystemIds(
    IN ULONG64  Server,
    OUT OPTIONAL PULONG  Ids,
    IN ULONG  Count,
    OUT OPTIONAL PULONG  ActualCount
    );

Parameters

Server
Specifies the process server to query for process IDs. If Server is zero, the engine will return the process IDs of the processes running on the local computer.
Ids
Receives the process IDs. The size of this array is Count. If Ids is NULL, this information is not returned.
Count
Specifies the number of process IDs the array Ids can hold.
ActualCount
Receives the actual number of process IDs returned in Ids.

Return Value

S_OK
The method was successful.

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

Interface Version

GetRunningProcessSystemIds is available in all versions of IDebugClient.

Comments

This method is available only for live user-mode debugging.

For more information about creating and attaching to live user-mode targets, see Live User-Mode Targets.

Requirements

Headers: Defined in dbgeng.h. Include dbgeng.h.

See Also

GetRunningProcessDescription, GetRunningProcessSystemIdByExecutableName, ConnectProcessServer, AttachProcess, CreateProcessAndAttach2

Build machine: CAPEBUILD