开发者

What is the Equivalent of Windows WMI for MacOS C++ Development?

开发者 https://www.devze.com 2023-01-14 02:53 出处:网络
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

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.


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消