Compartir a través de


IWMPLibrary interface (wmp.h)

[The feature associated with this page, Windows Media Player SDK, is a legacy feature. It has been superseded by MediaPlayer. MediaPlayer has been optimized for Windows 10 and Windows 11. Microsoft strongly recommends that new code use MediaPlayer instead of Windows Media Player SDK, when possible. Microsoft suggests that existing code that uses the legacy APIs be rewritten to use the new APIs if possible.]

The IWMPLibrary interface represents a library.

Inheritance

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

Methods

The IWMPLibrary interface has these methods.

 
IWMPLibrary::get_mediaCollection

The get_mediaCollection method retrieves a pointer to the IWMPMediaCollection interface for the current library.
IWMPLibrary::get_name

The get_name method retrieves the display name of the current library.
IWMPLibrary::get_type

The get_type method retrieves a value that indicates the library type.
IWMPLibrary::isIdentical

The isIdentical method retrieves a value that indicates whether the supplied object is the same as the current one.

Requirements

Requirement Value
Target Platform Windows
Header wmp.h

See also

IWMPLibraryServices::getLibraryByType

Interfaces