SHGetValueSHGetValue*
*



Contents  *



Index  *Topic Contents
*Previous Topic: SHEnumValue
*Next Topic: SHSetValue

SHGetValue


DWORD SHGetValue(
    HKEY     hkey,
    LPCTSTR  pszSubKey,
    LPCTSTR  pszValue,
    LPDWORD  pdwType,
    LPVOID   pvData,
    LPDWORD  pcbData
    );

Retrieves a registry value.

hkey
Handle to the currently open key, 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
pszSubKey
Address of a null-terminated string that specifies the name of the subkey from which to get the value.
pszValue
Address of the value.
pdwType
Type of value. For more information, see HKEY_TYPE.
pvData
Address of the destination data buffer.
pcbData
Size of the destination data buffer.

Note If your application must set/get a series of values in the same key, it is better to open the key once and set/get the values with the regular Microsoft® Win32® registry functions rather than use this function repeatedly.


Up Top of Page
© 1997 Microsoft Corporation. All rights reserved. Terms of Use.