How can identify Mac Volume type

Discussion in 'Mac Programming' started by vivekfeel03, Mar 20, 2009.

  1. macrumors newbie

    Jan 21, 2009

    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.

  2. macrumors 6502a

    Oct 13, 2007
    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.

Share This Page