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.

363 lines
15 KiB

  1. // this is the max resource string length
  2. #define MAX_STR_LEN 1024
  3. const TCHAR REG_INETSTP[] = _T("Software\\Microsoft\\INetStp");
  4. const TCHAR REG_IISADMIN[] = _T("System\\CurrentControlSet\\Services\\IISADMIN");
  5. const TCHAR REG_W3SVC[] = _T("System\\CurrentControlSet\\Services\\W3SVC");
  6. const TCHAR REG_MSFTPSVC[] = _T("System\\CurrentControlSet\\Services\\MSFTPSVC");
  7. const TCHAR REG_GOPHERSVC[] = _T("System\\CurrentControlSet\\Services\\GOPHERSVC");
  8. const TCHAR REG_MIMEMAP[] = _T("System\\CurrentControlSet\\Services\\InetInfo\\Parameters\\MimeMap");
  9. const TCHAR REG_ASP_UNINSTALL[] = _T("SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\ActiveServerPages");
  10. const TCHAR REG_INETINFOPARAMETERS[] = _T("System\\CurrentControlSet\\Services\\InetInfo\\Parameters");
  11. const TCHAR REG_WWWPARAMETERS[] = _T("System\\CurrentControlSet\\Services\\W3Svc\\Parameters");
  12. const TCHAR REG_WWWVROOTS[] = _T("System\\CurrentControlSet\\Services\\W3Svc\\Parameters\\Virtual Roots");
  13. const TCHAR REG_WWWPERFORMANCE[] = _T("System\\CurrentControlSet\\Services\\W3svc\\Performance");
  14. const TCHAR REG_EVENTLOG_SYSTEM[] = _T("System\\CurrentControlSet\\Services\\EventLog\\System");
  15. const TCHAR REG_EVENTLOG_APPLICATION[] = _T("System\\CurrentControlSet\\Services\\EventLog\\Application");
  16. const TCHAR REG_FTPPARAMETERS[] = _T("System\\CurrentControlSet\\Services\\MSFtpsvc\\Parameters");
  17. const TCHAR REG_FTPVROOTS[] = _T("System\\CurrentControlSet\\Services\\MSFtpsvc\\Parameters\\Virtual Roots");
  18. const TCHAR REG_SNMPPARAMETERS[] = _T("System\\CurrentControlSet\\Services\\SNMP\\Parameters");
  19. const TCHAR REG_SNMPEXTAGENT[] = _T("System\\CurrentControlSet\\Services\\SNMP\\Parameters\\ExtensionAgents");
  20. enum OS {OS_NT, OS_W95, OS_OTHERS};
  21. enum NT_OS_TYPE {OT_NT_UNKNOWN, OT_NTS, OT_PDC_OR_BDC, OT_NTW};
  22. enum UPGRADE_TYPE {UT_NONE, UT_351, UT_10_W95, UT_10, UT_20, UT_30, UT_40, UT_50, UT_51, UT_60};
  23. enum INSTALL_MODE {IM_FRESH,IM_UPGRADE,IM_MAINTENANCE, IM_DEGRADE};
  24. enum ACTION_TYPE {AT_DO_NOTHING, AT_REMOVE, AT_INSTALL_FRESH, AT_INSTALL_UPGRADE, AT_INSTALL_REINSTALL};
  25. enum STATUS_TYPE {ST_UNKNOWN, ST_INSTALLED, ST_UNINSTALLED};
  26. // 0 = log errors only
  27. // 1 = log errors and warnings
  28. // 2 = log errors, warnings and program flow type statemtns
  29. // 3 = log errors, warnings, program flow and basic trace activity
  30. // 4 = log errors, warnings, program flow, basic trace activity and trace to win32 api calls.
  31. const int LOG_TYPE_ERROR = 0;
  32. const int LOG_TYPE_WARN = 1;
  33. const int LOG_TYPE_PROGRAM_FLOW = 2;
  34. const int LOG_TYPE_TRACE = 3;
  35. const int LOG_TYPE_TRACE_WIN32_API = 4;
  36. /*
  37. old pws10 registry entries...
  38. [HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Setup\SetupX\INF\OEM Name]
  39. "C:\\WINDOWS\\INF\\MSWEBSVR.INF"="MSWEBSVR.INF"
  40. [HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Uninstall\Personal Web Server]
  41. "DisplayName"="Personal Web Server"
  42. "UninstallString"="C:\\Program Files\\WebSvr\\System\\mswebndi.exe /REMOVE"
  43. [HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\App Paths\inetsw95.exe]
  44. @="C:\\Program Files\\WebSvr\\System\\inetsw95.exe"
  45. [HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Run]
  46. "Microsoft WebServer"="C:\\Program Files\\WebSvr\\System\\svctrl /init"
  47. [HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\RunServices]
  48. "Microsoft WebServer"="C:\\Program Files\\WebSvr\\System\\inetsw95 -w3svc"
  49. [HKEY_LOCAL_MACHINE\Software\Microsoft\FrontPage]
  50. [HKEY_LOCAL_MACHINE\Software\Microsoft\FrontPage\3.0]
  51. "PWSInstalled"="1"
  52. [HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\Class\NetService\0000]
  53. "DriverDesc"="Personal Web Server"
  54. "InfSection"="MSWEBSVR.ndi"
  55. "InfPath"="MSWEBSVR.INF"
  56. "ProviderName"="Microsoft"
  57. "DriverDate"=" 8-21-1996"
  58. [HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\Class\NetService\0000\Ndi]
  59. "DeviceID"="MSWEBSVR"
  60. "MaxInstance"="8"
  61. "NdiInstaller"="mswebndi.dll,WebNdiProc"
  62. "HelpText"="Personal Web Server enables you to share your files over the Internet."
  63. "InstallInf"=""
  64. [HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\Class\NetService\0000\Ndi\Compatibility]
  65. "RequireAll"="MSTCP"
  66. [HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\Class\NetService\0000\Ndi\Interfaces]
  67. "DefLower"="winsock"
  68. "LowerRange"="winsock"
  69. "Lower"="winsock"
  70. "Upper"=""
  71. [HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\Class\NetService\0000\Ndi\Install]
  72. @="MSWEBSVR.Install.Inf"
  73. [HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\Class\NetService\0000\Ndi\Remove]
  74. @="MSWEBSVR.Remove.Inf"
  75. [HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\Class\NetService\0000\Ndi\params]
  76. [HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\Class\NetService\0000\Ndi\params\LocalSecurity]
  77. "ParamDesc"="Use Local Security"
  78. "flag"=hex:10,00,00,00
  79. "default"="TRUE"
  80. "type"="enum"
  81. @="TRUE"
  82. [HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\Class\NetService\0000\Ndi\params\LocalSecurity\enum]
  83. "TRUE"="TRUE"
  84. "FALSE"="FALSE"
  85. [HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\VxD\mswebSP]
  86. "StaticVxD"="mswebsp.vxd"
  87. "Start"=hex:00
  88. "NetClean"=hex:01
  89. [HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\VxD\FILESEC]
  90. "StaticVxD"="filesec.vxd"
  91. "Start"=hex:00
  92. "NetClean"=hex:01
  93. [HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\EventLog]
  94. [HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\EventLog\System]
  95. [HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\EventLog\System\W3SVC]
  96. "EventMessageFile"="w3svc.dll"
  97. "TypesSupported"=hex:07
  98. [HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\EventLog\System\MSFTPSVC]
  99. "EventMessageFile"="ftpsvc2.dll"
  100. [HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\InetInfo]
  101. [HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\InetInfo\Parameters]
  102. "MaxPoolThreads"=hex:05
  103. "MaxConcurrency"=hex:01
  104. "ThreadTimeout"=hex:00,20
  105. "RPCEnabled"=hex:01
  106. "StartupServices"=hex:01
  107. "BandwidthLevel"=hex:00
  108. "EventLogDirectory"="C:\\WINDOWS"
  109. [HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\InetInfo\Parameters\MimeMap]
  110. "text/plain,*,/images/default.gif,1"=""
  111. "application/wav,wav,/images/sound.gif,1"=""
  112. "application/zip,zip,/images/binary.gif,1"=""
  113. "application/rtf,rtf,/images/doc.gif,1"=""
  114. "application/postscript,ps,/images/image.gif,1"=""
  115. "application/msword,doc,/images/doc.gif,1"=""
  116. "text/html,html,/images/doc.gif,1"=""
  117. "text/html,htm,/images/doc.gif,1"=""
  118. "text/html,stm,/images/doc.gif,1"=""
  119. "text/plain,txt,/images/doc.gif,1"=""
  120. "image/gif,gif,/images/image.gif,1"=""
  121. "image/jpeg,jpeg,/images/image.gif,1"=""
  122. "image/jpeg,jpg,/images/image.gif,1"=""
  123. "image/tiff,tiff,/images/image.gif,1"=""
  124. "image/tiff,tif,/images/image.gif,1"=""
  125. "video/mpeg,mpeg,/images/video.gif,1"=""
  126. "video/mpeg,mpg,/images/video.gif,1"=""
  127. "video/avi,avi,/images/video.gif,1"=""
  128. "audio/basic,au,/images/sound.gif,1"=""
  129. "application/octet-stream,*,,5"=""
  130. "text/html,htm,,h"=""
  131. "image/gif,gif,,g"=""
  132. "image/jpeg,jpg,,:"=""
  133. "text/plain,txt,,0"=""
  134. "text/html,html,,h"=""
  135. "image/jpeg,jpe,,:"=""
  136. "image/bmp,bmp,,:"=""
  137. "image/jpeg,jpeg,,:"=""
  138. "application/pdf,pdf,,5"=""
  139. "application/oda,oda,,5"=""
  140. "application/zip,zip,,9"=""
  141. "application/rtf,rtf,,5"=""
  142. "application/postscript,ps,,5"=""
  143. "application/postscript,ai,,5"=""
  144. "application/postscript,eps,,5"=""
  145. "application/mac-binhex40,hqx,,4"=""
  146. "application/msword,doc,,5"=""
  147. "application/msword,dot,,5"=""
  148. "application/winhlp,hlp,,5"=""
  149. "video/mpeg,mpeg,,Long file names"=""
  150. "video/mpeg,mpg,,Long file names"=""
  151. "video/mpeg,mpe,,Long file names"=""
  152. "video/avi,avi,,<"=""
  153. "video/x-msvideo,avi,,<"=""
  154. "video/quicktime,qt,,Long file names"=""
  155. "video/quicktime,mov,,Long file names"=""
  156. "video/x-sgi-movie,movie,,<"=""
  157. "x-world/x-vrml,wrl,,5"=""
  158. "x-world/x-vrml,xaf,,5"=""
  159. "x-world/x-vrml,xof,,5"=""
  160. "x-world/x-vrml,flr,,5"=""
  161. "x-world/x-vrml,wrz,,5"=""
  162. "application/x-director,dcr,,5"=""
  163. "application/x-director,dir,,5"=""
  164. "application/x-director,dxr,,5"=""
  165. "image/cis-cod,cod,,5"=""
  166. "image/x-cmx,cmx,,5"=""
  167. "application/envoy,evy,,5"=""
  168. "application/x-msaccess,mdb,,5"=""
  169. "application/x-mscardfile,crd,,5"=""
  170. "application/x-msclip,clp,,5"=""
  171. "application/octet-stream,exe,,5"=""
  172. "application/x-msexcel,xla,,5"=""
  173. "application/x-msexcel,xlc,,5"=""
  174. "application/x-msexcel,xlm,,5"=""
  175. "application/x-msexcel,xls,,5"=""
  176. "application/x-msexcel,xlt,,5"=""
  177. "application/x-msexcel,xlw,,5"=""
  178. "application/x-msmediaview,m13,,5"=""
  179. "application/x-msmediaview,m14,,5"=""
  180. "application/x-msmoney,mny,,5"=""
  181. "application/x-mspowerpoint,ppt,,5"=""
  182. "application/x-msproject,mpp,,5"=""
  183. "application/x-mspublisher,pub,,5"=""
  184. "application/x-msterminal,trm,,5"=""
  185. "application/x-msworks,wks,,5"=""
  186. "application/x-mswrite,wri,,5"=""
  187. "application/x-msmetafile,wmf,,5"=""
  188. "application/x-csh,csh,,5"=""
  189. "application/x-dvi,dvi,,5"=""
  190. "application/x-hdf,hdf,,5"=""
  191. "application/x-latex,latex,,5"=""
  192. "application/x-netcdf,nc,,5"=""
  193. "application/x-netcdf,cdf,,5"=""
  194. "application/x-sh,sh,,5"=""
  195. "application/x-tcl,tcl,,5"=""
  196. "application/x-tex,tex,,5"=""
  197. "application/x-texinfo,texinfo,,5"=""
  198. "application/x-texinfo,texi,,5"=""
  199. "application/x-troff,t,,5"=""
  200. "application/x-troff,tr,,5"=""
  201. "application/x-troff,roff,,5"=""
  202. "application/x-troff-man,man,,5"=""
  203. "application/x-troff-me,me,,5"=""
  204. "application/x-troff-ms,ms,,5"=""
  205. "application/x-wais-source,src,,7"=""
  206. "application/x-bcpio,bcpio,,5"=""
  207. "application/x-cpio,cpio,,5"=""
  208. "application/x-gtar,gtar,,9"=""
  209. "application/x-shar,shar,,5"=""
  210. "application/x-sv4cpio,sv4cpio,,5"=""
  211. "application/x-sv4crc,sv4crc,,5"=""
  212. "application/x-tar,tar,,5"=""
  213. "application/x-ustar,ustar,,5"=""
  214. "audio/basic,au,,<"=""
  215. "audio/basic,snd,,<"=""
  216. "audio/aiff,aif,,<"=""
  217. "audio/aiff,aiff,,<"=""
  218. "audio/aiff,aifc,,<"=""
  219. "audio/x-wav,wav,,<"=""
  220. "audio/x-pn-realaudio,ra,,<"=""
  221. "audio/x-pn-realaudio,ram,,<"=""
  222. "image/ief,ief,,:"=""
  223. "image/tiff,tiff,,:"=""
  224. "image/tiff,tif,,:"=""
  225. "image/x-cmu-raster,ras,,:"=""
  226. "image/x-portable-anymap,pnm,,:"=""
  227. "image/x-portable-bitmap,pbm,,:"=""
  228. "image/x-portable-graymap,pgm,,:"=""
  229. "image/x-portable-pixmap,ppm,,:"=""
  230. "image/x-xbitmap,xbm,,:"=""
  231. "image/x-xxpixmap,xpm,,:"=""
  232. "image/x-xwindowdump,xwd,,:"=""
  233. "text/html,stm,,h"=""
  234. "text/plain,bas,,0"=""
  235. "text/plain,c,,0"=""
  236. "text/plain,h,,0"=""
  237. "text/richtext,rtx,,0"=""
  238. "text/tab-separated-values,tsv,,0"=""
  239. "text/x-setext,etx,,0"=""
  240. "application/x-perfmon,pmc,,5"=""
  241. "application/x-perfmon,pma,,5"=""
  242. "application/x-perfmon,pmr,,5"=""
  243. "application/x-perfmon,pml,,5"=""
  244. "application/x-perfmon,pmw,,5"=""
  245. "application/octet-stream,bin,,5"=""
  246. [HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\MsFtpSvc]
  247. [HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\MsFtpSvc\Parameters]
  248. "MajorVersion"=hex:01
  249. "MinorVersion"=hex:01
  250. "AllowAnonymous"=hex:01
  251. "AllowGuestAccess"=hex:01
  252. "AnonymousUserName"="anonymous"
  253. "DebugFlags"=hex:ff,ff
  254. "ConnectionTimeOut"=hex:50,03
  255. "EnablePortAttack"=hex:00
  256. "ExitMessage"="Bye."
  257. "GreetingMessage"="Windows 95 FTP Service."
  258. "LogAnonymous"=hex:01
  259. "LogFileDirectory"="C:\\WINDOWS"
  260. "LogType"=hex:01
  261. "LogFilePeriod"=hex:01
  262. "MaxConnections"=hex:10
  263. "MaxClientsMessage"="The connection limit for this server has been reached. No more connections can be accepted at this time."
  264. "SecurityOn"=hex:00
  265. "MsdosDirOutput"=hex:00
  266. [HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\MsFtpSvc\Parameters\Virtual Roots]
  267. "/"="C:\\WebShare\\ftproot,,1"
  268. [HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\W3Svc]
  269. @=""
  270. "DisplayName"="Microsoft HTTP World Wide Web Server"
  271. "ErrorControl"=hex:01
  272. [HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\W3Svc\Parameters]
  273. "LogAnonymous"=hex:01
  274. "SecurePort"=hex:bb,01
  275. "ConnectionTimeout"=hex:58,02
  276. "Filter DLLs"="sspifilt.dll"
  277. "AccessDeniedMessage"="Access to this resource has been denied."
  278. "MajorVersion"=hex:00
  279. "MinorVersion"=hex:01
  280. "AdminName"="Administrator Name"
  281. "AdminEmail"="[email protected]"
  282. "AnonymousUserName"=""
  283. "Default Load File"="Default.htm"
  284. "Dir Browse Control"=hex:1e,00,00,c0
  285. "CacheExtensions"=hex:01
  286. "CheckForWAISDB"="1"
  287. "DebugFlags"=hex:ff,ff
  288. "Directory Image"="/images/dir.gif"
  289. "GlobalExpire"=hex:ff,ff,ff,ff
  290. "MaxConnections"=hex:2c,01
  291. "LogFileDirectory"="C:\\WINDOWS"
  292. "LogType"=hex:01
  293. "LogFilePeriod"=hex:03
  294. "LogFileTruncateSize"=hex:00,00,10
  295. "ServerAsProxy"=hex:00
  296. "ServerComment"="Server Comment"
  297. "ScriptTimeout"=hex:84,03
  298. "ServerSideIncludesEnabled"=hex:00
  299. "ServerSideIncludesExtension"=".stm"
  300. "CreateProcessAsUser"=hex:00
  301. "ReturnUrlUsingHostName"=hex:01
  302. "NTAuthenticationProviders"="NTLM"
  303. "Authorization"=dword:00000003
  304. [HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\W3Svc\Parameters\Virtual Roots]
  305. "/"="C:\\WebShare\\wwwroot,,1"
  306. "/Scripts"="C:\\WebShare\\scripts,,4"
  307. "/Htmla"="C:\\Program Files\\WebSvr\\Htmla,,1"
  308. "/Docs"="C:\\Program Files\\WebSvr\\Docs,,1"
  309. "/HtmlaScripts"="C:\\Program Files\\WebSvr\\Htmlascr,,4"
  310. [HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\W3Svc\Parameters\Script Map]
  311. ".idc"="C:\\WebShare\\Scripts\\httpodbc.dll"
  312. [HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\W3Svc\Parameters\Deny IP List]
  313. @=""
  314. [HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\W3Svc\Parameters\Grant IP List]
  315. @=""
  316. [HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\ASD\Prob\{CF2524C0-29AE-11CF-97EA-00AA0034319D}]
  317. "NETWORK\\MSWEBSVR\\0000"=hex:00
  318. [HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\ServiceProvider\ServiceTypes]
  319. [HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\ServiceProvider\ServiceTypes\MSFTPSVC]
  320. "TcpPort"=hex:15
  321. [HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\ServiceProvider\ServiceTypes\W3Svc]
  322. "TcpPort"=hex:50
  323. [HKEY_LOCAL_MACHINE\Enum\Network\MSTCP\0000\Bindings]
  324. "MSWEBSVR\\0000"=""
  325. [HKEY_LOCAL_MACHINE\Enum\Network\MSWEBSVR]
  326. [HKEY_LOCAL_MACHINE\Enum\Network\MSWEBSVR\0000]
  327. "Class"="NetService"
  328. "Driver"="NetService\\0000"
  329. "MasterCopy"="Enum\\Network\\MSWEBSVR\\0000"
  330. "DeviceDesc"="Personal Web Server"
  331. "CompatibleIDs"="MSWEBSVR"
  332. "Mfg"="Microsoft"
  333. "ClassGUID"="{4d36e974-e325-11ce-bfc1-08002be10318}"
  334. "ConfigFlags"=hex:10,00,00,00
  335. "Capabilities"=hex:14,00,00,00
  336. [HKEY_LOCAL_MACHINE\Enum\Network\MSWEBSVR\0000\Bindings]
  337. [HKEY_LOCAL_MACHINE\Security\Provider]
  338. "Platform_Type"=hex:02,00,00,00
  339. "Address_Book"="mswebab.dll"
  340. "NoCache"=hex:01
  341. [HKEY_LOCAL_MACHINE\Security\Provider\Platform_Type]
  342. @="."
  343. [HKEY_LOCAL_MACHINE\Security\ACCESS]
  344. [HKEY_LOCAL_MACHINE\Security\ACCESS\C:]
  345. [HKEY_LOCAL_MACHINE\Security\ACCESS\C:\WEBSHARE]
  346. [HKEY_LOCAL_MACHINE\Security\ACCESS\C:\WEBSHARE\WWWROOT]
  347. "*"=hex:81,80
  348. [HKEY_LOCAL_MACHINE\Security\ACCESS\C:\WEBSHARE\SCRIPTS]
  349. "*"=hex:81,80
  350. */