IDebugPortNotify2::AddProgramNode
Applies to: Visual Studio Visual Studio for Mac
Note
This article applies to Visual Studio 2017. 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
Registers a program that can be debugged with the port it is running on.
Syntax
HRESULT AddProgramNode(
IDebugProgramNode2* pProgramNode
);
int AddProgramNode(
IDebugProgramNode2 pProgramNode
);
Parameters
pProgramNode
[in] An IDebugProgramNode2 object that represents the program to be registered.
Return Value
If successful, returns S_OK
; otherwise, returns an error code.
Remarks
A program node can be unregistered from the port by calling the RemoveProgramNode method.