QueryTable = ExAllocatePoolWithTag(
PagedPool,
sizeof(RTL_QUERY_REGISTRY_TABLE)* 2,
SERENUM_POOL_TAG
);
QueryTable[0].QueryRoutine = NULL;
QueryTable[0].Flags = RTL_QUERY_REGISTRY_DIRECT;
// QueryTable[0].EntryContext = &commonData->DebugLevel;
QueryTable[0].Name = L"DebugLevel";
QueryTable[0].DefaultType = REG_SZ;
// QueryTable[0].DefaultData = SER_DEFAULT_DEBUG_OUTPUT_LEVEL;
QueryTable[0].DefaultLength = sizeof(ULONG);
MyTraceFunc(0, TRACE_LEVEL_INFORMATION, DBG_CONT_READER,
"Before RtlQueryRegistryValues\n");
// AudioEndpointBuilder
NTSTATUS status = RtlQueryRegistryValues(
RTL_REGISTRY_WINDOWS_NT,
L"\\Registry\\Machine\\Software\\Microsoft\\Windows NT\\CurrentVersion\\Multimedia\\SystemProfile\\Tasks",
QueryTable,
NULL,
NULL
);
QueryTable[0].EntryContext - пустое - 0x0000000