软件能区分台式电脑和笔记本电脑吗?

在安装程序的方式和位置上,许多软件许可证都有相当严格的限制,但是这些程序在确定安装在哪种类型的设备上有多好呢?今天的超级用户问答帖子回答了一位好奇的读者的问题。...

软件能区分台式电脑和笔记本电脑吗?

在安装程序的方式和位置上,许多软件许可证都有相当严格的限制,但是这些程序在确定安装在哪种类型的设备上有多好呢?今天的超级用户问答帖子回答了一位好奇的读者的问题。

今天的问答环节是由SuperUser提供的,SuperUser是Stack Exchange的一个分支,是一个由社区驱动的问答网站分组。

照片由罗伯特(Flickr)提供。

问题

超级用户读者Abhi想知道软件是否真的能区分台式电脑和笔记本电脑:

A license for CPU-intensive software like Pix4D says that it can be installed on two devices, but with one condition. Reading the fine print, it seems that one device can be a full-processing desktop/workstation whereas the second one must be a laptop or mobile device.

How would the software know what type of device it is installed on? Are there giveaways in the hardware specificati*** for determining something like this (i.e. the presence of a battery)?

Given that the software is fully functional on both devices, would this condition become irrelevant if I just buy a high-end laptop which is just as fast as the desktop?

软件真的能区分台式电脑和笔记本电脑吗?

答案

超级用户贡献者abnev和Technik Empire为我们提供了答案。首先,阿布涅夫:

On Linux, you can run the following command:

  • sudo dmidecode –string chassis-type

On a laptop, this will return laptop, notebook, portable, or sub-notebook (depending on the manufacturer).

For Windows, refer to the following TechNet documentation to determine your computer chassis type: Identifying the Chassis Type of a Computer

然后是Technik帝国的答案:

To add to the other answer here regarding Linux, Windows software can also access this information through various provided WinAPI methods/objects. One such example is Win32_ComputerSystem, which among others, has members like:

007Ys3FFgy1gpdx0t0bcvj30hd04nt8q

Possible values include:

007Ys3FFgy1gpdx0twd1hj30hd06awek

As for how Windows knows this, while I cannot say with certainty because I presently lack both the Windows source code and any official documentation links, I would say it is a simple matter of the hardware ID’s within the computer giving this information away to the operating system.

Since Windows has a massive partner network that submits their drivers directly to Microsoft (for driver updates via Windows Update and “standard” drivers to include with installation media), it is pretty easy for Windows to figure out precisely what kind of computer you have it installed on. Just by the CPU ID alone, you could determine whether it is a desktop computer or a laptop.


有什么要补充的解释吗?在评论中发出声音。想从其他精通技术的Stack Exchange用户那里了解更多答案吗?在这里查看完整的讨论主题。

  • 发表于 2021-04-09 23:35
  • 阅读 ( 187 )
  • 分类:互联网

你可能感兴趣的文章

macbook pro上的触摸栏有多有用?

... 长期以来,微软和谷歌一直在推销在笔记本电脑上安装触摸屏的想法。微软自己的Surface笔记本电脑也有,谷歌的Chromebook Pixel也有。除此之外,一些运行windows10或Chrome操作系统的笔记本电脑的显示屏也可以接...

  • 发布于 2021-03-13 06:15
  • 阅读 ( 266 )

我的笔记本电脑、显示器或电视能做3d吗?

... 为什么你可能无法在显示器或笔记本电脑上查看3d ...

  • 发布于 2021-03-13 18:06
  • 阅读 ( 323 )

如何找到正在使用网络摄像头的程序

...体覆盖,可应用多达250000次。它几乎适用于任何表面,是笔记本电脑、智能**、平板电脑甚至游戏机的理想选择。 ...

  • 发布于 2021-03-14 07:23
  • 阅读 ( 307 )

普通ipad还是ipad pro?如何挑选合适的苹果平板电脑

...不会让人感到意外。该公司正在推动专业型号作为成熟的笔记本电脑的替代品,而普通的老式iPad的销量继续下降。 ...

  • 发布于 2021-03-15 00:23
  • 阅读 ( 249 )

为什么linux对自由职业者来说很好

...一个客户要求的需求。其他任何地方都允许我靠一台Linux笔记本电脑谋生。 ...

  • 发布于 2021-03-15 01:40
  • 阅读 ( 194 )

4家知名的linux硬件制造商,面向开源爱好者

...型号,规格已经达到一个点,你可以使用树莓皮作为你的台式电脑。文字处理和类似的办公室工作不是一个问题。您可以在打开多个选项卡的情况下浏览web。音乐和视频流刚刚好的树莓皮4,即使在高品质。 ...

  • 发布于 2021-03-19 10:33
  • 阅读 ( 275 )

我选择google pixelbook而不是macbook的10个原因

如果你想买一台小巧轻便的笔记本电脑,你可能会考虑买一台苹果MacBook。但你也应该考虑谷歌的像素书吗? ...

  • 发布于 2021-03-24 04:11
  • 阅读 ( 193 )

你能在2020年用ipad取代mac吗?

...明,最新的ipadpro及其神奇键盘是苹果有史以来最接近的笔记本电脑替代品。 那么,iPad终于为2020年的大日子做好了准备吗?那要看情况了。 ipad pro、ipad air还是ipad? 尽管有许多相似之处,ipadpro、ipadair和标准iPad是完全不同的...

  • 发布于 2021-04-02 04:13
  • 阅读 ( 180 )

你能在大学里用chromebook过日子吗?

当你要去上大学的时候,为你的钱找到一台合适的笔记本电脑是一个挑战,你不想花更多的钱,但是没有足够的笔记本电脑可以说是更糟的。这就是为什么chromebook如此吸引人。 Chromebook提供的所有东西的入门点都相对较低。由...

  • 发布于 2021-04-05 02:29
  • 阅读 ( 180 )

你应该买一本chromebook吗?

...到它们的流行程度。他们已经从超低成本、过于简单化的笔记本电脑转变为合法的日常使用机器,在2016年第一季度的销量甚至超过了macbook。然而,大多数人对chromebook真正的疑问是“我能住在Chrome里面吗?” 相关:2017年版,你...

  • 发布于 2021-04-08 09:04
  • 阅读 ( 183 )
zmrsp6548
zmrsp6548

0 篇文章

相关推荐