다음을 통해 공유


WMPLibraryType enumeration (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 WMPLibraryType enumeration type defines the possible library types to which Windows Media Player can connect.

Syntax

typedef enum WMPLibraryType {
  wmpltUnknown = 0,
  wmpltAll,
  wmpltLocal,
  wmpltRemote,
  wmpltDisc,
  wmpltPortableDevice
} ;

Constants

 
wmpltUnknown
Value: 0
Not a valid library type.
wmpltAll
All libraries.
wmpltLocal
The current user's library.
wmpltRemote
A library that belongs to another user on the same computer, the home network, or the Internet. The Player control must be running in remote mode to access these libraries. For information about running the Player control in remote mode, see Remoting the Windows Media Player Control.
wmpltDisc
Libraries on a data CD or DVD.
wmpltPortableDevice
Libraries on portable devices.

Remarks

Windows Media Player 10 Mobile: This enumeration is not supported.

Requirements

Requirement Value
Minimum supported client Windows Media Player 11.
Header wmp.h

See also

About Library Services

Enumeration Types

IWMPLibrary::get_type

IWMPLibraryServices Interface