Querying for Detailed Rights Information

[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.]

By using the IWMDRMLicenseQuery::QueryLicenseState method, you can obtain detailed information about the rights granted by licenses for a key ID. The information that you get from this method is aggregated from all licenses in the local license store that apply to the specified key ID.

QueryLicenseState uses the DRM_LICENSE_STATE_DATA structure to display aggregate information about all the licenses for the specified key ID. This usage is different than by other objects in the Windows Media Format SDK.

Getting Information from Licenses in the Local License Store