Reading the label on a CD

  • Thread starter Thread starter Greg Smith
  • Start date Start date
G

Greg Smith

Is there an easy way to read the volume label name on a CD?

Is there a good way to test for the presence of a CD in the drive?


Any help is greatly appreciated.
 
Buzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz ................

Right over my head. Could you point me to an example?


Thanks.

Dmytro Lapshyn said:
Hi Greg,

You might try the GetVolumeInformation API through P/Invoke.

--
Sincerely,
Dmytro Lapshyn [Visual Developer - Visual C# MVP]


Greg Smith said:
Is there an easy way to read the volume label name on a CD?

Is there a good way to test for the presence of a CD in the drive?


Any help is greatly appreciated.
 
Greg,

This link should help you (watch for line wrap):

http://www.pinvoke.net/default.aspx/kernel32/GetVolumeInformation.html

Hope this helps.


--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)

Greg Smith said:
Buzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz ................

Right over my head. Could you point me to an example?


Thanks.

Dmytro Lapshyn said:
Hi Greg,

You might try the GetVolumeInformation API through P/Invoke.

--
Sincerely,
Dmytro Lapshyn [Visual Developer - Visual C# MVP]


Greg Smith said:
Is there an easy way to read the volume label name on a CD?

Is there a good way to test for the presence of a CD in the drive?


Any help is greatly appreciated.
 
Back
Top