Share via


Windows Media Player 11 SDK CdromCollection.getByDriveSpecifier 

Windows Media Player SDK banner art

Previous Next

CdromCollection.getByDriveSpecifier

The getByDriveSpecifier method retrieves the Cdrom object associated with a particular drive letter.

Syntax

  

Parameters

driveSpecifier

String containing the drive letter followed by a colon (":") character.

Return Values

This method returns a Cdrom object.

Remarks

Drive letters must be given in the form X:, where X represents the drive letter.

To use this method, read access to the library is required. For more information, see Library Access.

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

Example Code

The following JScript example uses CdromCollection.getByDriveSpecifier to retrieve the Cdrom object that corresponds to a drive letter provided by the user. An HTML text element was created, with NAME = "MyText", for user input. The Player object was created with ID = "Player".

  

Requirements

Version: Windows Media Player version 7.0 or later.

Library: Use wmp.dll.

See Also

Previous Next