search

Home  >  Q&A  >  body text

c++ - Win10开发中,如何知道本机是台式机还是平板?

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

阿神阿神2803 days ago669

reply all(3)I'll reply

  • 阿神

    阿神2017-04-17 13:07:07

    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.

    reply
    0
  • 迷茫

    迷茫2017-04-17 13:07:07

    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...

    reply
    0
  • 迷茫

    迷茫2017-04-17 13:07:07

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

    reply
    0
  • Cancelreply