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) 1993 Microsoft Corporation */ /*******************************************************************/
//***
//
// Filename: registry.c
//
// Description: routines for reading the registry configuration
//
// Author: Stefan Solomon (stefans) October 30, 1995.
//
// Revision History:
//
//***
#include "precomp.h"
#pragma hdrstop
//***
//
// Function: GetIpxRipRegistryParameters
//
// Descr: Reads the parameters from the registry and sets them
//
//***
VOID GetIpxRipRegistryParameters(VOID) {
NTSTATUS Status; PWSTR IpxRouterParametersPath = L"RemoteAccess\\RouterManagers\\IPX\\RoutingProtocols\\IPXRIP\\Parameters"; RTL_QUERY_REGISTRY_TABLE paramTable[3]; // table size = nr of params + 1
RtlZeroMemory(¶mTable[0], sizeof(paramTable)); paramTable[0].Flags = RTL_QUERY_REGISTRY_DIRECT; paramTable[0].Name = L"SendGenReqOnWkstaDialLinks"; paramTable[0].EntryContext = &SendGenReqOnWkstaDialLinks; paramTable[0].DefaultType = REG_DWORD; paramTable[0].DefaultData = &SendGenReqOnWkstaDialLinks; paramTable[0].DefaultLength = sizeof(ULONG); paramTable[1].Flags = RTL_QUERY_REGISTRY_DIRECT; paramTable[1].Name = L"TriggeredUpdateCheckInterval"; paramTable[1].EntryContext = &CheckUpdateTime; paramTable[1].DefaultType = REG_DWORD; paramTable[1].DefaultData = &CheckUpdateTime; paramTable[1].DefaultLength = sizeof(ULONG); Status = RtlQueryRegistryValues( RTL_REGISTRY_SERVICES, IpxRouterParametersPath, paramTable, NULL, NULL);
Trace(INIT_TRACE, "GetIpxCpRegistryParameters:\n" " SendGenReqOnWkstaDialLinks = %d\n" " TriggeredUpdateCheckInterval = %d\n", SendGenReqOnWkstaDialLinks, CheckUpdateTime); }
|