Share via


IPacket::WriteString

Writes a string to the object.

HRESULT WriteString([in] LPWSTR in_lpwcString)

Parameters

  • in_lpwcString
    The string to be written to the packet.

Return Value

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

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

IPacket..::.WriteString

Requirements

DeviceAgentTransport.h

See Also

Reference

IPacket