Hiya, I use the following function to return the serial number of a cdrom:

function GetDiskVolSerialID(cDriveName : char ) : DWord;
var
  dwTemp2 : DWord;
begin
  GetVolumeInformation(
    PChar( cDriveName + ':\' ),Nil,0,@Result,dwTemp2,dwTemp2,Nil,0);
end;

Where cDriveName = 'E' on my machine at the momemt, however, I'm finding
that this is sometimes reporting the -wrong- serial number, usually on
discs containing multimedia stuff (it returns the serial number of the
cdrom portion, when I want the audio portion).

I use this number to look up the disc in the cdplayer.ini to find out
whats in the drive, and it keeps getting the wrong thing now :(

Does anyone know if theres any multi-media specific functions I shuld be
using to get this information?

-- 
Mark Derricutt, He that brings forth electronic life.
Getting jiggy with Tori Amos - to venus and back - venus orbiting

---------------------------------------------------------------------------
    New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
                  Website: http://www.delphi.org.nz

Reply via email to