Contents Index Topic Contents | ||
Previous Topic: SHRegOpenUSKey Next Topic: SHRegQueryUSValue |
SHRegQueryInfoUSKey
DWORD SHRegQueryInfoUSKey( HUSKEY hUSKey, LPDWORD pcSubKeys, LPDWORD pcchMaxSubKeyLen, LPDWORD pcValues, LPDWORD pcchMaxValueNameLen );Retrieves information about a specified user-specific 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.
- hUSKey
- Handle to the user-specific key that is currently open.
- pcSubKeys
- Address of a DWORD that receives the number of subkeys under the specified key.
- pcchMaxSubKeyLen
- Address of a DWORD that receives the number of characters in the largest subkey name.
- pcValues
- Address of a DWORD that receives the number of values under the specified key.
- pcchMaxValueNameLen
- Address of a DWORD that receives the number of characters in the largest value name.
Top of Page
© 1997 Microsoft Corporation. All rights reserved. Terms of Use.