次の方法で共有


IDebugProgramPublisher2::PublishProgramNode

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

Makes a program node available for use by debug engines (DEs) and the session debug manager (SDM).

Syntax

HRESULT PublishProgramNode(  
   IDebugProgramNode2 *pProgramNode  
);  
int PublishProgramNode(  
   IDebugProgramNode2 pProgramNode  
);  

Parameters

pProgramNode
[in] An IDebugProgramNode2 object that represents the program node to make available.

Return Value

If successful, returns S_OK; otherwise, returns an error code.

Remarks

This method allows programs to be queried for information before selecting and launching them for debugging.

To remove a program node from availability, call the UnpublishProgramNode method.

See Also

IDebugProgramPublisher2
IDebugProgramNode2
UnpublishProgramNode