Compartilhar via


WMRMProtect Object

banner art

Previous Next

WMRMProtect Object

Use the WMRMProtect object to encrypt content, and to package both the encrypted content and the content header in a Windows Media file. The WMRMProtect object exposes the following properties and methods.

Property Description
Header Specifies and retrieves the content header.
InputFile Specifies and retrieves the name of an input file.
Key Specifies and retrieves the content encryption key.
V1KeyID Specifies and retrieves the key ID for the version 1 content encryption object.
V1LicenseAcqURL Specifies and retrieves the license acquisition URL for the version 1 content header.
Method Description
ProtectFile Encrypts the file specified by the InputFile property.
WriteFile Writes an encrypted file with an updated content header.

See Also

Previous Next

© 2007 Microsoft Corporation. All rights reserved.