IWRdsGraphicsChannelManager::CreateChannel method (wrdsgraphicschannels.h)

Used to create a graphics virtual channel.

Syntax

HRESULT CreateChannel(
  [in]          const char              *pszChannelName,
  [in]          WRdsGraphicsChannelType channelType,
  [out, retval] IWRdsGraphicsChannel    **ppVirtualChannel
);

Parameters

[in] pszChannelName

Type: const char*

The name of the channel to create. This will be one of the following values.

"Microsoft::Windows::RDS::Graphics"

The Remote Desktop graphics channel.

"rdpgrfx"

The Remote Desktop information channel.

01"

The video-optimized bitmap remote data channel.

01"

The video-optimized bitmap remote geometry channel.

01"

The video-optimized bitmap remote control channel.

[in] channelType

Type: WRdsGraphicsChannelType

A value of the WRdsGraphicsChannelType enumeration that specifies what type of channel to create. If the specified type of channel cannot be created, this method should return a channel object rather than fail.

[out, retval] ppVirtualChannel

Type: IWRdsGraphicsChannel**

The address of an IWRdsGraphicsChannel interface pointer that receives the channel object.

Return value

Type: HRESULT

If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Requirements

Requirement Value
Minimum supported client Windows 8
Minimum supported server Windows Server 2012
Target Platform Windows
Header wrdsgraphicschannels.h

See also

IWRdsGraphicsChannelManager