开发者

Uniquely identify a Computer by it's hardware profile (GetCurrentHwProfile)

开发者 https://www.devze.com 2023-01-07 19:37 出处:网络
Using the GetCurrentHwProfile , we can retrieve the szHwProfileGuid, which is the hardware profile GUID of the machine, i suppose.

Using the GetCurrentHwProfile , we can retrieve the szHwProfileGuid, which is the hardware profile GUID of the machine, i suppose.

what is exactly a hardware profile and how is it editable? is the Hardware profile GUID unique by machine? Is the value stored somewhere in the registry and is it updatabl开发者_如何学Ce? If it is not unique, when exactly does this value change?


Yes, it is just an accessor to the registry key

HKLM\System\CurrentControlSet\Control\IDConfigDB\Hardware Profiles

And as someone discovered none of the following affects it: changing Primary HD, adding a second HD, re-Installing or upgrading the OS, replacing video cards, or changing user. Changing network card would surely affect it, as it is involved in the creation of any GUID.

My guess is it was just a way to tell whether a laptop is docked, that was designed as a base for accessing a broader range hardware changes - but that never really took place. 'Hardware profile' would probably stay a vague term forever, in this API context.

0

精彩评论

暂无评论...
验证码 换一张
取 消