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:

public static bool BASS_CD_DoorIsOpen(
	int 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.
See Also