共用方式為


IDebugPort2::GetPortRequest

Gets the description of a port that was previously used to create the port (if available).

HRESULT GetPortRequest( 
   IDebugPortRequest2** ppRequest
);
int GetPortRequest( 
   out IDebugPortRequest2 ppRequest
);

Parameters

  • ppRequest
    [out] Returns an IDebugPortRequest2 object representing the request that was used to create the port.

Return Value

If successful, returns S_OK; otherwise, returns an error code. Returns E_PORT_NO_REQUEST if a port was not created using an IDebugPortRequest2 port request.

See Also

Reference

IDebugPort2

IDebugPortRequest2

IDebugPortSupplier2::AddPort