Share via


Windows Media Player 11 SDK IWMPCdrom::get_driveSpecifier 

Windows Media Player SDK banner art

Previous Next

IWMPCdrom::get_driveSpecifier

The get_driveSpecifier method retrieves the CD or DVD drive letter.

Syntax

  

Parameters

pbstrDrive

[out]  Pointer to a BSTR containing the drive.

Return Values

The method returns an HRESULT. Possible values include, but are not limited to, those in the following table.

Return code Description
S_OK The method succeeded.

Remarks

Typically, DVD drives can play CD media, but CD drives cannot play DVD media.

This method retrieves a drive letter for a zero-based drive index within the range retrieved using the IWMPCdromCollection::get_count method. The value retrieved takes the form X:, where X represents the drive letter.

To retrieve the value of this property, read access to the library is required. For more information, see Library Access.

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

Requirements

Version: Windows Media Player 9 Series or later.

Header: Include wmp.h.

Library: Use wmp.dll.

Platform: Windows XP or later for DVD.

See Also

Previous Next