次の方法で共有


IWMDRMWriter interface (wmsdkidl.h)

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

[IWMDRMWriter is available for use in the operating systems specified in the Requirements section. It may be altered or unavailable in subsequent versions. Instead, use Microsoft PlayReady. ]

The IWMDRMWriter interface provides support for applying DRM protection to content in ASF files. You can use this interface to set various DRM file attributes and run-time properties, and to generate DRM keys for encrypting the content and the DRM header, without needing to call functions external to the Windows Media Format SDK. Prior to Windows Media 9 Series, it was necessary to use the Windows Media Rights Manager SDK to apply protection to files. The ability to protect files "on the fly" as you write them enables scenarios such as "Live DRM" in which live streaming content, such as a pay-per-view sports event or concert, can be delivered over the Internet.

An IWMDRMWriter interface exists for every writer object. You can obtain a pointer to an instance of this interface by calling the QueryInterface method of any interface in a writer object.

Inheritance

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

Methods

The IWMDRMWriter interface has these methods.

 
IWMDRMWriter::GenerateKeyID

The GenerateKeyID method generates a DRM key ID.
IWMDRMWriter::GenerateKeySeed

The GenerateKeySeed method generates a DRM key seed.
IWMDRMWriter::GenerateSigningKeyPair

The GenerateSigningKeyPair method generates a public and private key pair that are used to sign the DRM header object.
IWMDRMWriter::SetDRMAttribute

The SetDRMAttribute method sets DRM-header attributes as well as other DRM run-time properties.

Requirements

Requirement Value
Minimum supported client Windows 2000 Professional [desktop apps only]
Minimum supported server Windows 2000 Server [desktop apps only]
Target Platform Windows
Header wmsdkidl.h

See also

DRM Attribute List

DRM Properties

IWMDRMWriter2 Interface

Interfaces

Writer Object