Windows Media Format SDK banner art
PreviousNext

To Edit Windows Media Header Files

  1. Create an IWMMetadataEditor object.

  2. Call Open with the appropriate file name.

  3. Use QueryInterface to access the IWMHeaderInfo object. Then use that to get and set attributes as needed, using the GetAttributeCount, GetAttributeByIndex, GetAttributeByName, and SetAttribute methods.

  4. Call Flush to ensure changes to the header are written as output. Otherwise, call Close to close the file without writing any changes as output.

See Also

PreviousNext


© 1999 Microsoft Corporation. All rights reserved.