BASS.NET API for the Un4seen BASS Audio Library

BassCdBASS_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: 2.4.17.5
Syntax

[DllImportAttribute("basscd")]
public static bool BASS_CD_DoorIsLocked(
	int drive
)

Parameters

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.
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.
See Also

Reference