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
147 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 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:
 /
 /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.

+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?

+1 vote

I am trying to see the entries in my DNS resolver cache in my Macbook. But I am not aware what is the command to do the same.


Useful Links with Similar Problem
Contact Us
+91 9880187415
sales@queryhome.net
support@queryhome.net
#470/147, 3rd Floor, 5th Main,
HSR Layout Sector 7,
Bangalore - 560102,
Karnataka INDIA.
QUERY HOME
...