BASS.NET API for the Un4seen BASS Audio LibraryBassCdBASS_CD_DoorIsOpen Method BASS.NET API for the Un4seen BASS Audio Library
Checks if a drive door/tray is open.

Namespace: Un4seen.Bass.AddOn.Cd
Assembly: Bass.Net (in Bass.Net.dll) Version: 2.4.12.0
Syntax

[DllImportAttribute("basscd.dll", CharSet = CharSet.Auto)]
public static bool BASS_CD_DoorIsOpen(
	int drive
)

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.
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 opened or closed by another application, or manually.
See Also

Reference