Remarks
Performs an action on the given CD drive.
The total number of available CD drives can be obtained using the GetCdDrivesCount method.
Syntax
[C++]
short control.PerformActionOnCd (
short nDrive,
short nAction
);
|
|
Parameter
|
Description
|
|
|
nDrive
|
Number representing the zero-based index of the involved CD drive
|
nAction
|
Number representing the action to perform.
Supported values are the following:
Mnemonic constant
|
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.NOERROR (0)
|
The call was successful.
|
|