BASS_CD_Door
Opens, closes, locks or unlocks a drive door.
BOOL BASS_CD_Door(
DWORD drive,
DWORD action
);
Parameters
drive | The drive... 0 = the first drive.
|
action | The action to perform... one of the following.
BASS_CD_DOOR_CLOSE | Close the door.
| BASS_CD_DOOR_OPEN | Open the door.
| BASS_CD_DOOR_LOCK | Lock the door.
| BASS_CD_DOOR_UNLOCK | Unlock the door.
|
|
Return value
If successful, TRUE is returned, else FALSE is returned. Use BASS_ErrorGetCode to get the error code.
Error codes
BASS_ERROR_DEVICE | drive is invalid.
|
BASS_ERROR_ILLPARAM | action is invalid.
|
BASS_ERROR_UNKNOWN | Some other mystery problem! Could be that the door is locked.
|
See also
BASS_CD_DoorIsLocked, BASS_CD_DoorIsOpen, BASS_CD_IsReady