Windows Media Player 11 SDK IWMPCdromCollection::getByDriveSpecifierÂ
Previous | Next |
IWMPCdromCollection::getByDriveSpecifier
The getByDriveSpecifier method retrieves a pointer to an IWMPCdrom interface associated with a particular drive letter.
Syntax
Parameters
bstrDriveSpecifier
[in] BSTR containing the drive letter followed by a colon (":") character.
ppCdrom
[out] Pointer to a pointer to an IWMPCdrom interface.
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
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 always returns E_INVALIDARG.
Requirements
Version: Windows Media Player 9 Series or later.
Header: Include wmp.h.
Library: Use wmp.dll.
See Also
- IWMPCdromCollection Interface
- IWMPCdrom Interface
- IWMPCdrom::eject
- IWMPSettings2::get_mediaAccessRights
- IWMPSettings2::requestMediaAccessRights
Previous | Next |