Viewing Attributes of Protected Files

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

In some scenarios, you may need to retrieve certain DRM attributes in a file without actually accessing the contents of the file. This capability is useful, for example, in applications that process batches of files in different ways based on information in the file header. In previous versions of the Windows Media Format SDK, applications were required to link to the DRM static library in order to open any protected file. Applications that do not have the DRM library can use the IWMDRMEditor::GetDRMProperty interface on the metadata editor object to examine certain DRM attributes.

Note

DRM is not supported by the x64-based version of this SDK.

 

DRM Attribute List

Enabling DRM Support

IWMDRMEditor Interface