[version]
signature="$Windows NT$"
LayoutFile=layout.inf
Provider=%Msft%
DriverVer=11/06/1999,5.00.2175.1
;
; For Optional Components Use Only
;
[DNS]
CopyFiles = CpyFiles_Sys,CpyFiles_Dns,CpyFiles_DnsSamp
Uninstall = DNS.Remove
StartServices = DNS
DependOnComponents = MS_TCPIP
RegisterDlls = DNS.Register
ProfileItems = DNS.Shortcut.Add, DNS.Old.Shortcut.Remove
[DNS.Remove]
UnregisterDlls = DNS.Unregister
ProfileItems = DNS.Shortcut.Remove
;
; Services Sections
;
[DNS.Services]
; 0x10 = SPSVCINST_NOCLOBBER_STARTTYPE
AddService = DNS, 0x10, DNSServer_Service_Inst, DNSServer_Evt
[DNS.Remove.Services]
DelService = DNS
;
; COM Object registration/Perf counters
;
[DNS.Register]
11,, dnsmgr.dll, 1
11,, mycomput.dll, 1
11,, lodctr.exe, 1,,"dnsperf.ini"
[DNS.Unregister]
11,, dnsmgr.dll, 1
11,, unlodctr.exe, 1,,"DNS"
;
; Administrative Tools shortcut
;
[DNS.Shortcut.Add]
Name = %DNS_Shortcut_Desc%
SubDir = %DNS_Admin_Group%
CmdLine = 11,,"dnsmgmt.msc /s"
IconPath = 11,,dnsmgr.dll
IconIndex = 0
InfoTip = %DNS_Admin_HelpText%
[DNS.Shortcut.Remove]
Name = %DNS_Shortcut_Desc%, 0x2
SubDir = %DNS_Admin_Group%
; NT 4.0 Shortcut
[DNS.Old.Shortcut.Remove]
Name = %DNS_Admin_Tool_Old%, 0x2
SubDir = %DNS_Admin_Group_Old%
[DestinationDirs]
CpyFiles_Sys = 11 ;System32
CpyFiles_Dns = 11,dns ;System32\dns
CpyFiles_DnsSamp = 11,dns\samples ;System32\dns\samples
;
; Copy Files sections
;
[CpyFiles_Sys]
dns.exe,,,2
dnsmgr.dll,,,2
dnsmgmt.msc,,,2
dnsperf.dll,,,2
dnsperf.h,,,2
dnsperf.ini,,,2
[CpyFiles_Dns]
CACHE.DNS,,,0x12 ; Don't overwrite if already present
[CpyFiles_DnsSamp]
192.DNS,,,2
BOOT,,,2
CACHE.DNS,,,2
PLACE.DNS,,,2
;
; Service Install Sections
;
[DNSServer_Service_Inst]
DisplayName = %DNSServer_Display%
ServiceType = %SERVICE_WIN32_OWN_PROCESS%
StartType = %SERVICE_AUTO_START%
ErrorControl = 1
ServiceBinary = "%%SystemRoot%%\System32\dns.exe"
Dependencies = Tcpip, Afd, NetBT, RpcSs, NTLmSsp
StartName = LocalSystem
AddReg = DNS.AddReg
Description = %DNSServer_Desc%
[DNS.AddReg]
;
; Perfmon counter info
;
HKR, "Performance", "Library", , "dnsperf.dll"
HKR, "Performance", "Open", ,
"OpenDnsPerformanceData"
HKR, "Performance", "Close", ,
"CloseDnsPerformanceData"
HKR, "Performance", "Collect", ,
"CollectDnsPerformanceData"
;
; Add Computer Management dynamic extension
;
HKLM, System\CurrentControlSet\Control\Server Applications\,
{80105023-50B1-11D1-B930-00A0C9A06D2D}, REG_SZ, %DNS_EXTENSION%
;
; Event Log support
;
[DNSServer_Evt]
AddReg = DNSServer_Evt_AddReg
[DNSServer_Evt_AddReg]
; System event log
HKR,, EventMessageFile, %REG_EXPAND_SZ%,
"%%SystemRoot%%\System32\dns.exe"
HKR,, TypesSupported, %REG_DWORD%, 0x00000007
; DNS Server's own eventlog
; - setup "DNS Server" eventlog
; - setup "DNS" server under this eventlog
HKLM, "System\CurrentControlSet\Services\EventLog\DNS Server", ,
%FLG_ADDREG_KEYONLY%
HKLM, "System\CurrentControlSet\Services\EventLog\DNS Server", "File",
%REG_EXPAND_SZ%, "%%SystemRoot%%\system32\config\DnsEvent.Evt"
HKLM, "System\CurrentControlSet\Services\EventLog\DNS Server",
"MaxSize", %REG_DWORD%, 0x80000
HKLM, "System\CurrentControlSet\Services\EventLog\DNS Server",
"Retention", %REG_DWORD%, 0x93a80
HKLM, "System\CurrentControlSet\Services\EventLog\DNS Server",
"Sources", %REG_MULTI_SZ%, "DNS"
HKLM, "System\CurrentControlSet\Services\EventLog\DNS Server\DNS", ,
%FLG_ADDREG_KEYONLY%
HKLM, "System\CurrentControlSet\Services\EventLog\DNS Server\DNS",
"EventMessageFile", %REG_EXPAND_SZ%,
"%%SystemRoot%%\System32\dns.exe"
HKLM, "System\CurrentControlSet\Services\EventLog\DNS Server\DNS",
"TypesSupported", %REG_DWORD%, 0x00000007
[Strings]
Msft = "Microsoft"
DNSServer_Display = "DNS Server"
DNSServer_Desc =
"应答对域名系统(DNS)名称的查询和更新请求。"
; Service names
DNS_Desc = "Microsoft DNS 服务器"
DNS_Admin_Group = "管理工具"
DNSServer_HELP = "域名系统将 DNS 域名映射到 IP 地址。"
; Note to localizers: This string must be the same as the one from NT4.
DNS_Admin_Tool_Old = "DNS 管理器"
DNS_Admin_Group_Old = "管理工具"
DNS_Shortcut_Desc = "DNS"
DNS_EXTENSION = "DNS Extension"
DNS_Admin_HelpText = "管理域名系统 (DNS) 服务,由于将 DNS
计算机名转换成 IP 地址。"
REG_MULTI_SZ = 0x10000
REG_EXPAND_SZ = 0x20000
REG_DWORD = 0x10001
SERVICE_DEMAND_START = 3
SERVICE_AUTO_START = 2
SERVICE_WIN32_SHARE_PROCESS = 32
SERVICE_FILE_SYSTEM_DRIVER = 2
SERVICE_WIN32_OWN_PROCESS = 16
; Characteristic flags
NCF_VIRTUAL = 0x0001
NCF_WRAPPER = 0x0002
NCF_PHYSICAL = 0x0004
NCF_HIDDEN = 0x0008
NCF_NO_SERVICE = 0x0010
NCF_NOT_USER_REMOVABLE = 0x0020
NCF_HAS_UI = 0x0080
NCF_MODEM = 0x0100
KEY_OPTIONAL =
"SOFTWARE\Microsoft\Windows\CurrentVersion\Setup\OptionalComponents"