c++ - Win10开发中,如何知道本机是台式机还是平板?
阿神
阿神 2017-04-17 13:05:07
0
3
664

现在平板也支持win10系统了,如何在编程中能知道本机是台式机还是平板?有无相关API?

阿神
阿神

闭关修行中......

reply all(3)
阿神

No. I am in the Microsoft Office group, and some people actually have related needs. Later, we exchanged opinions with Windows, and they said that they do not want a program to know what type of device it is running on (referring to UWP programs). But generally speaking, there is a very simple, basically accurate but incorrect method:

Just ask if there is a GPS device. Check the API yourself.

迷茫

You can use WMI to find the chassis type, although it may not be quite right... And in my impression, this type is enum. The number that comes out has to be checked to see what kind of table it is, what is 1 and what is 6?
WMI also You can find out the manufacturer and model from BIOS, computer system, etc., and then you can check the database...

迷茫

It seems not, the desktop and tablet are both Windows.Desktop, and some weird Win10m tablets are Windows.Mobile

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template