IWTSProtocolLicenseConnection::SendClientLicense method

[IWTSProtocolLicenseConnection::SendClientLicense is no longer available for use as of Windows Server 2012. Instead, use IWRdsProtocolLicenseConnection::SendClientLicense.]

Sends a license to the client.

Syntax

HRESULT SendClientLicense(
  PBYTE pClientLicense,
  ULONG cbClientLicense
);

Parameters

pClientLicense

A pointer to a byte array that contains the license.

cbClientLicense

An integer that contains the size, in bytes, of the license.

Return Value

When you are implementing this method, return S_OK if the function succeeds. If it fails, return an HRESULT value that indicates the error. For a list of common error codes, see Common HRESULT Values. The remote connection manager logs any errors that you return.

Remarks

For more information about the byte arrays exchanged in this call, see [MS-RDPELE]: Remote Desktop Protocol: Licensing Extension.

Requirements

   
Windows version None supported Windows Server 2008 R2
Target Platform Windows
Header wtsprotocol.h

See Also

IWTSProtocolLicenseConnection