top button
Flag Notify
    Connect to us
      Facebook Login
      Site Registration Why to Join

Facebook Login
Site Registration
Print Preview

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

+2 votes

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 Google+ Share Button LinkedIn Share Button Multiple Social 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:
 /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.

+2 votes

For many years, I used nothing but various flavours of linux (most recently, Linux Mint). I was so used to installing stuff using package managers (apt-get and yum). It was so easy, for example, to get the LAMP stack up and running.

I recently switched to a Mac, and I suddenly miss the familiar apt-get. Some packages come as .pkg, others as .dmg and lots without any package (for example, apache or php). For these, I have to use pseudo package managers such as Macports or Homebrew.

My question is: which is the best way to install various open-source packages on a Mac?

Useful Links with Similar Problem
Contact Us
+91 9880187415
#280, 3rd floor, 5th Main
6th Sector, HSR Layout
Karnataka INDIA.