BASS_CD_GetInfo


Retrieves information on a drive.

BOOL BASS_CD_GetInfo(
    DWORD drive,
    BASS_CD_INFO *info
);

Parameters

driveThe drive to get info on... 0 = the first drive.
infoPointer to a structure to receive the information.

Return value

If successful, TRUE is returned, else FALSE is returned. Use BASS_ErrorGetCode to get the error code.

Error codes

BASS_ERROR_DEVICEdrive is invalid.

Example

Check if the first drive can read CD-TEXT.
BASS_CD_INFO info;
BASS_CD_GetInfo(0, &info);
if (info.cdtext) {
    // it can read CD-TEXT!
}

See also

BASS_CD_GetSpeed, BASS_CD_INFO structure