in Dmf/Modules.Library/Dmf_Registry.c [714:731]
typedef DWORD(__stdcall* NtQueryKeyType)(HANDLE KeyHandle,
int KeyInformationClass,
VOID* KeyInformation,
ULONG Length,
ULONG* ResultLength);
typedef DWORD(__stdcall* NtCloseType)(HANDLE KeyHandle);
#define KEY_INFORMATION_CLASS_KeyNameInformation 3
#define REGISTRY_MACHINE_TEXT L"\\Registry\\Machine\\"
// KEY_NAME_INFORMATION declaration copied from ntddk.h.
//
typedef struct _KEY_NAME_INFORMATION
{
ULONG NameLength;
WCHAR Name[1]; // Variable length string
} KEY_NAME_INFORMATION, * PKEY_NAME_INFORMATION;