IWTSProtocolLicenseConnection::RequestClientLicense 方法 (wtsprotocol.h)

[IWTSProtocolLicenseConnection::RequestClientLicense 自 Windows Server 2012 起不再可用。 请改用 IWRdsProtocolLicenseConnection::RequestClientLicense.]

从客户端请求许可证。

语法

HRESULT RequestClientLicense(
  [in]      PBYTE Reserve1,
  [in]      ULONG Reserve2,
  [out]     PBYTE ppClientLicense,
  [in, out] ULONG *pcbClientLicense
);

参数

[in] Reserve1

指向字节数组的指针,该数组包含可由客户端操作的其他数据。

[in] Reserve2

一个整数,包含 Reserve1 参数指定的数据的大小(以字节为单位)。

[out] ppClientLicense

指向包含许可证请求的字节数组的指针。

[in, out] pcbClientLicense

一个整数,包含 ppClientLicense 参数指定的请求的大小(以字节为单位)。

返回值

实现此方法时,如果函数成功,则返回 S_OK 。 如果失败,则返回指示错误的 HRESULT 值。 有关常见错误代码的列表,请参阅 常见 HRESULT 值

注解

有关此调用中交换的字节数组的详细信息,请参阅 [MS-RDPELE]:远程桌面协议:许可扩展

要求

要求
最低受支持的客户端 无受支持的版本
最低受支持的服务器 Windows Server 2008 R2
目标平台 Windows
标头 wtsprotocol.h

另请参阅

IWTSProtocolLicenseConnection