Partilhar via


IDebugPortNotify2::AddProgramNode

Registers a program that can be debugged with the port it is running on.

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 IDebugPortNotify2::RemoveProgramNode method.

See Also

Reference

IDebugPortNotify2

IDebugProgramNode2

IDebugPortNotify2::RemoveProgramNode