What hardware affects GetCurrentHwProfile

E

edu1982edu

MSDN on GetCurrentHwProfile:
Remarks
The GetCurrentHwProfile function retrieves the display name and
globally unique identifier (GUID) string for the hardware profile.
The function also retrieves the reported docking state for
portable computers with docking stations.

The system generates a GUID for each hardware profile and stores
it as a string in the registry. You can use GetCurrentHwProfile
to retrieve the GUID string to use as a registry subkey under
your application's configuration settings key in
HKEY_CURRENT_USER. This enables you to store each user's
settings for each hardware profile. For example, the Colors
control panel application could use the subkey to store each
user's color preferences for different hardware profiles,
such as profiles for the docked and undocked states.
Applications that use this functionality can check the
current hardware profile when they start up, and update
their settings accordingly.


All this tells me nothing about what hardware changes affect the GUID.
From experimentation:
Adding a second HD does NOT change it.
Re-Installing OS does NOT change it
Change VideoCards does NOT change it
Change User does NOT change it
Upgrading OS DOES change it
Changing Primary HD DOES change it.

I would like to enumerate all the hardware or things that affects this
GUID.
How would I do that?

Does a change in memory size affect it?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top