Opens, closes, locks or unlocks a drive door.
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_Door( int drive, BASSCDDoor action )
Parameters
- drive
- Type: SystemInt32
The drive... 0 = the first drive. - action
- Type: Un4seen.Bass.AddOn.CdBASSCDDoor
The action to perform... one of the following (see BASSCDDoor):BASS_CD_DOOR_CLOSE Close the door. BASS_CD_DOOR_OPEN Open the door. BASS_CD_DOOR_LOCK Lock the door. BASS_CD_DOOR_UNLOCK Unlock the door.
Return Value
Type: BooleanIf successful, is returned, else is returned. Use BASS_ErrorGetCode to get the error code.
Remarks
ERROR CODE | Description |
---|---|
BASS_ERROR_DEVICE | drive is invalid. |
BASS_ERROR_ILLPARAM | action is invalid. |
BASS_ERROR_UNKNOWN | Some other mystery problem! Could be that the door is locked. |
Examples
See Also