Поделиться через


ICcTransportStream::Recv (Windows Embedded CE 6.0)

1/5/2010

This method receives a byte stream from a device.

Syntax

HRESULT Recv( 
  DWORD dwTimeout, 
  BYTE* pBuffer,
  DWORD* pcbBuffer
);

Parameters

  • dwTimeout
    [in] Timeout in milliseconds for the receive to complete.
  • pBuffer
    [out] Buffer to receive the data.

    Buffer length is specified by pcbBuffer.

  • pcbBuffer
    [in, out] Pointer to the size of pBuffer.

    On output, this parameter points to the number of bytes filled up in the pBuffer byte array.

Return Value

The following table shows return values for this method.

Value Description

S_OK

Indicates success.

E_INVALIDARG

Indicates invalid input arguments.

E_PENDING

Indicates Recv could not be completed within the given timeout.

Users can try again with the same or a different timeout value.

E_FAIL

Indicates any other failure.

Remarks

The maximum data that can be returned at one time is limited to the Maximum Transmission Unit (MTU) of this transport.

Requirements

Header cctransport.idl
Windows Embedded CE Windows CE 5.0 and later

See Also

Reference

ICcTransportStream
Core Connectivity Interfaces