Mark
you're right, GetDiskVolSerialID doesnt discriminate between partition types.
You might get info from 'Windows 98 Professional Reference' - 'Chapter 17 -
File Systems: File and Disk Resources' at
http://www.pbs.mcp.com/ebooks/1562057863/index.htm

(You may have to subscribe to macmillans E-books first at http://pbs.mcp.com,
but its free ather than the time it takes to fill out the form).

regards
Leo

Mark Derricutt wrote:

> 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

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

Reply via email to