台式机或笔记本电脑? [英] Desktop or laptop machine ?

查看:127
本文介绍了台式机或笔记本电脑?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在寻找一种通过程序从笔记本PC识别台式机的方法.我知道如何使用WMI API向机器查询其硬件资源.

问题是,我可以检测到哪些特征以简单且足够可靠的方式进行区分?我现在有两个线索:1)检查处理器是否为移动类型,2)检测PCI插槽.

欢迎提出任何建议,谢谢.

I am looking for a way to tell a desktop from a laptop PC, by program. I know how to use the WMI API to query the machine about its hardware resources.

The question is what feature(s) can I detect to make this distinction in a simple and sufficiently reliable way ? I have two leads right now: 1) checking if the processor is of a mobile type, 2) detecting PCI slots.

Any suggestion welcome, thanks.

推荐答案

您可以使用以下任何一种方法:
- Win32_Battery类 [ Win32_SystemEnclosure类 [
Could you use either:
- Win32_Battery class[^]
- Win32_SystemEnclosure class[^] (ChassisTypes)


请检查此链接,其中有很多建议

http://stackoverflow.com/questions/1013354/how- to-check-the-machine-type-laptop-or-desktop [
Please check this link lot of suggestions are there

http://stackoverflow.com/questions/1013354/how-to-check-the-machine-type-laptop-or-desktop[^]


这篇关于台式机或笔记本电脑?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆