License Deletion
[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.]
Any third-party licenses created locally, for example through DRM import, can be deleted by calling the IWMDRMLicenseManagement::ProcessLicenseDeletionMessage method. The string you pass to this method will be an XMR license that resembles the following:
<response type="LRB">
<DATA>
<LICENSEDATA>
<DATA>
<KID>include Key ID here to revoke certain keys</KID>
<LID>rights ID</LID
<META>
<LGPUBKEY>
<PublicKey>
<Modulus>base64 encoded public key</Modulus>
<Exponent>Exponent in network byte order</Exponent>
</PublicKey>
</LGPUBKEY>
<UID>content-owner-specific user ID</UID>
</META>
</DATA>
</LICENSEDATA>
</DATA>
</response>
The owner specific user ID (UID) field is optional. Optional fields must not be included in the license response if there is not any data associated with them.
Related topics