Share via


IWMPCdrom (VB and C#) interface

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

Provides a way to access a CD or DVD in its drive.

The IWMPCdrom interface exposes the following properties.

Members

The IWMPCdrom (VB and C#) interface has these types of members:

Methods

The IWMPCdrom (VB and C#) interface has these methods.

Method Description
eject Ejects the CD or DVD from the drive.

Properties

The IWMPCdrom (VB and C#) interface has these properties.

Property Access type Description
driveSpecifier
Read-only
Gets the CD or DVD drive letter.
Playlist
Read-only
Gets an IWMPPlaylist interface representing the tracks on a CD or the root-level title entries for a DVD.

Requirements

Requirement Value
Header
Wmp.h

See also

Interfaces for Visual Basic .NET and C#

IWMPPlaylist Interface (VB and C#)