开发者

How to to print motherboard and display card info on Mac

开发者 https://www.devze.com 2023-03-18 02:30 出处:网络
Is there any API on Mac OS X to get the name, ch开发者_运维问答ipset, manufacturer info for motherboard, display card and sound card devices ?You can use the system_profiler command line tool with the

Is there any API on Mac OS X to get the name, ch开发者_运维问答ipset, manufacturer info for motherboard, display card and sound card devices ?


You can use the system_profiler command line tool with the -xml option to generate XML data for your system configuration and then parse the output of that.

$ system_profiler -xml

Use popen to run this from within your code and capture the XML output. Then use an appropriate XML library, e.g. TinyXML, to parse the output.

0

精彩评论

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