Може ли софтуерът да се различава между настолен компютър и лаптоп?

Съдържание:

Може ли софтуерът да се различава между настолен компютър и лаптоп?
Може ли софтуерът да се различава между настолен компютър и лаптоп?

Видео: Може ли софтуерът да се различава между настолен компютър и лаптоп?

Видео: Може ли софтуерът да се различава между настолен компютър и лаптоп?
Видео: Учим Photoshop за 1 час! #От Профессионала - YouTube 2024, Април
Anonim
Много лицензи за софтуер са доста ограничителни, когато става въпрос за това как и къде можете да инсталирате програма, но колко добри са тези програми при определяне на какъв тип устройство те са инсталирани? Днешната публикация "SuperUser Q &A" е отговорът на въпроса на любознателен читател.
Много лицензи за софтуер са доста ограничителни, когато става въпрос за това как и къде можете да инсталирате програма, но колко добри са тези програми при определяне на какъв тип устройство те са инсталирани? Днешната публикация "SuperUser Q &A" е отговорът на въпроса на любознателен читател.

Днешната сесия за въпроси и отговори ни идва с любезното съдействие на SuperUser - подразделение на Stack Exchange - обединяване на уеб сайтове с въпроси и отговори.

Снимката е предоставена от Robert (Flickr).

Въпроса

Reader на SuperUser 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 specifications 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?

Може ли софтуерът всъщност да прави разлика между настолен компютър и лаптоп?

Отговорът

Компютърните сътрудници на SuperUser abnev и Technik Empire имат отговор за нас. Първо, abnev:

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 Empire:

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:

Possible values include:
Possible values include:
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.
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? Вижте цялата тема на дискусията тук.

Препоръчано: