IWMDRMLicense::GetAnalogVideoRestrictionLevels 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 GetAnalogVideoRestrictionLevels method retrieves all analog video restrictions set on the current license.
Syntax
HRESULT GetAnalogVideoRestrictionLevels(
[out] WMDRM_ANALOG_VIDEO_RESTRICTIONS rgAnalogVideoRestrictions[],
[in, out] DWORD *pcRestrictions
);
Parameters
-
rgAnalogVideoRestrictions[] [out]
-
Receives an array of WMDRM_ANALOG_VIDEO_RESTRICTIONS structures. Set to NULL to get the number of elements in the array in pcResctrictions.
-
pcRestrictions [in, out]
-
The number of elements in the array of restrictions. If rgAnalogVideoRestrictions is set to NULL, this value is set to the number of elements needed in the array.
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
You must allocate memory for the array of restrictions. To do so, first call the method with rgAnalogVideoRestrictions set to NULL, which will set the value at pcRestrictions to the number of required elements.
Requirements
Requirement | Value |
---|---|
Header |
|
Library |
|