top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

I want to get the list of mounted volumes on mac using c++

+2 votes
841 views

I have info on how to gather it via cocoa code but need c++ api's to collect the info.

posted Sep 3, 2013 by Ovinod Nair

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

+1 vote
answer Sep 3, 2013 by Salil Agrawal
Thanks Salil, By this I was able to get all the mounted volumes but I want to know just the network mounted volumes. I think i missed to mention this in my query. When I executed this command on my machine i got:
 /
 /dev
 /Volumes/DATA
 /net
 /home
 /Volumes/OS X

where only /Volumes/OS X is the network mounted which I need.
Though I have never used getmntinfo by myself, but it should be something with the second parameter i.e. flags in the getmntinfo() if network mounted volumes are not appearing (assuming these are accessible). Try to experiment with flags.
Similar Questions
+2 votes

I know it is possible via IE (ActiveX objects).
Can we do this with all browsers ? (Specially in FireFox)

0 votes

I'm studying about C compiler for increasing software quality. So I want to get all of compile error message list of gcc about C language. I was trying to find it. But I can't find it anywhere. How can I find it?

Please help?

+3 votes

Mac mail uses the contact pictures to display senders image. I would like to write a plugin to fetch a picture based on senders email.

There is plugin called Face2Face that does pretty much this using Facebook, gravatar... but it doesn't let you specify a custom URL or image source.

...