Source code of Windows XP (NT5)
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
/*++
Copyright (c) 1989 Microsoft Corporation
Module Name:
process.c
Abstract:
This module implements debug support for ws2ifsl.sys driver.
Author:
Vadim Eydelman (VadimE) Dec-1996
Revision History:
--*/
#include "precomp.h"
#if DBG
ULONG DbgLevel=DBG_FAILURES;
VOID ReadDbgInfo ( IN PUNICODE_STRING RegistryPath ) { PWSTR RegistryPathBuffer; PWSTR Parameters = L"Parameters"; RTL_QUERY_REGISTRY_TABLE paramTable[3]; // table size = nr of params + 2
RegistryPathBuffer = (PWSTR)ExAllocatePool(NonPagedPool, RegistryPath->Length + sizeof(WCHAR));
if (RegistryPathBuffer == NULL) { return; }
RtlCopyMemory (RegistryPathBuffer, RegistryPath->Buffer, RegistryPath->Length); *(PWCHAR)(((PUCHAR)RegistryPathBuffer)+RegistryPath->Length) = (WCHAR)'\0';
RtlZeroMemory(¶mTable[0], sizeof(paramTable));
paramTable[0].QueryRoutine = NULL; paramTable[0].Flags = RTL_QUERY_REGISTRY_SUBKEY; paramTable[0].Name = Parameters;
paramTable[1].Flags = RTL_QUERY_REGISTRY_DIRECT; paramTable[1].Name = L"DbgLevel"; paramTable[1].EntryContext = &DbgLevel; paramTable[1].DefaultType = REG_DWORD; paramTable[1].DefaultData = &DbgLevel; paramTable[1].DefaultLength = sizeof(ULONG);
RtlQueryRegistryValues( RTL_REGISTRY_ABSOLUTE, RegistryPathBuffer, paramTable, NULL, NULL);
ExFreePool(RegistryPathBuffer);
} #endif
|