다음을 통해 공유


IWMPCdromCollection 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 IWMPCdromCollection interface provides a way to organize and access a collection of CD or DVD drives.

Inheritance

The IWMPCdromCollection interface inherits from the IDispatch interface. IWMPCdromCollection also has these types of members:

Methods

The IWMPCdromCollection interface has these methods.

 
IWMPCdromCollection::get_count

The get_count method retrieves the number of available CD and DVD drives on the system.
IWMPCdromCollection::getByDriveSpecifier

The getByDriveSpecifier method retrieves a pointer to an IWMPCdrom interface associated with a particular drive letter.
IWMPCdromCollection::item

The item method retrieves a pointer to an IWMPCdrom interface at the given index.

Requirements

Requirement Value
Target Platform Windows
Header wmp.h

See also

IWMPCdrom Interface

Interfaces