Share via


IEnumDebugPorts2

This interface enumerates the ports of a machine or port supplier.

IEnumDebugPorts2 : IUnknown

Notes for Implementers

A custom port supplier implements this interface to represent a list of ports created by the supplier. Visual Studio implements this interface in support of its own port supplier.

Notes for Callers

Call IDebugPortSupplier2::EnumPorts to obtain this interface representing a list of ports created by the port supplier. Call IDebugPortSupplier3::EnumPersistedPorts to obtain this interface representing a list of ports that were saved to disk.

Methods in Vtable Order

The following table shows the methods of IEnumDebugPorts2.

Method

Description

IEnumDebugPorts2::Next

Retrieves a specified number of ports in an enumeration sequence.

IEnumDebugPorts2::Skip

Skips a specified number of ports in an enumeration sequence.

IEnumDebugPorts2::Reset

Resets an enumeration sequence to the beginning.

IEnumDebugPorts2::Clone

Creates an enumerator that contains the same enumeration state as the current enumerator.

IEnumDebugPorts2::GetCount

Gets the number of ports in an enumerator.

Remarks

Visual Studio uses this interface to help populate a list of ports used for attaching to processes.

A debug engine typically does not use this interface.

Requirements

Header: msdbg.h

Namespace: Microsoft.VisualStudio.Debugger.Interop

Assembly: Microsoft.VisualStudio.Debugger.Interop.dll

See Also

Concepts

Core Interfaces

Reference

IDebugCoreServer2::EnumPorts

IDebugPortSupplier2::EnumPorts