IDevicePacketStream::Write
Writes a packet to the stream. The packet is read by the DevicePacketStream on the desktop computer.
HRESULT Write([in] IPacket *in_pPacket)
Parameters
- in_pPacket
Packet to write.
Return Value
An HRESULT value that indicates the outcome of the method call.
E_INVALIDARG | Input arguments are not valid (packet is NULL pointer).
E_FAIL | for any other failure.
Example
In this example, IDeviceAgentTransport::AcceptConnectionEx creates an instance of IDevicePacketStream. The device packet stream is then used to write data to the RemoteAgent object on the desktop. For the complete example, see IDeviceAgentTransport.
Managed Equivalent
Requirements
DeviceAgentTransport.h