Checks if a drive door/tray is open.
Namespace:
Un4seen.Bass.AddOn.Cd
Assembly:
Bass.Net (in Bass.Net.dll) Version: 2.4.17.5
[DllImportAttribute("basscd")]
public static bool BASS_CD_DoorIsOpen(
int drive
)
<DllImportAttribute("basscd">]
Public Shared Function BASS_CD_DoorIsOpen (
drive As Integer
) As Boolean
Parameters
- drive
- Type: SystemInt32
The drive to check... 0 = the first drive.
Return Value
Type:
Boolean is returned if the door is open, else
is returned.
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 opened or closed by another application, or manually.
Reference