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.

187 lines
6.6 KiB

  1. ;
  2. ; DHCP Server
  3. ;
  4. ; Copyright (c) Microsoft Corporation. All rights reserved.
  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,CpyFiles_Sys_Console
  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_Console = 11 ;windir\System32
  88. [CpyFiles_Sys]
  89. dhcpmgmt.msc ,,, 2
  90. dhcpmib.dll ,,, 2
  91. dhcpsnap.dll ,,, 2
  92. dhcpssvc.dll ,,, 2
  93. binlsvc.dll ,,, 2
  94. dhcpctrs.ini ,,, 2
  95. dhcpctrs.h ,,, 2
  96. [CpyFiles_Sys_Console]
  97. jetpack.exe ,,, 2
  98. [CpyFiles_Sys_Console.Security]
  99. "D:P(A;;GRGX;;;IU)(A;;GRGX;;;SU)(A;;GRGX;;;S-1-5-3)(A;;GA;;;BA)(A;;GA;;;SY)(A;;GA;;;CO)"
  100. ; Service Install Sections
  101. ;
  102. [DHCPServer_Service_Inst]
  103. DisplayName = %DHCPServer_SCM_Display%
  104. ServiceType = %SERVICE_WIN32_SHARE_PROCESS%
  105. StartType = %SERVICE_AUTO_START%
  106. ErrorControl = 1 ;SERVICE_ERROR_NORMAL
  107. ServiceBinary = %11%\tcpsvcs.exe
  108. StartName = LocalSystem
  109. AddReg = DHCPServer_Service.AddReg
  110. Dependencies = RpcSs, Tcpip, SamSs, EventLog, EventSystem
  111. Description = %DHCPServer_SCM_Desc%
  112. [DHCPServer_Service.AddReg]
  113. ; Performance counter info
  114. HKR,"Performance", "Library", , "perfctrs.dll"
  115. HKR,"Performance", "Open", , "OpenDhcpPerformanceData"
  116. HKR,"Performance", "Close", , "CloseDhcpPerformanceData"
  117. HKR,"Performance", "Collect", , "CollectDhcpPerformanceData"
  118. ; Parameters Flags
  119. HKR,"Parameters", "APIProtocolSupport", %REG_DWORD%, 5
  120. HKR,"Parameters", "BackupDatabasePath", 0x20002, "%%SystemRoot%%\System32\dhcp\backup"
  121. HKR,"Parameters", "BackupInterval", %REG_DWORD%, 60
  122. HKR,"Parameters", "DatabaseCleanupInterval", %REG_DWORD%, 60
  123. HKR,"Parameters", "DatabaseLoggingFlag", %REG_DWORD%, 1
  124. HKR,"Parameters", "DatabaseName", %REG_SZ%, "dhcp.mdb"
  125. HKR,"Parameters", "DatabasePath", 0x20002, "%%SystemRoot%%\System32\dhcp"
  126. HKR,"Parameters", "DebugFlag", %REG_DWORD%, 0
  127. HKR,"Parameters", "RestoreFlag", %REG_DWORD%, 0
  128. HKR,"Parameters", "DhcpLogFilesMaxSize", %REG_DWORD%, 70
  129. HKR,"Parameters\MultiHomeInfo",, %FLG_ADDREG_KEYONLY%
  130. HKR,"Parameters\Configuration",, %FLG_ADDREG_KEYONLY%
  131. [DHCPServer_Evt]
  132. AddReg = DHCPServer_Evt_AddReg
  133. [DHCPServer_Evt_Addreg]
  134. HKR,, EventMessageFile, %REG_EXPAND_SZ%, "%%SystemRoot%%\System32\dhcpssvc.dll"
  135. HKR,, ParameterMessageFile, %REG_EXPAND_SZ%, "%%SystemRoot%%\System32\kernel32.dll"
  136. HKR,, TypesSupported, %REG_DWORD%, 7
  137. [DHCPServer_Unattend]
  138. AddReg = DHCPServer_Unattend_Addreg
  139. [DHCPServer_Unattend_Addreg]
  140. HKR,"Configuration",, %FLG_ADDREG_KEYONLY%
  141. ;
  142. ; Service uninstall
  143. ;
  144. [DHCPServer.DelReg]
  145. ; For Computer management snapin extension
  146. HKLM,"SYSTEM\CurrentControlSet\Control\Server Applications", "{524CCE97-A886-11D0-AB86-00C04FC3357A}",, "DHCP"
  147. HKLM,"Software\Microsoft\DHCPServer"