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

Metadata, for the purposes of this SDK, is information that describes an ASF file or the contents of the file. The header section of an ASF file contains all of the metadata associated with that file. Individual items of metadata in an ASF file are called attributes. Each attribute has a name and a value. Throughout this documentation, global constants are used to identify attributes. For example, the title of an ASF file is stored in the g_wszWMTitle attribute.

A number of attributes are defined in the Windows Media Format SDK to handle the most common metadata needs. In addition, you can create your own attributes. You should take care when naming custom attributes, however, because other application developers can use the same names, and conflicts can occur.

Some attributes are set by the SDK and cannot be changed manually. For example, when you index an ASF file, the SDK sets the g_wszWMSeekable attribute to show that the file can now be read from any specified point.

Other attributes are purely informational and must be set manually. For example, if you want to keep track of the author of a file, you should set g_wszWMAuthor.

The Windows Media Format SDK provides support for attributes that apply to the entire file, and attributes that apply to individual streams.

You can use the Windows Media Format SDK to edit the metadata in MP3 files, though you should always use ID3-compliant attributes in MP3 files to maintain compatibility with other MP3 manipulation programs.


Metadata Editor Object

Metadata Features

Working with Metadata