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.

132 lines
4.4 KiB

  1. /*******************************************************************/
  2. /* Copyright(c) 1992 Microsoft Corporation */
  3. /*******************************************************************/
  4. //***
  5. //
  6. // Filename: ddmparms.h
  7. //
  8. // Description: This module contains the definitions for loading
  9. // DDM parameters from the registry. This lives in the inc dir.
  10. // because it is also used by RASNBFCP
  11. //
  12. // Author: Stefan Solomon (stefans) May 18, 1992.
  13. //
  14. // Revision History:
  15. //
  16. //***
  17. #ifndef _DDMPARMS_
  18. #define _DDMPARMS_
  19. //
  20. // Names of DDM registry keys
  21. //
  22. #define DDM_PARAMETERS_KEY_PATH TEXT("System\\CurrentControlSet\\Services\\RemoteAccess\\Parameters")
  23. #define DDM_ACCOUNTING_KEY_PATH TEXT("System\\CurrentControlSet\\Services\\RemoteAccess\\Accounting")
  24. #define DDM_AUTHENTICATION_KEY_PATH TEXT("System\\CurrentControlSet\\Services\\RemoteAccess\\Authentication")
  25. #define DDM_SEC_KEY_PATH TEXT("Software\\Microsoft\\RAS\\SecurityHost")
  26. #define DDM_PARAMETERS_NBF_KEY_PATH TEXT("System\\CurrentControlSet\\Services\\RemoteAccess\\Parameters\\Nbf")
  27. #define DDM_PROTOCOLS_KEY_PATH TEXT("Software\\Microsoft\\RAS\\Protocols")
  28. #define DDM_ADMIN_KEY_PATH TEXT("Software\\Microsoft\\RAS\\AdminDll")
  29. #define RAS_KEYPATH_ACCOUNTING \
  30. TEXT("SYSTEM\\CurrentControlSet\\Services\\RemoteAccess\\Accounting")
  31. //
  32. // Names of DDM registry parameters
  33. //
  34. #define DDM_VALNAME_AUTHENTICATERETRIES TEXT("AuthenticateRetries")
  35. #define DDM_VALNAME_AUTHENTICATETIME TEXT("AuthenticateTime")
  36. #define DDM_VALNAME_CALLBACKTIME TEXT("CallbackTime")
  37. #define DDM_VALNAME_ALLOWNETWORKACCESS TEXT("AllowNetworkAccess")
  38. #define DDM_VALNAME_AUTODISCONNECTTIME TEXT("Autodisconnect")
  39. #define DDM_VALNAME_CLIENTSPERPROC TEXT("ClientsPerProcess")
  40. #define DDM_VALNAME_SECURITYTIME TEXT("SecurityHostTime")
  41. #define DDM_VALNAME_NETBEUIALLOWED TEXT("fNetBeuiAllowed")
  42. #define DDM_VALNAME_IPALLOWED TEXT("fTcpIpAllowed")
  43. #define DDM_VALNAME_IPXALLOWED TEXT("fIpxAllowed")
  44. #define DDM_VALNAME_DLLPATH TEXT("DllPath")
  45. #define DDM_VALNAME_LOGGING_LEVEL TEXT("LoggingFlags")
  46. #define DDM_VALNAME_NUM_CALLBACK_RETRIES TEXT("CallbackRetries")
  47. #define DDM_VALNAME_SERVERFLAGS TEXT("ServerFlags")
  48. #define RAS_VALNAME_ACTIVEPROVIDER TEXT("ActiveProvider")
  49. #define RAS_VALNAME_ACCTSESSIONID TEXT("AccountSessionIdStart")
  50. #define DEF_SERVERFLAGS PPPCFG_UseSwCompression | \
  51. PPPCFG_NegotiateSPAP | \
  52. PPPCFG_NegotiateMSCHAP | \
  53. PPPCFG_UseLcpExtensions | \
  54. PPPCFG_NegotiateMultilink | \
  55. PPPCFG_NegotiateBacp | \
  56. PPPCFG_NegotiateEAP | \
  57. PPPCFG_NegotiatePAP | \
  58. PPPCFG_NegotiateMD5CHAP
  59. // Number of callback retries to be made
  60. #define DEF_NUMCALLBACKRETRIES 0
  61. #define MIN_NUMCALLBACKRETRIES 0
  62. #define MAX_NUMCALLBACKRETRIES 0xFFFFFFFF
  63. // Authentication retries
  64. #define DEF_AUTHENTICATERETRIES 2
  65. #define MIN_AUTHENTICATERETRIES 0
  66. #define MAX_AUTHENTICATERETRIES 10
  67. // Authentication time
  68. #define DEF_AUTHENTICATETIME 120
  69. #define MIN_AUTHENTICATETIME 20
  70. #define MAX_AUTHENTICATETIME 600
  71. // Audit
  72. #define DEF_ENABLEAUDIT 1
  73. #define MIN_ENABLEAUDIT 0
  74. #define MAX_ENABLEAUDIT 1
  75. // Callback time
  76. #define DEF_CALLBACKTIME 2
  77. #define MIN_CALLBACKTIME 2
  78. #define MAX_CALLBACKTIME 12
  79. // Autodisconnect time
  80. #define DEF_AUTODISCONNECTTIME 0
  81. #define MIN_AUTODISCONNECTTIME 0
  82. #define MAX_AUTODISCONNECTTIME 0xFFFFFFFF
  83. // Third party security time
  84. #define DEF_SECURITYTIME 120
  85. #define MIN_SECURITYTIME 20
  86. #define MAX_SECURITYTIME 600
  87. // Clients per process
  88. #define DEF_CLIENTSPERPROC 32
  89. #define MIN_CLIENTSPERPROC 1
  90. #define MAX_CLIENTSPERPROC 64
  91. // Logging level
  92. #define DEF_LOGGINGLEVEL 3
  93. #define MIN_LOGGINGLEVEL 0
  94. #define MAX_LOGGINGLEVEL 3
  95. #endif