IWMDRMLicenseQuery interface

[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 IWMDRMLicenseQuery interface enables applications to query the rights and license state for a protected file. This interface uses the Key ID to perform queries on the local license store.

To obtain an instance of this interface, call IWMDRMProvider::CreateObject. Pass IID_IWMDRMLicenseQuery as the riid parameter.

Members

The IWMDRMLicenseQuery interface inherits from the IUnknown interface. IWMDRMLicenseQuery also has these types of members:

Methods

The IWMDRMLicenseQuery interface has these methods.

Method Description
QueryActionAllowed Queries the local license store for permissions to perform actions by Key ID.
QueryLicenseState Queries the local license store for license state data by Key ID and specific rights.
SetActionAllowedQueryParams Sets environmental parameters to improve the accuracy of license queries.

Remarks

The methods of IWMDRMLicenseQuery do not provide information about individual licenses. Instead, the license data is aggregated by the DRM subsystem before the query results are returned.

See also

Interfaces