BASS_CD_Door

Opens, closes, locks or unlocks a drive door.

BOOL BASS_CD_Door(
    DWORD drive,
    DWORD action
);

Parameters

driveThe drive... 0 = the first drive.
actionThe action to perform... one of the following.
BASS_CD_DOOR_CLOSEClose the door.
BASS_CD_DOOR_OPENOpen the door.
BASS_CD_DOOR_LOCKLock the door.
BASS_CD_DOOR_UNLOCKUnlock 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_DEVICEdrive is invalid.
BASS_ERROR_ILLPARAMaction is invalid.
BASS_ERROR_UNKNOWNSome other mystery problem! Could be that the door is locked.

See also

BASS_CD_DoorIsLocked, BASS_CD_DoorIsOpen, BASS_CD_IsReady