IWMDRMLicenseQuery::SetActionAllowedQueryParams method
[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 SetActionAllowedQueryParams method sets environment-specific information for more accurate query results when using the QueryActionAllowed method.
Syntax
HRESULT SetActionAllowedQueryParams(
[in] BOOL fIsMF,
[in] DWORD dwAppSecLevel,
[in] BOOL fHasSerialNumber,
[in] BSTR bstrDeviceCert
);
Parameters
-
fIsMF [in]
-
Specifies whether the content will be rendered by using the objects of the Microsoft Media Foundation SDK. FALSE indicates rendering by the objects of the Windows Media Format SDK. This parameter is optional.
-
dwAppSecLevel [in]
-
Security level of the querying application. This value is only important if the objects of the Windows Media Format SDK will be used, in which case fIsMF should be set to FALSE. This parameter is optional.
-
fHasSerialNumber [in]
-
Specifies whether the target device for a copy operation has a serial number. This parameter is optional and only applies to queries for copy operations.
-
bstrDeviceCert [in]
-
Device certificate of the target device when using Windows Media DRM for Portable Devices. This parameter is optional and only applies to queries for copy operations.
Return value
The method returns an HRESULT. Possible values include, but are not limited to, those in the following table.
Return code | Description |
---|---|
|
The method succeeded. |
Remarks
None.
Requirements
Requirement | Value |
---|---|
Header |
|
Library |
|