The KEY_FULL_INFORMATION structure defines the information available for a registry key, including information about its subkeys and the maximum length for their names and value entries. This information can be used to size buffers to get the names of subkeys and their value entries.
typedef _KEY_FULL_INFORMATION {
LARGE_INTEGER LastWriteTime;
ULONG TitleIndex;
ULONG ClassOffset;
ULONG ClassLength;
ULONG SubKeys;
ULONG MaxNameLen;
ULONG MaxClassLen;
ULONG Values;
ULONG MaxValueNameLen;
ULONG MaxValueDataLen;
WCHAR Class[1];
} KEY_FULL_INFORMATION; PKEY_FULL_INFORMATION
Defined in wdm.h and ntddk.h. Include wdm.h or ntddk.h.
KEY_BASIC_INFORMATION, KEY_INFORMATION_CLASS, KEY_NODE_INFORMATION, ZwEnumerateKey, ZwQueryKey