Partager via


ICcTransportStream::IsDataAvailable (Windows Embedded CE 6.0)

1/5/2010

This method determines if there is data to be read.

Syntax

HRESULT IsDataAvailable(
  VARIANT_BOOL* pbDataAvailable
);

Parameters

  • pbDataAvailable
    [out, retval] Set to VARIANT_TRUE, data is available to be read.

    Set to VARIANT_FALSE, no data is available to be read.

Return Value

The following table shows return values for this method.

Value Description

S_OK

Indicates success.

E_INVALIDARG

Indicates an invalid argument.

0x8000xxxx

When using ICcTcpStream, the transport stream might return a WinSock error result converted into an HRESULT format.

The high order bit of the HRESULT is always set to indicate failure.

The remainder of the HRESULT should be interpreted as the error code passed back from WinSock.

Requirements

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

See Also

Reference

ICcTransportStream
Core Connectivity Interfaces