Solved

find the volume name of a cd-rom

Posted on 2002-04-17
2
163 Views
Last Modified: 2013-11-20
I'd like to get the volume name of a cd-rom. How can I realize that? Thank you...

Martin Bader
0
Comment
Question by:martinbader
2 Comments
 
LVL 86

Accepted Solution

by:
jkr earned 100 total points
ID: 6948297
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
 

Author Comment

by:martinbader
ID: 6949841
Thanks a lot for your immediate help.

So long, Martin Bader
0

Featured Post

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

Suggested Solutions

In this article, I'll describe -- and show pictures of -- some of the significant additions that have been made available to programmers in the MFC Feature Pack for Visual C++ 2008.  These same feature are in the MFC libraries that come with Visual …
Introduction: The undo support, implementing a stack. Continuing from the eigth article about sudoku.   We need a mechanism to keep track of the digits entered so as to implement an undo mechanism.  This should be a ‘Last In First Out’ collec…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.

705 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now