Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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.