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

The IWMImageInfo interface retrieves images stored in ID3v2 "APIC" (attached picture) frames in a file. The methods of this interface are superseded in the Windows Media Format 9 Series SDK by the WM/Picture metadata attribute, which is supported by the methods of the new IWMHeaderInfo3 interface. If you are using the Windows Media Format 9 Series SDK, you should avoid using this interface.

An IWMImageInfo interface exists for every reader, synchronous reader, and metadata editor object. You can obtain a pointer to this interface by calling the QueryInterface method of any other interface in one of these objects.

Inheritance

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

Methods

The IWMImageInfo interface has these methods.

 
IWMImageInfo::GetImage

The GetImage method retrieves an image stored in a file as an ID3v2 "APIC" metadata frame.
IWMImageInfo::GetImageCount

The GetImageCount method retrieves the number of images stored in a file using ID3v2 "APIC" frames. Images stored in the file using attributes in the Windows Media namespace, or any images stored in custom attributes, are not included in this count.

Remarks

If retrieving this interface from the metadata editor, you must wait until after the file has been opened to call QueryInterface. If you try to QueryInterface for IWMImageInfo before receiving the WMT_OPENED message in your IWMStatusCallback::OnStatus method, the call will fail.

Requirements

   
Target Platform Windows
Header wmsdkidl.h

See also

Interfaces

Metadata Editor Object

Reader Object

Synchronous Reader Object