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.

239 lines
10 KiB

  1. /*++
  2. Copyright (c) 1991-1993 Microsoft Corporation
  3. Module Name:
  4. ConfName.h
  5. Abstract:
  6. This header file defines the names of sections and keywords in the config
  7. data.
  8. Author:
  9. John Rogers (JohnRo) 13-Feb-1992
  10. Revision History:
  11. 13-Feb-1992 JohnRo
  12. Moved equates here from Net/Inc/Config.h and Repl/Common/IniParm.h
  13. 24-Feb-1992 JohnRo
  14. Interval is obsolete for NT: don't keep in registry.
  15. 13-Mar-1992 JohnRo
  16. Added many sections and keywords as part of getting rid of old config
  17. helper callers.
  18. 13-Mar-1992 JohnRo
  19. Added KEYWORD_TRUE and KEYWORD_FALSE for general boolean use.
  20. 14-Mar-1992 JohnRo
  21. Get rid of old net config helper callers.
  22. 23-Mar-1992 JohnRo
  23. Added some stuff for netlogon service.
  24. 08-May-1992 JohnRo
  25. Implement wksta sticky set info.
  26. 08-May-1992 JohnRo
  27. Workstation transports are now a keyword, not a section.
  28. 09-May-1992 JohnRo
  29. Added SECT_NT_BROWSER and BROWSER_KEYWORD_OTHERDOMAINS.
  30. 10-May-1992 JohnRo
  31. NT section names MUST be same as service names, so use thoses equates
  32. here.
  33. 13-May-1992 JohnRo
  34. Added NetpAllocConfigName().
  35. 08-Jul-1992 JohnRo
  36. RAID 10503: Corrected values of replicator's import and export sections.
  37. 16-Aug-1992 JohnRo
  38. RAID 3607: REPLLOCK.RP$ is being created during tree copy.
  39. 01-Dec-1992 JohnRo
  40. RAID 3844: remote NetReplSetInfo uses local machine type.
  41. 24-Mar-1993 JohnRo
  42. Repl svc should use DBFlag in registry.
  43. Made some changes suggested by PC-LINT 5.0
  44. 12-Apr-1993 JohnRo
  45. RAID 5483: server manager: wrong path given in repl dialog.
  46. --*/
  47. #ifndef _CONFNAME_
  48. #define _CONFNAME_
  49. #include <lmcons.h> // NET_API_STATUS.
  50. /*lint -efile(764,lmsname.h) */
  51. /*lint -efile(766,lmsname.h) */
  52. #include <lmsname.h> // SERVICE_ equates.
  53. //
  54. // General purpose equates.
  55. //
  56. #define KEYWORD_FALSE TEXT("FALSE")
  57. #define KEYWORD_TRUE TEXT("TRUE")
  58. #define KEYWORD_NO TEXT("NO")
  59. #define KEYWORD_YES TEXT("YES")
  60. //
  61. // Equate names for sections in the networking portion of the config data.
  62. // Note that the routines in <config.h> only accept the SECT_NT_ versions.
  63. // The others are included for use with the NetConfig APIs when they are
  64. // remoted to downlevel machines. (A program can tell the difference by
  65. // looking at the platform ID from a wksta or server get info call.)
  66. //
  67. ///////////////////////////////////////////////////////////////////////////////
  68. #define SECT_NT_ALERTER SERVICE_ALERTER
  69. #define ALERTER_KEYWORD_ALERTNAMES TEXT("AlertNames")
  70. ///////////////////////////////////////////////////////////////////////////////
  71. #define SECT_NT_BROWSER SERVICE_BROWSER
  72. ///////////////////////////////////////////////////////////////////////////////
  73. #define ENV_KEYWORD_SYSTEMROOT TEXT("SystemRoot")
  74. ///////////////////////////////////////////////////////////////////////////////
  75. #define NETLOGON_KEYWORD_DBFLAG TEXT("DBFlag")
  76. #define NETLOGON_KEYWORD_PULSE TEXT("Pulse")
  77. #define NETLOGON_KEYWORD_PULSEMAXIMUM TEXT("PulseMaximum")
  78. #define NETLOGON_KEYWORD_PULSECONCURRENCY TEXT("PulseConcurrency")
  79. #define NETLOGON_KEYWORD_PULSETIMEOUT1 TEXT("PulseTimeout1")
  80. #define NETLOGON_KEYWORD_PULSETIMEOUT2 TEXT("PulseTimeout2")
  81. #define NETLOGON_KEYWORD_RANDOMIZE TEXT("Randomize")
  82. #define NETLOGON_KEYWORD_SCRIPTS TEXT("Scripts")
  83. #define NETLOGON_KEYWORD_SYSVOL TEXT("SysVol")
  84. #define NETLOGON_KEYWORD_UPDATE TEXT("Update")
  85. #define NETLOGON_KEYWORD_DISABLEPASSWORDCHANGE TEXT("DisablePasswordChange")
  86. #define NETLOGON_KEYWORD_REFUSEPASSWORDCHANGE TEXT("RefusePasswordChange")
  87. #define NETLOGON_KEYWORD_MAXIMUMLOGFILESIZE TEXT("MaximumLogFileSize")
  88. #define NETLOGON_KEYWORD_GOVERNOR TEXT("ReplicationGovernor")
  89. #define NETLOGON_KEYWORD_CHANGELOGSIZE TEXT("ChangeLogSize")
  90. #define NETLOGON_KEYWORD_MAXIMUMMAILSLOTMESSAGES TEXT("MaximumMailslotMessages")
  91. #define NETLOGON_KEYWORD_MAILSLOTMESSAGETIMEOUT TEXT("MailslotMessageTimeout")
  92. #define NETLOGON_KEYWORD_MAILSLOTDUPLICATETIMEOUT TEXT("MailslotDuplicateTimeout")
  93. #define NETLOGON_KEYWORD_TRUSTEDDOMAINLIST TEXT("TrustedDomainList")
  94. #define NETLOGON_KEYWORD_MAXIMUMREPLICATORTHREADCOUNT TEXT("MaximumReplicatorThreadCount")
  95. #define NETLOGON_KEYWORD_EXPECTEDDIALUPDELAY TEXT("ExpectedDialupDelay")
  96. #define NETLOGON_KEYWORD_SCAVENGEINTERVAL TEXT("ScavengeInterval")
  97. #define NETLOGON_KEYWORD_LDAPSRVPRIORITY TEXT("LdapSrvPriority")
  98. #define NETLOGON_KEYWORD_LDAPSRVWEIGHT TEXT("LdapSrvWeight")
  99. #define NETLOGON_KEYWORD_LDAPSRVPORT TEXT("LdapSrvPort")
  100. #define NETLOGON_KEYWORD_LDAPGCSRVPORT TEXT("LdapGcSrvPort")
  101. #define NETLOGON_KEYWORD_DNSTTL TEXT("DnsTtl")
  102. #define NETLOGON_KEYWORD_DNSREFRESHINTERVAL TEXT("DnsRefreshInterval")
  103. #define NETLOGON_KEYWORD_SITENAME TEXT("SiteName")
  104. #define NETLOGON_KEYWORD_DYNAMICSITENAME TEXT("DynamicSiteName")
  105. #define NETLOGON_KEYWORD_SITECOVERAGE TEXT("SiteCoverage")
  106. #define NETLOGON_KEYWORD_GCSITECOVERAGE TEXT("GcSiteCoverage")
  107. #define NETLOGON_KEYWORD_NDNCSITECOVERAGE TEXT("NdncSiteCoverage")
  108. #define NETLOGON_KEYWORD_MAXIMUMPASSWORDAGE TEXT("MaximumPasswordAge")
  109. #define NETLOGON_KEYWORD_ALLOWREPLINNONMIXED TEXT("AllowReplInNonMixed")
  110. #define NETLOGON_KEYWORD_KERBISDDONEWITHJOIN TEXT("KerbIsDoneWithJoinDomainEntry")
  111. #define NETLOGON_KEYWORD_DNSAVOIDNAME TEXT("DnsAvoidRegisterRecords")
  112. #define NETLOGON_KEYWORD_NT4EMULATOR TEXT("Nt4Emulator")
  113. #define NETLOGON_KEYWORD_NEUTRALIZENT4EMULATOR TEXT("NeutralizeNt4Emulator")
  114. //
  115. // Netlogons join domain paths
  116. //
  117. #define NETSETUPP_NETLOGON_JD_PATH \
  118. TEXT("SYSTEM\\CurrentControlSet\\Services\\Netlogon")
  119. #define NETSETUPP_NETLOGON_AVOID_SPN_PATH \
  120. TEXT("SYSTEM\\CurrentControlSet\\Services\\Netlogon\\AvoidSpnSet")
  121. #define NETSETUPP_NETLOGON_AVOID_SPN TEXT("AvoidSpnSet")
  122. #define NETSETUPP_NETLOGON_JD TEXT("JoinDomain")
  123. #define NETSETUPP_NETLOGON_JD_DC TEXT("DomainControllerName")
  124. #define NETSETUPP_NETLOGON_JD_DCA TEXT("DomainControllerAddress")
  125. #define NETSETUPP_NETLOGON_JD_DCAT TEXT("DomainControllerAddressType")
  126. #define NETSETUPP_NETLOGON_JD_DG TEXT("DomainGuid")
  127. #define NETSETUPP_NETLOGON_JD_DN TEXT("DomainName")
  128. #define NETSETUPP_NETLOGON_JD_DFN TEXT("DnsForestName")
  129. #define NETSETUPP_NETLOGON_JD_F TEXT("Flags")
  130. #define NETSETUPP_NETLOGON_JD_DSN TEXT("DcSiteName")
  131. #define NETSETUPP_NETLOGON_JD_CSN TEXT("ClientSiteName")
  132. #define NETSETUPP_NETLOGON_JD_NAME \
  133. TEXT("SYSTEM\\CurrentControlSet\\Services\\Netlogon\\JoinDomain")
  134. ///////////////////////////////////////////////////////////////////////////////
  135. #define SECT_LM20_SERVER TEXT("Server")
  136. ///////////////////////////////////////////////////////////////////////////////
  137. #define SECT_LM20_SERVICES TEXT("Services")
  138. ///////////////////////////////////////////////////////////////////////////////
  139. #define SECT_NT_WKSTA SERVICE_WORKSTATION
  140. #define WKSTA_KEYWORD_OTHERDOMAINS TEXT("OtherDomains")
  141. #define WKSTA_KEYWORD_CHARWAIT TEXT("CharWait")
  142. #define WKSTA_KEYWORD_MAXCOLLECTIONCOUNT TEXT("MaxCollectionCount")
  143. #define WKSTA_KEYWORD_COLLECTIONTIME TEXT("CollectionTime")
  144. #define WKSTA_KEYWORD_KEEPCONN TEXT("KeepConn")
  145. #define WKSTA_KEYWORD_MAXCMDS TEXT("MaxCmds")
  146. #define WKSTA_KEYWORD_SESSTIMEOUT TEXT("SessTimeout")
  147. #define WKSTA_KEYWORD_SIZCHARBUF TEXT("SizCharBuf")
  148. #define WKSTA_KEYWORD_MAXTHREADS TEXT("MaxThreads")
  149. #define WKSTA_KEYWORD_LOCKQUOTA TEXT("LockQuota")
  150. #define WKSTA_KEYWORD_LOCKINCREMENT TEXT("LockIncrement")
  151. #define WKSTA_KEYWORD_LOCKMAXIMUM TEXT("LockMaximum")
  152. #define WKSTA_KEYWORD_PIPEINCREMENT TEXT("PipeIncrement")
  153. #define WKSTA_KEYWORD_PIPEMAXIMUM TEXT("PipeMaximum")
  154. #define WKSTA_KEYWORD_CACHEFILETIMEOUT TEXT("CacheFileTimeout")
  155. #define WKSTA_KEYWORD_DORMANTFILELIMIT TEXT("DormantFileLimit")
  156. #define WKSTA_KEYWORD_READAHEADTHRUPUT TEXT("ReadAheadThroughput")
  157. #define WKSTA_KEYWORD_MAILSLOTBUFFERS TEXT("MailslotBuffers")
  158. #define WKSTA_KEYWORD_SERVERANNOUNCEBUFS TEXT("ServerAnnounceBuffers")
  159. #define WKSTA_KEYWORD_NUM_ILLEGAL_DG_EVENTS TEXT("NumIllegalDatagramEvents")
  160. #define WKSTA_KEYWORD_ILLEGAL_DG_RESET_TIME TEXT("IllegalDatagramResetTime")
  161. #define WKSTA_KEYWORD_LOG_ELECTION_PACKETS TEXT("LogElectionPackets")
  162. #define WKSTA_KEYWORD_USEOPLOCKING TEXT("UseOpportunisticLocking")
  163. #define WKSTA_KEYWORD_USEUNLOCKBEHIND TEXT("UseUnlockBehind")
  164. #define WKSTA_KEYWORD_USECLOSEBEHIND TEXT("UseCloseBehind")
  165. #define WKSTA_KEYWORD_BUFNAMEDPIPES TEXT("BufNamedPipes")
  166. #define WKSTA_KEYWORD_USELOCKREADUNLOCK TEXT("UseLockReadUnlock")
  167. #define WKSTA_KEYWORD_UTILIZENTCACHING TEXT("UtilizeNtCaching")
  168. #define WKSTA_KEYWORD_USERAWREAD TEXT("UseRawRead")
  169. #define WKSTA_KEYWORD_USERAWWRITE TEXT("UseRawWrite")
  170. #define WKSTA_KEYWORD_USEWRITERAWDATA TEXT("UseWriteRawData")
  171. #define WKSTA_KEYWORD_USEENCRYPTION TEXT("UseEncryption")
  172. #define WKSTA_KEYWORD_BUFFILESDENYWRITE TEXT("BufFilesDenyWrite")
  173. #define WKSTA_KEYWORD_BUFREADONLYFILES TEXT("BufReadOnlyFiles")
  174. #define WKSTA_KEYWORD_FORCECORECREATE TEXT("ForceCoreCreateMode")
  175. #define WKSTA_KEYWORD_USE512BYTEMAXTRANS TEXT("Use512ByteMaxTransfer")
  176. ///////////////////////////////////////////////////////////////////////////////
  177. #define WKSTA_KEYWORD_MAINTAINSRVLST TEXT("MaintainServerList")
  178. #ifdef ENABLE_PSEUDO_BROWSER
  179. // Browser modern keys
  180. #define BROWSER_POLICY_REGPATH_W \
  181. L"SOFTWARE\\Policies\\Microsoft\\Windows\\Browser"
  182. #define BROWSER_SEND_SERVER_ENUM_REGKEY_W \
  183. L"SendServerEnum"
  184. #define BROWSER_PSEUDO_SERVER_REGKEY_W \
  185. L"BrowserPseudoServer"
  186. #endif
  187. ///////////////////////////////////////////////////////////////////////////////
  188. NET_API_STATUS
  189. NetpAllocConfigName(
  190. IN LPTSTR DatabaseName, // SERVICES_xxx_DATABASE from winsvc.h.
  191. IN LPTSTR ServiceName, // SERVICE_ name equate from lmsname.h
  192. IN LPTSTR AreaUnderServiceName OPTIONAL, // defaults to "Parameters"
  193. OUT LPTSTR *FullConfigName // free with NetApiBufferFree.
  194. );
  195. #endif // ndef _CONFNAME_