Displaying a list of CD/DVD drives
-
I am using MFC, how would I go about finding and displaying all of the CD/DVD drives of the users computer? I have been looking around for articles, and have not found anything yet. Any help is appreciated. -Dev578
-
I am using MFC, how would I go about finding and displaying all of the CD/DVD drives of the users computer? I have been looking around for articles, and have not found anything yet. Any help is appreciated. -Dev578
Have you seen the Enumdisk1 sample (article Q264203) on MSDN? It uses the Setup class GUID_DEVCLASS_DISKDRIVE GUID (4D36E967-E325-11CE-BFC1-08002BE10318 I think) to enumerate all the disk devices that are installed in the system.
"The pointy end goes in the other man." - Antonio Banderas (Zorro, 1998)
-
mmica wrote: Take a look at _getdrives()... This does not sound like a valid function. Are you sure it exists?
"The pointy end goes in the other man." - Antonio Banderas (Zorro, 1998)
-
mmica wrote: Take a look at _getdrives()... This does not sound like a valid function. Are you sure it exists?
"The pointy end goes in the other man." - Antonio Banderas (Zorro, 1998)
Yeah it does, many microsoft C api/functions starts with _ for some compatiblity issue.
Interviewer (me) : "Did you install Linux all my yourself?" Candidate : "Yes i installed Linux all my yourself."
-
I am using MFC, how would I go about finding and displaying all of the CD/DVD drives of the users computer? I have been looking around for articles, and have not found anything yet. Any help is appreciated. -Dev578
GetLogicalDrives()
will tell you which drive letters exist on the system. CallGetDriveType()
on each one and look for a return ofDRIVE_CDROM
. --Mike-- Personal stuff:: Ericahist | Homepage Shareware stuff:: 1ClickPicGrabber | RightClick-Encrypt CP stuff:: CP SearchBar v2.0.2 | C++ Forum FAQ ---- Kosh reminded me of some of the prima-donna programmers I've worked with. Knew everything but when you asked them a question; never gave you a straight answer. -- Michael P. Butler in the Lounge