IRDPSRAPIVirtualChannel::SendData method (rdpencomapi.h)

Sends data on the channel.

Syntax

HRESULT SendData(
  [in] BSTR          bstrData,
  [in] long          lAttendeeId,
  [in] unsigned long ChannelSendFlags
);

Parameters

[in] bstrData

Type: BSTR

The buffer to be sent in a packet on the channel. The maximum size of the data is CONST_MAX_MESSAGE_SIZE bytes.

[in] lAttendeeId

Type: long

The attendee that should receive the data. To send the data to all attendees, use CONST_ATTENDEE_ID_EVERYONE.

[in] ChannelSendFlags

Type: unsigned long

The channel flags. This parameter can be 0 or the following value.

CHANNEL_FLAGS_UNCOMPRESSED

The data should not be compressed before it is sent because it is in a format that is already compressed.

Return value

Type: HRESULT

If the method succeeds, the return value is S_OK. Otherwise, the return value is an error code.

Requirements

Requirement Value
Minimum supported client Windows Vista [desktop apps | UWP apps]
Minimum supported server Windows Server 2008 [desktop apps | UWP apps]
Target Platform Windows
Header rdpencomapi.h
DLL RdpEncom.dll

See also

IRDPSRAPIVirtualChannel