* UPDATE HISTORY:
*/
+#ifdef WIN32_REGDBG
+#include "cm_win32.h"
+#else
#include <ddk/ntddk.h>
#include <roscfg.h>
#include <internal/ob.h>
#include <internal/debug.h>
#include "cm.h"
+#endif
NTSTATUS STDCALL
RtlCheckRegistryKey(IN ULONG RelativeTo,
PWSTR StringPtr;
DPRINT("RtlQueryRegistryValues() called\n");
+#ifdef WIN32_REGDBG
+ BaseKeyHandle = NULL;
+ CurrentKeyHandle = NULL;
+#endif
Status = RtlpGetRegistryHandle(RelativeTo,
Path,
Status = STATUS_NO_MEMORY;
break;
}
-
+#ifdef WIN32_REGDBG
+ memset(ValueInfo, 0, BufferSize);
+#endif
Status = ZwQueryValueKey(CurrentKeyHandle,
&KeyName,
KeyValuePartialInformation,
!(QueryEntry->Flags & RTL_QUERY_REGISTRY_NOEXPAND))
{
DPRINT("Expand REG_MULTI_SZ type\n");
+#ifdef WIN32_REGDBG
+ StringPtr = (PWSTR)(FullValueInfo + FullValueInfo->DataOffset);
+#else
StringPtr = (PWSTR)((PVOID)FullValueInfo + FullValueInfo->DataOffset);
+#endif
while (*StringPtr != 0)
{
StringLen = (wcslen(StringPtr) + 1) * sizeof(WCHAR);
{
Status = QueryEntry->QueryRoutine(FullValueInfo->Name,
FullValueInfo->Type,
+#ifdef WIN32_REGDBG
+ FullValueInfo + FullValueInfo->DataOffset,
+#else
(PVOID)FullValueInfo + FullValueInfo->DataOffset,
+#endif
FullValueInfo->DataLength,
Context,
QueryEntry->EntryContext);