Querying for Simple 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.]

The Windows Media DRM Client Extended APIs enable you to quickly get simple information about whether protected content can be accessed for various actions.

The IWMDRMLicenseQuery::QueryActionAllowed method can be used to determine quickly whether an action is permitted by a license in the local license store. QueryActionAllowed has been optimized to be much faster than queries for similar information using the objects of the Windows Media Format SDK. However, this type of query aggregates the licenses in the local license store and should be used only for simple features, such as might be needed for user interface elements, for example displaying a permission indicator.

Getting Information from Licenses in the Local License Store