Importing License and Key Material

[The feature associated with this page, Windows Media Format 11 SDK, is a legacy feature. It has been superseded by Source Reader and Sink Writer. Source Reader and Sink Writer have been optimized for Windows 10 and Windows 11. Microsoft strongly recommends that new code use Source Reader and Sink Writer instead of Windows Media Format 11 SDK, when possible. Microsoft suggests that existing code that uses the legacy APIs be rewritten to use the new APIs if possible.]

If you have media content that was encrypted using a third-party content protection system and you want to import the license and key material into Windows Media DRM, follow these steps:

  1. Retrieve the Windows Media DRM machine certificate collection by calling the IWMDRMSecurity::GetMachineCertificate method.
  2. Parse the certificate collection, ensuring that it is signed correctly and is validated to a known Microsoft root public key. The certificate collection conforms to the XMR schema. For more information, see Building an XMR License.
  3. Optional: Extract the revocation list by calling the IWMDRMSecurity::GetRevocationData method.
  4. Optional: Insure that no certificate in the collection is revoked. For more information, see Checking Certificate Revocation.
  5. Generate a license in the XMR format that represents the policy requirements for the import content and contains the appropriate Windows Media DRM key material. For more information, see the topic Building an XMR License.
  6. Pass the XMR license to the Windows Media DRM system for processing, by using the IWMDRMLicenseManagement::StoreLicense method.

Note

Details about the XMR schema will be provided to you when you license Windows Media DRM.

 

Checking Certificate Revocation

Building an XMR License

DRM Import