IDebugPortEvents2

This interface notifies a listener (typically the session debug manager [SDM] or a debug engine) of process and program creation and destruction on a particular port. This information can be used to present a real-time view of the processes and programs running on the port.

IDebugPortEvents2 : IUnknown

Notes for Implementers

Visual Studio typically implements this interface to receive notifications about program creation and destruction. A debug engine can also implement this interface to listen for such port events.

Notes for Callers

All IDebugPort2 interfaces can be queried for an IConnectionPointContainer interface. Then the FindConnectionPoint method for IDebugPortEvents2 is called in the IConnectionPointContainer interface to get an IConnectionPoint interface. Finally, the Advise method in the IConnectionPoint interface is called to send the events through the IDebugPortEvents2::Event method.

Methods in Vtable Order

The following table shows the method of IDebugPortEvents2.

Method

Description

IDebugPortEvents2::Event

Sends events that describe the creation and destruction of processes and programs on the port.

Remarks

IDebugPortEvents2 is also used by the SDM to debug programs that run in a process that is already being debugged.

Port events are passed to the SDM by this interface.

Requirements

Header: msdbg.h

Namespace: Microsoft.VisualStudio.Debugger.Interop

Assembly: Microsoft.VisualStudio.Debugger.Interop.dll

See Also

Concepts

Core Interfaces

Reference

IDebugPort2