다음을 통해 공유


IDebugPortNotify2

Note

This article applies to Visual Studio 2015. If you're looking for the latest Visual Studio documentation, see Visual Studio documentation. We recommend upgrading to the latest version of Visual Studio. Download it here

This interface registers or unregisters a program that can be debugged with the port it is running on.

Syntax

IDebugPortNotify2 : IUnknown  

Notes for Implementers

A custom port supplier implements this interface to support adding and removing programs from the port. It is typically implemented on the same object that implements the IDebugPort2 interface.

Notes for Callers

A call to QueryInterface on the IDebugPort2 interface returns this interface. Also, a call to GetPortNotify returns this interface. A debug engine can see this interface as a parameter to WatchForProviderEvents.

Methods in Vtable Order

The following table shows the methods of IDebugPortNotify2.

Method Description
AddProgramNode Registers a program that can be debugged with the port it is running on.
RemoveProgramNode Unregisters a program that can be debugged from the port it is running on.

Remarks

Unless a debug port has a way to know when programs are loaded or unloaded, a custom port supplier must implement this interface. All programs that are loaded for debugging through a particular port are tracked using this interface.

Requirements

Header: msdbg.h

Namespace: Microsoft.VisualStudio.Debugger.Interop

Assembly: Microsoft.VisualStudio.Debugger.Interop.dll

See Also

Core Interfaces
IDebugProgramNode2