Contents Index Topic Contents | ||
Previous Topic: SHRegDeleteUSValue Next Topic: SHRegEnumUSValue |
SHRegEnumUSKey
DWORD SHRegEnumUSKey( HUSKEY hUSKey, DWORD dwIndex, LPSTR pszName, LPDWORD pcchName, SHREGENUM_FLAGS enumRegFlags );Enumerates the subkeys of a user-specific 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.
- hUSKey
- Handle to the currently open user-specific key.
- dwIndex
- Index of the subkey to retrieve. This parameter should be zero for the first call and incremented for subsequent calls.
- pszName
- Address of a character buffer that receives the enumerated key name.
- pcchName
- Address of a DWORD that, on entry, contains the size of the buffer at pszName. On exit, this contains the number of characters that were copied to pszName.
- enumRegFlags
- One of the SHREGENUM_FLAGS that specifies the base key in which the enumeration should take place.
Top of Page
© 1997 Microsoft Corporation. All rights reserved. Terms of Use.