BASS_CD_DoorIsLocked


Checks if a drive door/tray is locked.

BOOL BASS_CD_DoorIsLocked(
    DWORD drive
);

Parameters

driveThe drive to check... 0 = the first drive.

Return value

TRUE is returned if the door is locked, else FALSE is returned.

Remarks

It is not possible to get the drive's current door status via the WIO interface. So the last known status will be returned in that case, which may not be accurate if the door has been locked or unlocked by another application.

See also

BASS_CD_Door, BASS_CD_DoorIsOpen, BASS_CD_IsReady, BASS_CD_SetInterface