IDebugClient2::GetRunningProcessSystemIds method

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

Syntax

HRESULT GetRunningProcessSystemIds(
  ULONG64 Server,
  PULONG  Ids,
  ULONG   Count,
  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

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

Return code Description
S_OK
The method was successful.

Remarks

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

   
Target Platform Desktop
Header dbgeng.h (include Dbgeng.h)

See Also

AttachProcess

ConnectProcessServer

CreateProcessAndAttach2

GetRunningProcessDescription

GetRunningProcessSystemIdByExecutableName

IDebugClient

IDebugClient2

IDebugClient3

IDebugClient4

IDebugClient5