_WTS_LICENSE_CAPABILITIES structure (wtsdefs.h)

Contains information about the licensing capabilities of the client.

Syntax

typedef struct _WTS_LICENSE_CAPABILITIES {
  DWORD         KeyExchangeAlg;
  DWORD         ProtocolVer;
  BOOL          fAuthenticateServer;
  WTS_CERT_TYPE CertType;
  DWORD         cbClientName;
  BYTE          rgbClientName[WTS_LICENSE_CLIENT_NAME_BYTE_LENGTH];
} _WTS_LICENSE_CAPABILITIES, WTS_LICENSE_CAPABILITIES, *PWTS_LICENSE_CAPABILITIES, _WRDS_LICENSE_CAPABILITIES;

Members

KeyExchangeAlg

Contains an integer that specifies the encryption algorithm. This can be one of the following values.

WTS_KEY_EXCHANGE_ALG_RSA (1)

The RSA algorithm.

WTS_KEY_EXCHANGE_ALG_DH (2)

The Diffie-Hellman algorithm.

ProtocolVer

An integer that specifies the supported licensing protocol. This must be WTS_LICENSE_CURRENT_PROTOCOL_VERSION.

fAuthenticateServer

A Boolean value that specifies whether the client will authenticate the server.

CertType

A WTS_CERT_TYPE enumeration value that specifies the type of the certificate used to obtain the license.

cbClientName

An integer that contains the size, in bytes, of the client name specified by the rgbClientName member.

rgbClientName[WTS_LICENSE_CLIENT_NAME_BYTE_LENGTH]

The client name, including a terminating null character.

Remarks

This enumeration is used by the RequestLicensingCapabilities method.

Requirements

Requirement Value
Minimum supported client None supported
Minimum supported server Windows Server 2008 R2
Header wtsdefs.h (include Wtsprotocol.h)