共用方式為


IDebugPort2::EnumProcesses

Returns a list of all the processes running on a port.

HRESULT EnumProcesses( 
   IEnumDebugProcesses2** ppEnum
);
int EnumProcesses( 
   out IEnumDebugProcesses2 ppEnum
);

Parameters

  • ppEnum
    [out] Returns an IEnumDebugProcesses2 object that contains a list of all the processes running on a port.

Return Value

If successful, returns S_OK; otherwise, returns an error code.

See Also

Reference

IDebugPort2

IEnumDebugProcesses2