Partager via


ICcTransportStream::Recv (Windows CE 5.0)

Send Feedback

This method receives a byte stream from a device.

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 Values

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

OS Version: Windows CE 5.0 and later.
Header: CcTransport.idl.
Link Library: none.

See Also

Core Connectivity Interfaces

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.