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

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

public static bool BASS_CD_DoorIsLocked(
	int drive


Type: SystemInt32
The drive to check... 0 = the first drive.

Return Value

Type: Boolean
is returned if the door is locked, 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.
See Also