WMRMLicGen Object

banner art

Previous Next

WMRMLicGen Object

The license issuer uses the WMRMLicGen object to create a license. Each license needs a separate instance of this object. A license consists of the following items:

  • The key used to encrypt the content and key ID.
  • The rights that govern playing of the content on the consumer's computer.
  • Optional attributes (name-value pairs) that help identify the license.
  • The priority of the license with respect to other licenses for the same Windows Media file.
  • The certificate, issued by Windows Media License Service, that identifies the license issuer's authority to create a license.

The WMRMLicGen object exposes the following properties and methods.

Property Description
Attribute Specifies and retrieves name-value pairs in a license.
BindToPubKey Specifies and retrieves a public key, and binds a license to the encrypted content by using this key.
ClientInfo Specifies system information about the consumer's computer.
IndividualizedVersion Specifies the individualization version that the packaged file requires of a player's DRM component.
IsClientExcluded Specifies whether the DRM component of a player has been excluded.
KeyID Specifies and retrieves the key ID for a license.
MeteringCertificate Specifies and retrieves the metering certificate to use for metering content.
Priority Specifies and retrieves the priority of a license.
Rights Specifies and retrieves the rights assigned by the license.
RIV Retrieves the revocation information version of the license server.
SupportedCRLS Retrieves a list of the certificate revocation lists (CRL) that are supported by the device that is requesting a license.
UplinkKey Specifies and retrieves the key of the root element in a license chain.
UplinkKid Specifies and retrieves the key ID of the root element in a license chain.
Method Description
AddContentRevocation Adds a content revocation string to a license.
GetClientVersion Retrieves the individualized version of the DRM component running on the client computer.
GetLicenseToDeliver Creates a license for delivery to the consumer.
SetInclusionList Adds an inclusion list to a license.
SetKey Specifies the encryption key used in the license.

See Also

Previous Next

© 2007 Microsoft Corporation. All rights reserved.