• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 176
  • Last Modified:

find the volume name of a cd-rom

I'd like to get the volume name of a cd-rom. How can I realize that? Thank you...

Martin Bader
0
martinbader
Asked:
martinbader
1 Solution
 
jkrCommented:
Use 'GetVolumeInformation()' (http://msdn.microsoft.com/library/default.asp?url=/library/en-us/fileio/fsys_6wfi.asp), e.g.

char acVolName [ 255];
GetVolumeInformation ( <path to your CD-Drive>, acVolName, sizeof ( acVolName), NULL, NULL, NULL, NULL, 0);
0
 
martinbaderAuthor Commented:
Thanks a lot for your immediate help.

So long, Martin Bader
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now