Contents Index Topic Contents | ||
Previous Topic: SHEnumKeyEx Next Topic: SHGetValue |
SHEnumValue
DWORD SHEnumValue( HKEY hkey, DWORD dwIndex, LPTSTR pszValueName, LPDWORD pcchValueName, LPDWORD pdwType, LPVOID pvData, LPDWORD pcbData );Enumerates the values of the specified open registry key.
- 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 textual description of the error.
- 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 - dwIndex
- Index of the value to retrieve. This parameter should be zero for the first call and incremented for subsequent calls.
- pszValueName
- Address of a character buffer that receives the enumerated value name. The size of this buffer is specified in pcchVlaueName.
- pcchValueName
- Address of a DWORD that, on entry, contains the size of the buffer at pszValueName. On exit, this contains the number of characters that were copied to pszValueName.
- pdwType
- Address of a DWORD that receives the data type of the value. These are the same values as those described under the lpType parameter of RegEnumValue.
- pvData
- Address of a buffer that receives the data for the value entry. The size of this buffer is specified in pcbData. This parameter can be NULL if the data is not required.
- pcbData
- Address of a DWORD that, on entry, contains the size of the buffer at pvData. On exit, this contains the number of bytes that were copied to pvData.
Top of Page
© 1997 Microsoft Corporation. All rights reserved. Terms of Use.