VolumeName of USB device

Discussion in 'Mac Programming' started by VijayKumar, Oct 3, 2005.

  1. VijayKumar macrumors newbie

    Joined:
    Sep 30, 2005
    #1
    Hi,

    Programmatically, I would like to get the volume name of a USB device. Using the sample code, I am able to get the IOUSBDeviceInterface for the device with matching product ID and Vendor ID. For this device, I need to get the volume name. Any help in this regard is highly appreciated.

    Thanks in advance,
    Vijay
     
  2. cazlar macrumors 6502

    Joined:
    Oct 2, 2003
    Location:
    Sydney, Australia
    #2
  3. logicat2001 macrumors regular

    Joined:
    Apr 16, 2003
    Location:
    Minneapolis, MN
    #3
    If you're accessing a volume, why go so low level and deal with USB driver code? Try reading "Low-Level File Management Programming Topics" in the docs and consider how you can identify what's available at /Volumes, perhaps using NSFileManager.

    Best,
    Anton

    <edit>cazlar's link is really useful if it's important to grab the USB id's; not sure what you need</edit>
     

Share This Page