Partager via


Creating a License From a License

[The AD RMS SDK leveraging functionality exposed by the client in Msdrm.dll is available for use in Windows Server 2008, Windows Vista, Windows Server 2008 R2, Windows 7, Windows Server 2012, and Windows 8. It may be altered or unavailable in subsequent versions. Instead, use Active Directory Rights Management Services SDK 2.1, which leverages functionality exposed by the client in Msipc.dll.]

The hBoundLicense parameter in the DRMCreateIssuanceLicense function enables an application to reuse data from an existing issuance license when creating a new license. To reuse an existing license, your application can perform the following steps:

  1. Obtain a signed issuance license for which the user is granted the VIEWRIGHTSDATA or OWNER right.
  2. Call DRMCreateBoundLicense to bind to the license. For a complete source code example that shows how to bind to a license, see the Decryption_GetBoundLicense.cpp topic in the discussion of content decryption later in this documentation.
  3. Call DRMCreateIssuanceLicense, passing in the bound license handle and the signed issuance license or template. The following data is retrieved from the existing license:

Creating an Issuance License

Creating a License From a Template

Creating a License From Scratch