please dont rip this site Prev Next

HW_PROFILE_INFO info  Overview  Group

The HW_PROFILE_INFO structure contains information about a hardware profile. The GetCurrentHwProfile function uses this structure to retrieve the current hardware profile for the local computer.

typedef struct tagHW_PROFILE_INFO {

    DWORD           dwDockInfo;

    TCHAR           szHwProfileGuid[HW_PROFILE_GUIDLEN];

    TCHAR           szHwProfileName[MAX_PROFILE_LEN];




A set of bit flags that indicate the docking state of the computer. This member can be a combination of the following values.




The computer is docked. This flag is always set for desktop systems that cannot be undocked.


The computer is undocked. This flag is always set for desktop systems that cannot be undocked.


If this flag is set, GetCurrentHwProfile retrieved the current docking state from information provided by the user in the Hardware Profiles page of the System control panel application.

Currently, Windows NT and Windows 95 are not able to detect the docking state. Consequently, this flag is always set.


The computer is docked, according to information provided by the user. This value is a combination of the DOCKINFO_USER_SUPPLIED and DOCKINFO_DOCKED flags.


The computer is undocked, according to information provided by the user. This value is a combination of the DOCKINFO_USER_SUPPLIED and DOCKINFO_UNDOCKED flags.

A null-terminated string that contains the globally unique identifier (GUID) string for the current hardware profile. The string returned by GetCurrentHwProfile encloses the GUID in curly braces “{}” and includes a null-terminator; for example:


You can use this string as a registry subkey under your application’s configuration settings key in HKEY_CURRENT_USER. This enables you to store settings for each hardware profile.

A null-terminated string that contains the display name for the current hardware profile.

See Also


file: /Techref/os/win/api/win32/struc/src/str09_7.htm, 4KB, , updated: 2001/10/8 23:22, local time: 2022/5/27 06:25,

 ©2022 These pages are served without commercial sponsorship. (No popup ads, etc...).Bandwidth abuse increases hosting cost forcing sponsorship or shutdown. This server aggressively defends against automated copying for any reason including offline viewing, duplication, etc... Please respect this requirement and DO NOT RIP THIS SITE. Questions?
Please DO link to this page! Digg it! / MAKE!


After you find an appropriate page, you are invited to your to this massmind site! (posts will be visible only to you before review) Just type a nice message (short messages are blocked as spam) in the box and press the Post button. (HTML welcomed, but not the <A tag: Instead, use the link box to link to another page. A tutorial is available Members can login to post directly, become page editors, and be credited for their posts.

Link? Put it here: 
if you want a response, please enter your email address: 
Attn spammers: All posts are reviewed before being made visible to anyone other than the poster.
Did you find what you needed?

  PICList 2022 contributors:
o List host: MIT, Site host, Top posters @20220527
* Page Editors: James Newton, David Cary, and YOU!
* Roman Black of Black Robotics donates from sales of Linistep stepper controller kits.
* Ashley Roll of Digital Nemesis donates from sales of RCL-1 RS232 to TTL converters.
* Monthly Subscribers: Gregg Rew. on-going support is MOST appreciated!
* Contributors: Richard Seriani, Sr.

Welcome to!