#ifndef _NTREGAPI_H
/**
* The KEY_CACHED_INFORMATION structure holds the cached information available for a registry key or subkey.
* \sa https://learn.microsoft.com/en-us/windows-hardware/drivers/ddi/ntddk/ns-ntddk-_key_cached_information
*/
typedef struct _KEY_CACHED_INFORMATION
{
LARGE_INTEGER LastWriteTime;
ULONG TitleIndex;
ULONG SubKeys;
ULONG MaxNameLength;
ULONG Values;
ULONG MaxValueNameLength;
ULONG MaxValueDataLength;
ULONG NameLength;
_Field_size_bytes_(NameLength) WCHAR Name[1];
} KEY_CACHED_INFORMATION, *PKEY_CACHED_INFORMATION;
View code on GitHub// ntddk.h
typedef struct _KEY_CACHED_INFORMATION {
LARGE_INTEGER LastWriteTime;
ULONG TitleIndex;
ULONG SubKeys;
ULONG MaxNameLen;
ULONG Values;
ULONG MaxValueNameLen;
ULONG MaxValueDataLen;
ULONG NameLength;
} KEY_CACHED_INFORMATION, *PKEY_CACHED_INFORMATION;
View the official Windows Driver Kit DDI referenceThis structure is documented in Windows Driver Kit.
The KEY_CACHED_INFORMATION structure holds the cached information available for a registry key or subkey.
LastWriteTimeThe last time the key or any of its values changed. This time value is expressed in absolute system time format. Absolute system time is the number of 100-nanosecond intervals since the start of the year 1601 in the Gregorian calendar.
TitleIndexDevice and intermediate drivers should ignore this member.
SubKeysThe number of subkeys for a key.
MaxNameLenThe maximum number of bytes for a subkey name.
ValuesThe number of value entries.
MaxValueNameLenThe maximum length, in bytes, of any value entry name.
MaxValueDataLenThe maximum length, in bytes, of a value entry data field.
NameLengthThe size, in bytes, of the key name.
KEY_VIRTUALIZATION_INFORMATION