Επεξεργασία

Κοινή χρήση μέσω


Windows Media Format SDK Functions

[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 Windows Media Format SDK includes functions for creating objects, and helper functions to simplify some procedures.

This SDK supports the following functions for initial creation of objects. If an object is not listed below, you must create it using an interface from another object. For more information, see Objects.

Function Description
WMCheckURLExtension Examines the file name extension in the URL or file name that is passed in as an argument
WMCheckURLScheme Examines a network protocol and compares it to an internal list of supported schemes
WMCreateBackupRestorer Creates a backup restorer object.
WMCreateCertificate Wraps the user's certificates into an object.
WMCreateDeviceRegistration Creates a device registration object.
WMCreateDRMTranscryptor Creates a DRM transcryptor object.
WMCreateEditor Creates a metadata editor object.
WMCreateIndexer Creates an indexer object.
WMCreateLicenseRevocationAgent Creates a license revocation agent object.
WMCreateProfileManager Creates a profile manager object.
WMCreateReader Creates a reader object.
WMCreateSecureChannel Creates an object that implements IWMSecureChannel.
WMCreateSecureChannel_Certified Creates an object that implements IWMSecureChannel.
WMCreateSecureChannel_Certified_DES Creates an object that implements IWMSecureChannel..
WMCreateSecureChannel_DES Creates an object that implements IWMSecureChannel.
WMCreateSyncReader Creates a synchronous reader object.
WMCreateWriter Creates a writer object.
WMCreateWriterFileSink Creates a writer file sink object.
WMCreateWriterNetworkSink Creates a writer network sink object.
WMCreateWriterPushSink Creates a writer push sink object.
WMIsAvailableOffline Verifies that an ASF file can be played from a cached copy.
WMIsContentProtected Checks a file for DRM-protected content.
WMValidateData Verifies that data from the beginning of a file is consistent with the header section of a file type that is supported by the Windows Media Format SDK.

 

The following functions provide convenient shortcuts for analyzing files.

Function Description
WMCheckURLExtension Tries to determine whether a file is readable by the objects of the Windows Media Format SDK, based on the file name extension.
WMCheckURLScheme Determines whether a network protocol is supported by the objects of the Windows Media Format SDK.
WMIsAvailableOffline Determines whether a file is available for playback offline.
WMIsContentProtected Checks a file for DRM-protected content.
WMValidateData Tries to determine whether a file is readable by the objects of the Windows Media Format SDK by analyzing data at the beginning of the file.

 

Objects

Programming Reference