Retrieves information about a specified registry key.
LONG RtRegQueryInfoKey(
HKEY hKey, // handle to key to query
LPTSTR lpClass, // address of buffer for class string
LPDWORD lpcbClass, // address of size of class string buffer
LPDWORD lpReserved, // reserved
LPDWORD lpcSubKeys, // address of buffer for number of subkeys
LPDWORD lpcbMaxSubKeyLen, // address of buffer for longest subkey name length
LPDWORD lpcbMaxClassLen, // address of buffer for longest class string length
LPDWORD lpcValues, // address of buffer for number of value entries
LPDWORD lpcbMaxValueNameLen, // address of buffer for longest value name length
LPDWORD lpcbMaxValueLen, // address of buffer for longest value data length
LPDWORD lpcbSecurityDescriptor, // address of buffer for security descriptor length
PFILETIME lpftLastWriteTime // address of buffer for last write time
);
hKey
lpClass
lpcbClass
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 count returned 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, lpcbClass can be NULL.lpClass
parameter is a valid address, but the lpcbClass
parameter is not (for example, it is NULL), the call returns ERROR_INVALID_PARAMETER.
lpReserved
lpcSubKeys
lpcbMaxSubKeyLen
lpcbMaxClassLen
lpcValues
lpcbMaxValueNameLen
lpcbMaxValueLen
lpcbSecurityDescriptor
lpftLastWriteTime
The key identified by the hKey parameter must have been 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/rtbase.h | rt.h | rt.lib |
Registry system calls, RtRegDeleteKey, RtRegEnumKeyEx, RtRegEnumValue, RtRegQueryValueEx