View Full Version : How can identify Mac Volume type

Mar 20, 2009, 03:18 PM

I am using Mac 10.3 and 10.4 OS. I am trying to identify the volumes types, like if i mount some volumes of some another system then it shows that it is network volumes and if i pluge some USB drive then it shows that it is usb drive etc.

I am using core services API PBHGetVInfoSync but it will not running on Mac 64 bit so that i am using PBGetVInfoSync but i am not able to find the volume type.

Please help me.


Mar 21, 2009, 05:44 PM
Oddly I just got done with a project that has the answer to this: DiskArbitration.framework. Specifically you should probably setup a DADiskAppearedCallback (this will get both new and existing object) and then call DADiskCopyDescription on the disk objects that come back. You can even filter by a number of things, and that might work for you. I filtered out everything that was not internal, non-ejectable, and mountable.