IWRdsGraphicsChannelManager::CreateChannel 方法 (wrdsgraphicschannels.h)

用于创建图形虚拟通道。

语法

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

参数

[in] pszChannelName

类型: const char*

要创建的通道的名称。 这是以下值之一。

“Microsoft::Windows::RDS::Graphics”

远程桌面图形通道。

“rdpgrfx”

远程桌面信息通道。

01"

视频优化的位图远程数据通道。

01"

视频优化位图远程几何通道。

01"

视频优化位图远程控制通道。

[in] channelType

类型: WRdsGraphicsChannelType

指定要创建的通道类型的 WRdsGraphicsChannelType 枚举的值。 如果无法创建指定的通道类型,此方法应返回通道对象,而不是失败。

[out, retval] ppVirtualChannel

类型: IWRdsGraphicsChannel**

接收通道对象的 IWRdsGraphicsChannel 接口指针的地址。

返回值

类型: HRESULT

如果该方法成功,则返回 S_OK。 否则,将返回 HRESULT 错误代码。

要求

要求
最低受支持的客户端 Windows 8
最低受支持的服务器 Windows Server 2012
目标平台 Windows
标头 wrdsgraphicschannels.h

另请参阅

IWRdsGraphicsChannelManager