Copyright © 2006-2019 MultiMedia Soft

CdDriveMaxSpeedGet method

Previous pageReturn to chapter overviewNext page

Remarks

 

Obtains the maximum speed supported by the given CD drive.

 

 

Syntax

 

[Visual Basic]

Public Function CdDriveMaxSpeedGet (

nCdDriveIndex as Int16,

ByRef nMaxSpeed as Int32

) as enumErrorCodes


 

[C#]

public enumErrorCodes CdDriveMaxSpeedGet (

Int16 nCdDriveIndex,

ref Int32 nMaxSpeed

);


 

[C++]

public: enumErrorCodes CdDriveMaxSpeedGet (

Int16 nCdDriveIndex,

Int32 __gc *nMaxSpeed

);


 

 

Parameter

Description

 

 

nCdDriveIndex

Number representing the zero-based index of the involved CD drive.

Installed CD drives can be enumerated using the GetCdDrivesCount method and their friendly description can be retrieved through the GetCdDriveDesc method.

nMaxSpeed

Reference that, after returning from the method call, will contain the maximum speed supported by the CD drive expressed in Kbytes per second.

You can divide the speed by 176.4 to get the real-time speed multiplier; if for example the returned values should be 7096, the operation to perform would be

7096 / 176.4 = "40x".

 

 

Return value

 

Value

Meaning

 

 

Negative value

An error occurred (see the LastError property for further error details)

enumErrorCodes.ERR_NOERROR (0)

The call was successful.