Getting the volume ID of an Audio CD

I'm wanting to get the ID of an audio CD so that I can cross reference with the CDPlayer.ini file.

For example, here's a bit from my cdplayer.ini:

[C70E1E]
EntryType=1
artist=Portishead
title=Dummy
numtracks=10
order=0 1 2 3 4 5 6 7 8 9
numplay=10

I want to be able to tell if the CD in the drive is C70E1E.

Cheers,
Dave
wierd_daveAsked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
chensuConnect With a Mentor Commented:
Call GetVolumeInformation to get the volume serial number and convert it to an hex string.
0
 
wierd_daveAuthor Commented:
That'll do!

Dave
0
All Courses

From novice to tech pro — start learning today.