다음을 통해 공유


IDebugPortNotify2::AddProgramNode

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

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.

See Also

IDebugPortNotify2
IDebugProgramNode2
RemoveProgramNode