Windows Media Player 11 SDK CdromCollection.countÂ
Previous | Next |
CdromCollection.count
The count property retrieves the number of available CD and DVD drives on the system.
Syntax
Possible Values
This property is a read-only Number (long).
Remarks
To retrieve the value of this property, read access to the library is required. For more information, see Library Access.
DVD-ROM drives are counted exactly like CD drives. However, the Windows Media Player control only supports DVD functionality for Windows XP or later operating systems. Typically, DVD drives can play CD media, but CD drives cannot play DVD media.
Windows Media Player 10 Mobile: This method always returns 0.
Example Code
The following JScript example uses CdromCollection.count to display the number of CD and DVD drives available on the user's computer. 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 |