Copyright © 2006-2019 MultiMedia Soft

PerformActionOnCd method

Previous pageReturn to chapter overviewNext page

Remarks

 

Performs an action on the given CD drive.

 

The total number of available CD drives can be obtained using the GetCdDrivesCount method.

 

 

Syntax

 

[Visual Basic]

Public Function PerformActionOnCd (

nCdDriveIndex as Int16,

nAction as enumCdActions

) as enumErrorCodes


 

[C#]

public enumErrorCodes PerformActionOnCd (

Int16 nCdDriveIndex,

enumCdActions nAction

);


 

[C++]

public: enumErrorCodes PerformActionOnCd (

Int16 nCdDriveIndex,

enumCdActions nAction

);


 

 

Parameter

Description

 

 

nCdDriveIndex

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

nAction

The action to perform.

Supported values are the following:

Mnemonic value

Value

Meaning

CD_ACTION_OPEN

0

Opens the CD door

CD_ACTION_CLOSE

1

Closes the CD door

 

Return value

 

Value

Meaning

 

 

Negative value

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

enumErrorCodes.ERR_NOERROR (0)

The method call was successful.