Copyright © 2001-2008 MultiMedia Soft 
Return to Table of contents  
 
GetCdDriveDesc method 
 
Remarks 
 
Retrieves the friendly description of the requested CD drive. This method is very useful when you have to fill a combo box with the friendly names of the available CD drives.  
 
 
Syntax 
 
[Visual Basic] 
control.GetCdDriveDesc
nCdDriveIndex as Integer 
) as String
 
[C++] 
LPCTSTR control.GetCdDriveDesc
short nCdDriveIndex 
);
 
 
Parameter
Description
 
 
nCdDriveIndex
Number representing the zero-based index of the CD drive whose friendly name must be retrieved. 
Installed CD drives can be enumerated using the GetCdDrivesCount method.
 
Return value 
 
Value
Meaning
 
 
Empty string
The value of the nCdDriveIndex parameter was out of range. Use the value returned by the GetCdDrivesCount method in order to know how many CD drive are currently installed on the system.
Valid string
The string containing the friendly description of the requested CD drive.
 
 
 
 
 
 
 
 
 
 
 
 
 
Copyright © 2001-2008 MultiMedia Soft 
Return to Table of contents