Retrieves information about the specified registry key.
LONG RegQueryInfoKey( HKEY hKey, LPTSTR lpClass, LPDWORD lpcClass, LPDWORD lpReserved, LPDWORD lpcSubKeys, LPDWORD lpcMaxSubKeyLen, LPDWORD lpcMaxClassLen, LPDWORD lpcValues, LPDWORD lpcMaxValueNameLen, LPDWORD lpcMaxValueLen, LPDWORD lpcSecurityDescriptor, PFILETIME lpftLastWriteTime );
hKey
HKEY_CLASSES_ROOT HKEY_CURRENT_CONFIG HKEY_CURRENT_USER HKEY_LOCAL_MACHINE HKEY_USERS HKEY_PERFORMANCE_DATA
lpClass
lpcClass
lpClass
parameter. This size should include the terminating null character. When the call returns, this variable contains the length of the class string stored in the buffer. The returned count does not include the terminating null character. If the buffer is not big enough, the call returns ERROR_MORE_DATA, and the variable contains the size of the string, in characters, without counting the null character.lpClass
is NULL, lpcClass can be NULL.lpClass
parameter is a valid address, but the lpcClass
parameter is not (for example, it is NULL), the call returns ERROR_INVALID_PARAMETER.
lpReserved
lpcSubKeys
lpcMaxSubKeyLen
lpcMaxClassLen
lpcValues
lpcMaxValueNameLen
lpcMaxValueLen
lpcSecurityDescriptor
lpftLastWriteTime
The call sets the FILETIME structure's members to indicate the last time that the key or any of its value entries was modified.
The key identified by the hKey parameter must be opened with KEY_QUERY_VALUE access (KEY_READ access includes KEY_QUERY_VALUE access).
ERROR_SUCCESS
Versions | Defined in | Include | Link to |
---|---|---|---|
INtime 3.0 | intime/rt/include/iwin32.h | iwin32.h iwin32rt.h |
rt.lib |
Note
This function operates in the real-time portion of your application.
RegDeleteKey, RegEnumKeyEx, RegEnumValue, RegQueryValueEx, iwin32 API, iwin32 Overview