Partager via


LicenseGenerator.InstallKeys

banner art

Previous Next

LicenseGenerator.InstallKeys

The InstallKeys method installs new public and private keys in the database.

Syntax

  Call LicenseGenerator.InstallKeys( 
 bstrConnectionString,
 bReuse,
 varLicenseServerPublicKey,
 varLicenseServerPrivateKey
)

Parameters

bstrConnectionString

[in] String containing the database connection string. If a database is not used, the string can be empty.

bReuse

[in] Boolean indicating whether to reuse generate new keys. Specify True if existing public and private keys are to be reused. This parameter is ignored if bstrConnectionString is empty.

varLicenseServerPublicKey

[in, out] Variant containing the encoded public Windows Media License Service key.

varLicenseServerPrivateKey

[in, out] Variant containing the encoded private key.

Return Values

This method does not return a value.

Remarks

The public key is used to acquire certificates from Windows Media License Service.

Requirements

Version: Windows Media Rights Manager 7 SDK or later

Reference: LicenseServer 1.0 Type Library

Library: licenseserver.dll

Platform: Windows Server 2003

See Also

Previous Next

© 2007 Microsoft Corporation. All rights reserved.