9

I have a C++ application that gets detailed system information (processor type, available disk space, other hardware profile info) on Windows using WMI. I want to perform the same type of operations on OSX 10.5+. What is the equivalent API or interface for MacOS?

Links to API documentation or tutorials are very welcome.

Jason Champion
  • 2,670
  • 4
  • 35
  • 55
  • Are you looking for a way to get information about the Mac system, or are you looking for a WBEM implementation? – Billy ONeal Aug 31 '10 at 21:45

1 Answers1

7

You can query most of that information through the system_profiler executable. Apple's example for querying such informations involves a popen call to it, so I guess it's the way to go.

zneak
  • 134,922
  • 42
  • 253
  • 328