description | title | ms.date | ms.topic | f1_keywords | helpviewer_keywords | author | ms.author | manager | ms.subservice | ||
---|---|---|---|---|---|---|---|---|---|---|---|
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. |
IDebugPortEvents2 |
11/04/2016 |
reference |
|
|
maiak |
maiak |
mijacobs |
debug-diagnostics |
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
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.
All IDebugPort2 interfaces can be queried for an xref:System.Runtime.InteropServices.ComTypes.IConnectionPointContainer interface. Then the xref:System.Runtime.InteropServices.ComTypes.IConnectionPointContainer.FindConnectionPoint%2A method for IDebugPortEvents2
is called in the xref:System.Runtime.InteropServices.ComTypes.IConnectionPointContainer interface to get an xref:System.Runtime.InteropServices.ComTypes.IConnectionPoint interface. Finally, the xref:System.Runtime.InteropServices.ComTypes.IConnectionPoint.Advise%2A method in the xref:System.Runtime.InteropServices.ComTypes.IConnectionPoint interface is called to send the events through the Event method.
The following table shows the method of IDebugPortEvents2
.
Method | Description |
---|---|
Event | Sends events that describe the creation and destruction of processes and programs on the port. |
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.
Header: msdbg.h
Namespace: Microsoft.VisualStudio.Debugger.Interop
Assembly: Microsoft.VisualStudio.Debugger.Interop.dll