Retrieves information on a drive.
Namespace: Un4seen.Bass.AddOn.Cd
Assembly: Bass.Net (in Bass.Net.dll) Version: 2.4.17.5
Syntax
Parameters
- drive
- Type: SystemInt32
The drive to get info on... 0 = the first drive. - release
- Type: SystemBoolean
Release the drive after obtaining the info?If set, BASS_CD_Release(Int32) will be called right after (which might be required with some drivers).
Return Value
Type: BASS_CD_INFOAn instance of the BASS_CD_INFO class on success - or on error.
Remarks
ERROR CODE | Description |
---|---|
BASS_ERROR_DEVICE | drive is invalid. |
Examples
BASS_CD_INFO info = BassCd.BASS_CD_GetInfo(0); if ( info != null ) Console.WriteLine( info.ToString() );
See Also