SHQueryValueExSHQueryValueEx*
*Contents  *Index  *Topic Contents
*Previous Topic: SHQueryInfoKey
*Next Topic: SHRegCreateUSKey

SHQueryValueEx


DWORD SHQueryValueEx(
    HKEY     hkey,
    LPCTSTR  pszValue,
    LPDWORD  pdwReserved,
    LPDWORD  pdwType,
    LPVOID   pvData,
    LPDWORD  pcbData
    );

Opens a registry key and queries it for a specific 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
pszValue
Address of the null-terminated string that contains the name of the value to be queried.
pdwReserved
Reserved; must be null.
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.

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