Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

vivekfeel03

macrumors newbie
Original poster
Jan 21, 2009
2
0
Hi,

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.

Thanks.
 
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.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.