KEY_NAME_INFORMATION structure (ntddk.h)

The KEY_NAME_INFORMATION structure holds the name and name length of the key.

Syntax

typedef struct _KEY_NAME_INFORMATION {
  ULONG NameLength;
  WCHAR Name[1];
} KEY_NAME_INFORMATION, *PKEY_NAME_INFORMATION;

Members

NameLength

The size, in bytes, of the key name string in the Name array.

Name[1]

An array of wide characters that contains the name of the key. This character string is not null-terminated. Only the first element in this array is included in the KEY_NAME_INFORMATION structure definition. The storage for the remaining elements in the array immediately follows this element.

Remarks

The ZwQueryKey routine uses the KEY_NAME_INFORMATION structure to contain the registry key name. When the KeyInformationClass parameter of this routine is KeyNameInformation, the KeyInformation buffer is treated as a KEY_NAME_INFORMATION structure. For more information about the KeyNameInformation enumeration value, see KEY_INFORMATION_CLASS.

Requirements

Requirement Value
Header ntddk.h (include Ntddk.h)

See also

KEY_BASIC_INFORMATION

KEY_CACHED_INFORMATION

KEY_INFORMATION_CLASS

KEY_NODE_INFORMATION

KEY_VIRTUALIZATION_INFORMATION

ZwQueryKey