Linux系统下获取机器数据
我如何使用 gtk+、glib.c/c++ 获取以下数据?
机器序列号、CPU序列号、机器MAC地址等机器信息。
问候, 列宁
How can i get the following data using c/c++ using gtk+, glib.
machine serial, CPU serial, machine MAC address and other machine information.
Regards,
Lenin
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
你可以使用SIOCGIFADDR
查看此链接中给出的代码。
http://www.linuxquestions。 org/questions/programming-9/linux-确定-mac-address-from-c-38217/
you can use SIOCGIFADDR
check out the code given in this link.
http://www.linuxquestions.org/questions/programming-9/linux-determining-mac-address-from-c-38217/
为什么不从 C 代码中调用 lshw 并解析结果?
Why don't you call lshw from your c-code and parse the result?