Contents Index Topic Contents | ||
Previous Topic: SHRegQueryInfoUSKey Next Topic: SHRegSetUSValue |
SHRegQueryUSValue
LONG SHRegQueryUSValue( HUSKEY hUSKey, LPCTSTR pszValue, LPDWORD pdwType, LPVOID pvData, LPDWORD pcbData, BOOL fIgnoreHKCU, LPVOID pvDefaultData, DWORD dwDefaultDataSize );Retrieves the type and data for a specified name associated with an open USKEY.
- Returns ERROR_SUCCESS if successful, or a nonzero error code defined in Winerror.h otherwise. You can use the FormatMessage function with the FORMAT_MESSAGE_FROM_SYSTEM flag to get a generic description of the error.
- hUSKey
- Handle to the currently open USKEY, or any of the following predefined values:
HKEY_CLASSES_ROOT HKEY_CURRENT_CONFIG HKEY_CURRENT_USER HKEY_DYN_DATA (Windows 95 only) HKEY_LOCAL_MACHINE HKEY_PERFORMANCE_DATA (Windows NT only) HKEY_USERS - pszValue
- Address of the null-terminated string that contains the name of the value to be queried.
- pdwType
- Address of the variable that receives the key's value type. For more information, see HKEY_TYPE.
- pvData
- Address of the buffer that receives the value's data. This parameter can be NULL if the data is not required.
- pcbData
- Address of the variable that specifies the size, in bytes, of the buffer pointed to by the pvData parameter. When the function returns, this variable contains the size of the data copied to pvData.
- fIgnoreHKCU
- Variable to indicate whether to ignore HKCU and bring HKLM up to date.
- pvDefaultData
- Address of the default data.
- dwDefaultDataSize
- Length, in bytes, of the default data.
Top of Page
© 1997 Microsoft Corporation. All rights reserved. Terms of Use.