Share via


IDevicePacketStream::IsPacketAvailable

Checks if there is a packet ready to be read.

HRESULT IsPacketAvailable([retval][out] VARIANT_BOOL *pVal)

Parameters

  • pVal
    true if data is ready to be read; otherwise, false.

Return Value

An HRESULT value that indicates the outcome of the method call.

  • E_INVALIDARG | Arguments are not valid (pbDataAvailable is NULL).

  • E_FAIL | for any other failure.

Example

In this example, the packet stream reads data from the RemoteAgent object on the desktop while connected. For the complete example, see IDeviceAgentTransport.

Managed Equivalent

IDevicePacketStream..::.IsPacketAvailable

Requirements

DeviceAgentTransport.h

See Also

Reference

IDevicePacketStream