Leaked source code of windows server 2003
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.

64 lines
1.9 KiB

  1. /*******************************************************************/
  2. /* Copyright(c) 1993 Microsoft Corporation */
  3. /*******************************************************************/
  4. //***
  5. //
  6. // Filename: registry.c
  7. //
  8. // Description: routines for reading the registry configuration
  9. //
  10. // Author: Stefan Solomon (stefans) October 30, 1995.
  11. //
  12. // Revision History:
  13. //
  14. //***
  15. #include "precomp.h"
  16. #pragma hdrstop
  17. //***
  18. //
  19. // Function: GetIpxRipRegistryParameters
  20. //
  21. // Descr: Reads the parameters from the registry and sets them
  22. //
  23. //***
  24. VOID
  25. GetIpxRipRegistryParameters(VOID)
  26. {
  27. NTSTATUS Status;
  28. PWSTR IpxRouterParametersPath = L"RemoteAccess\\RouterManagers\\IPX\\RoutingProtocols\\IPXRIP\\Parameters";
  29. RTL_QUERY_REGISTRY_TABLE paramTable[3]; // table size = nr of params + 1
  30. RtlZeroMemory(&paramTable[0], sizeof(paramTable));
  31. paramTable[0].Flags = RTL_QUERY_REGISTRY_DIRECT;
  32. paramTable[0].Name = L"SendGenReqOnWkstaDialLinks";
  33. paramTable[0].EntryContext = &SendGenReqOnWkstaDialLinks;
  34. paramTable[0].DefaultType = REG_DWORD;
  35. paramTable[0].DefaultData = &SendGenReqOnWkstaDialLinks;
  36. paramTable[0].DefaultLength = sizeof(ULONG);
  37. paramTable[1].Flags = RTL_QUERY_REGISTRY_DIRECT;
  38. paramTable[1].Name = L"TriggeredUpdateCheckInterval";
  39. paramTable[1].EntryContext = &CheckUpdateTime;
  40. paramTable[1].DefaultType = REG_DWORD;
  41. paramTable[1].DefaultData = &CheckUpdateTime;
  42. paramTable[1].DefaultLength = sizeof(ULONG);
  43. Status = RtlQueryRegistryValues(
  44. RTL_REGISTRY_SERVICES,
  45. IpxRouterParametersPath,
  46. paramTable,
  47. NULL,
  48. NULL);
  49. Trace(INIT_TRACE, "GetIpxCpRegistryParameters:\n"
  50. " SendGenReqOnWkstaDialLinks = %d\n"
  51. " TriggeredUpdateCheckInterval = %d\n",
  52. SendGenReqOnWkstaDialLinks,
  53. CheckUpdateTime);
  54. }