获取计算机类型C ++ [英] Get Computer Type C++
本文介绍了获取计算机类型C ++的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
大家好,
如何根据API获取计算机类型?
(例如台式机,笔记本电脑和笔记本电脑等?)
:-D
Hi guys,
How can I get the Computer Type according to the API?
(Such as Desktop, Notebook and Laptop and so on?)
:-D
推荐答案
可以很好地指示特定计算机是台式机还是笔记本电脑,或者是否装有电池.
您可以使用 GetSystemPowerStatus [ ^ ]函数进行检查.
A good indication if a particular computer is a desktop or notebook is if it has a battery or not.
You can use the GetSystemPowerStatus[^] function to check.
这篇关于获取计算机类型C ++的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文