Share via


IDevicePacketStream::Read

Reads packets sent from the DevicePacketStream on the desktop computer.

HRESULT Read([retval][out] IPacket **out_ppPacket)

Parameters

  • out_ppPacket
    Data is read into the packet.

Return Value

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

  • E_INVALIDARG | The input arguments are not valid (cannot write into the packet).

  • E_PENDING | Read could not be completed within the given time-out. Users can try again with the same or a different time-out value.

  • 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..::.Read

Requirements

DeviceAgentTransport.h

See Also

Reference

IDevicePacketStream