Share via


IPacket::ReadBytes

Reads a byte from the object and points the internal iterator to the next data object in the packet.

HRESULT ReadBytes([out] BYTE **out_pBuffer, [out] ULONG *out_pArraySize)

Parameters

  • out_pBuffer
    [out] The array of bytes is read into buffer.

  • out_pArraySize
    [out] Specifies the number of bytes read into buffer.

Return Value

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

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

IPacket..::.ReadBytes

Requirements

DeviceAgentTransport.h

See Also

Reference

IPacket