다음을 통해 공유


IDebugPortSupplier2::AddPort

Adds a port.

HRESULT AddPort( 
   IDebugPortRequest2* pRequest,
   IDebugPort2**       ppPort
);
int AddPort( 
   IDebugPortRequest2 pRequest,
   out IDebugPort2    ppPort
);

Parameters

  • pRequest
    [in] An IDebugPortRequest2 object that describes the port to be added.

  • ppPort
    [out] Returns an IDebugPort2 object that represents the port.

Return Value

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

Remarks

This method actually creates the requested port as well as adding it to the port supplier's internal list of active ports. The IDebugPortSupplier2::CanAddPort method can be called first to avoid possible time-consuming delays.

See Also

Reference

IDebugPortSupplier2

IDebugPortRequest2

IDebugPort2

IDebugPortSupplier2::CanAddPort