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.

202 lines
7.9 KiB

  1. ;
  2. ; DHCP Server
  3. ;
  4. ; Copyright (c) 1999, Microsoft Corporation
  5. ;
  6. [Version]
  7. Signature = "$Windows NT$"
  8. Class = NetService
  9. ClassGUID = {4D36E974-E325-11CE-BFC1-08002BE10318}
  10. Provider = %Msft%
  11. LayoutFile = layout.inf
  12. [Manufacturer]
  13. %Msft% = MSFT
  14. [MSFT]
  15. %DHCPServer_SCM_Display%=DHCPServer.Ndi, MS_DHCPServer
  16. [ControlFlags]
  17. ExcludeFromSelect = MS_DHCPServer
  18. [DHCPServer.Ndi]
  19. CopyFiles = CpyFiles_Sys
  20. AddReg = DHCPServer.Ndi.AddReg
  21. Characteristics = 0x10028 ; NCF_FORCE_SCM_NOTIFY | NCF_HIDDEN | NCF_NOT_USER_REMOVABLE
  22. RegisterDlls = DHCPServer.Ndi.Register
  23. ProfileItems = DHCP.Shortcut.Add, DHCP.Old.Shortcut.Remove, DHCP.Really.Old.Shortcut.Remove
  24. [DHCPServer.Ndi.Remove]
  25. DelReg = DHCPServer.DelReg
  26. UnregisterDlls = DHCPServer.Unregister
  27. ProfileItems = DHCP.Shortcut.Remove
  28. [DHCPServer.Ndi.Services]
  29. ; 0x10 = SPSVCINST_NOCLOBBER_STARTTYPE
  30. AddService = DHCPServer, 0x10, DHCPServer_Service_Inst, DHCPServer_Evt
  31. [DHCPServer.Ndi.Remove.Services]
  32. DelService = DHCPServer
  33. [DHCPServer.Ndi.Register]
  34. 11,, dhcpsnap.dll, 1
  35. 11,, lodctr.exe, 1,,"dhcpctrs.ini"
  36. [DHCPServer.Unregister]
  37. 11,, dhcpsnap.dll, 1
  38. 11,, unlodctr.exe, 1,,"DHCPServer"
  39. ; SNMP Agent stuff
  40. ;
  41. [DHCPServer.Ndi.SNMPAgent]
  42. AddAgent = DHCPServer.Ndi.Install.AddSNMPAgent
  43. [DHCPServer.Ndi.Remove.SNMPAgent]
  44. DelAgent = DHCPServer.Ndi.Remove.DelSNMPAgent
  45. [DHCPServer.Ndi.Install.AddSNMPAgent]
  46. ServiceName = "DHCPServer"
  47. AgentName = "DHCPMibAgent"
  48. AgentPath = "%SystemRoot%\System32\dhcpmib.dll"
  49. [DHCPServer.Ndi.Remove.DelSNMPAgent]
  50. AgentName = "DHCPMibAgent"
  51. ;
  52. ; Administrative Tools shortcut
  53. ;
  54. [DHCP.Shortcut.Add]
  55. Name = %DHCPServer_Admin_SC_Desc%
  56. CmdLine = 11,,"dhcpmgmt.msc /s"
  57. IconPath = 11,, dhcpsnap.dll
  58. IconIndex = 0
  59. SubDir = %DHCPServer_Admin_SC_Group_Name%
  60. InfoTip = %DHCPServer_Admin_SC_HelpText%
  61. [DHCP.Shortcut.Remove]
  62. Name = %DHCPServer_Admin_SC_Desc%, 0x2
  63. SubDir = %DHCPServer_Admin_SC_Group_Name%
  64. ; NT 4.0 Shortcut
  65. [DHCP.Old.Shortcut.Remove]
  66. Name = %DHCPServer_Old_Admin_Sc_Desc%, 0x2
  67. SubDir = %DHCPServer_Old_Admin_Sc_Group_Name%
  68. ; NT 3.51 Shortcut
  69. [DHCP.Really.Old.Shortcut.Remove]
  70. Name = %DHCPServer_Really_Old_Admin_Sc_Desc%, 0x2
  71. SubDir = %DHCPServer_Really_Old_Admin_Sc_Group_Name%
  72. ; Service Install Sections
  73. ;
  74. [DHCPServer.Ndi.AddReg]
  75. ; NDI install registry keys
  76. HKR,"Ndi", "ClsID",, "{aa9bb1e0-9fe2-11d0-b257-00c04fc9e292}"
  77. HKR,"Ndi", "Service",, "DHCPServer"
  78. HKR,"Ndi", "CoServices", %REG_MULTI_SZ%, "DHCPServer"
  79. HKR,"Ndi", "HelpText",, "%DHCPServer_HELP%"
  80. HKR,"Ndi", "ExcludeSetupStartServices",%REG_MULTI_SZ%, "DHCPServer"
  81. HKR,"Ndi\Interfaces", "UpperRange",, "noupper"
  82. HKR,"Ndi\Interfaces", "LowerRange",, "nolower"
  83. ; For Computer management snapin extension
  84. HKLM,"SYSTEM\CurrentControlSet\Control\Server Applications", "{524CCE97-A886-11D0-AB86-00C04FC3357A}",, "DHCP"
  85. [DestinationDirs]
  86. CpyFiles_Sys = 11 ;windir\System32
  87. [CpyFiles_Sys]
  88. dhcpmgmt.msc ,,, 2
  89. dhcpmib.dll ,,, 2
  90. dhcpsnap.dll ,,, 2
  91. dhcpssvc.dll ,,, 2
  92. jetpack.exe ,,, 2
  93. binlsvc.dll ,,, 2
  94. dhcpctrs.ini ,,, 2
  95. dhcpctrs.h ,,, 2
  96. ; Service Install Sections
  97. ;
  98. [DHCPServer_Service_Inst]
  99. DisplayName = %DHCPServer_SCM_Display%
  100. ServiceType = %SERVICE_WIN32_SHARE_PROCESS%
  101. StartType = %SERVICE_AUTO_START%
  102. ErrorControl = 1 ;SERVICE_ERROR_NORMAL
  103. ServiceBinary = %11%\tcpsvcs.exe
  104. StartName = LocalSystem
  105. AddReg = DHCPServer_Service.AddReg
  106. Dependencies = RpcSs, Tcpip, SamSs, EventLog
  107. Description = %DHCPServer_SCM_Desc%
  108. [DHCPServer_Service.AddReg]
  109. ; Performance counter info
  110. HKR,"Performance", "Library", , "perfctrs.dll"
  111. HKR,"Performance", "Open", , "OpenDhcpPerformanceData"
  112. HKR,"Performance", "Close", , "CloseDhcpPerformanceData"
  113. HKR,"Performance", "Collect", , "CollectDhcpPerformanceData"
  114. ; Parameters Flags
  115. HKR,"Parameters", "APIProtocolSupport", %REG_DWORD%, 5
  116. HKR,"Parameters", "BackupDatabasePath", 0x20002, "%%SystemRoot%%\System32\dhcp\backup"
  117. HKR,"Parameters", "BackupInterval", %REG_DWORD%, 60
  118. HKR,"Parameters", "DatabaseCleanupInterval", %REG_DWORD%, 1440
  119. HKR,"Parameters", "DatabaseLoggingFlag", %REG_DWORD%, 1
  120. HKR,"Parameters", "DatabaseName", %REG_SZ%, "dhcp.mdb"
  121. HKR,"Parameters", "DatabasePath", 0x20002, "%%SystemRoot%%\System32\dhcp"
  122. HKR,"Parameters", "DebugFlag", %REG_DWORD%, 0
  123. HKR,"Parameters", "RestoreFlag", %REG_DWORD%, 0
  124. HKR,"Parameters\MultiHomeInfo",, %FLG_ADDREG_KEYONLY%
  125. HKR,"Parameters\Configuration",, %FLG_ADDREG_KEYONLY%
  126. [DHCPServer_Evt]
  127. AddReg = DHCPServer_Evt_AddReg
  128. [DHCPServer_Evt_Addreg]
  129. HKR,, EventMessageFile, %REG_EXPAND_SZ%, "%%SystemRoot%%\System32\dhcpssvc.dll"
  130. HKR,, ParameterMessageFile, %REG_EXPAND_SZ%, "%%SystemRoot%%\System32\kernel32.dll"
  131. HKR,, TypesSupported, %REG_DWORD%, 7
  132. [DHCPServer_Unattend]
  133. AddReg = DHCPServer_Unattend_Addreg
  134. [DHCPServer_Unattend_Addreg]
  135. HKR,"Configuration",, %FLG_ADDREG_KEYONLY%
  136. HKR,"Configuration\GlobalOptionValues",, %FLG_ADDREG_KEYONLY%
  137. HKR,"Configuration\Subnets\10.0.0.0", "ExcludedIpRanges", %REG_BIN%, 01,00,00,00,01,00,00,0A,0A,00,00,0A
  138. HKR,"Configuration\Subnets\10.0.0.0", "SubnetAddress", %REG_DWORD%, 0x0A000000
  139. HKR,"Configuration\Subnets\10.0.0.0", "SubnetComment", %REG_SZ%, "Default Configuration"
  140. HKR,"Configuration\Subnets\10.0.0.0", "SubnetMask", %REG_DWORD%, 0xFFFFFF00
  141. HKR,"Configuration\Subnets\10.0.0.0", "SubnetName", %REG_SZ%, "Default Subnet"
  142. HKR,"Configuration\Subnets\10.0.0.0", "SubnetState", %REG_DWORD%, 0
  143. HKR,"Configuration\Subnets\10.0.0.0\DHCPServers\127.0.0.1",, %FLG_ADDREG_KEYONLY%
  144. HKR,"Configuration\Subnets\10.0.0.0\DHCPServers\127.0.0.1", "Role", %REG_DWORD%, 1
  145. HKR,"Configuration\Subnets\10.0.0.0\DHCPServers\127.0.0.1", "ServerHostName", %REG_SZ%, ""
  146. HKR,"Configuration\Subnets\10.0.0.0\DHCPServers\127.0.0.1", "ServerIpAddress", %REG_DWORD%, 0x7F000001
  147. HKR,"Configuration\Subnets\10.0.0.0\DHCPServers\127.0.0.1", "ServerNetBiosName",%REG_SZ%, ""
  148. HKR,"Configuration\Subnets\10.0.0.0\IpRanges\10.0.0.1", "EndAddress", %REG_DWORD%, 0x0A0000FF
  149. HKR,"Configuration\Subnets\10.0.0.0\IpRanges\10.0.0.1", "InUseClusters",%REG_BIN%, 02,00,00,00,01,00,00,0A,FF,03,00,00,E1,00,00,0A,00,00,00,C0
  150. HKR,"Configuration\Subnets\10.0.0.0\IpRanges\10.0.0.1", "StartAddress", %REG_DWORD%, 0x0A000001
  151. HKR,"Configuration\Subnets\10.0.0.0\IpRanges\10.0.0.1", "UsedClusters", %REG_BIN%, 00,00,00,00
  152. HKR,"Configuration\Subnets\10.0.0.0\ReservedIps",, %FLG_ADDREG_KEYONLY%
  153. HKR,"Configuration\Subnets\10.0.0.0\SubnetOptions\051", "OptionValue", %REG_BIN%, 18,00,00,00,02,00,00,00,01,00,00,00,00,00,00,00,80,F4,03,00,00,00,00,00
  154. ;
  155. ; Service uninstall
  156. ;
  157. [DHCPServer.DelReg]
  158. ; For Computer management snapin extension
  159. HKLM,"SYSTEM\CurrentControlSet\Control\Server Applications", "{524CCE97-A886-11D0-AB86-00C04FC3357A}",, "DHCP"
  160. HKLM,"Software\Microsoft\DHCPServer"