Hello List,
I am having an impossible time trying to determine if a drive contains a CD (audio or data). After sinking an incredible amount of time, I'm stuck. I've tried everything I know to do with FSGetVolumeInfo (and even statfs). After a lot of my own trials, I ran across some really good sample code that appears to give comprehensive info about usings FSGetVolumeInfo and other disk methods, but nothing that was the tell-tale: http://developer.apple.com/samplecode/DumpVolumeInfo/listing2.html
Am I just overlooking something there?
>From all the way back in 1997, I found some code that was written by Apple Tech Support specifically about determining if a drive was a CD-ROM or not, but that was all the way back in OS 8ish days. It looked like the determining factor it used for this task was based upon the specific device driver being used: http://developer.apple.com/qa/dv/dv18.html
This code references DriverGestalt.h. I'm not familiar with all that, but it appears that it's not a part of OS X. The contents of the file contain this warning: #warning DriverGestalt.h is not available on Mac OS X
So is there a standard way for determining if a drive contains a CD? I'm not interested in the particular file system on the CD, just whether or not it's a CD vs a disk image or something else.
I know that there's a Cocoa method that returns you an icon for a drive, so there's something that's being used there internally. Is it exposed?
Matthew
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Carbon-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/carbon-dev/email@hidden
This email sent to email@hidden