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.

88 lines
3.6 KiB

  1. ;-------------------------------------------------------------------------
  2. ; WZCSVC.INF -- Wireless Zero Configuration service
  3. ;
  4. ; Copyright (c) 2001, Microsoft Corporation
  5. ;-------------------------------------------------------------------------
  6. [version]
  7. Signature = "$Windows NT$"
  8. Class = NetService
  9. ClassGUID = {4D36E974-E325-11CE-BFC1-08002BE10318}
  10. LayoutFile = layout.inf
  11. Provider = %Msft%
  12. [Manufacturer]
  13. %Msft%=MSFT
  14. [MSFT]
  15. %WZCSVC_Desc%=WZCSVC.ndi, MS_WZCSVC
  16. [WZCSVC.ndi]
  17. AddReg=WZCSVC.ndi.AddReg
  18. Characteristics=0x28 ; NCF_HIDDEN | NCF_NOT_USER_REMOVABLE
  19. CopyFiles=WZCSVC_files
  20. [WZCSVC.ndi.AddReg]
  21. HKR, Ndi, Service, , "wzcsvc"
  22. HKR, Ndi\Interfaces, UpperRange, , "noupper"
  23. HKR, Ndi\Interfaces, LowerRange, , "nolower"
  24. ;-------------------------------------------------------------------------
  25. ; Declare Destination Directories for file copy/deletion
  26. [DestinationDirs]
  27. WZCSVC_files = 11 ; System directory
  28. ;-------------------------------------------------------------------------
  29. ; Files to Copy/Delete
  30. [WZCSVC_files]
  31. wzcsvc.dll,,,2 ; 2 = Setup critical; don't allow the user
  32. wzcsapi.dll,,,2 ; to skip the file
  33. [WZCSVC.ndi.Services]
  34. AddService = WZCSVC, 0x10, WZCSVC.ndi.AddService, WZCSVC.ndi.AddEventLog
  35. ;========================================================================
  36. ; {Setup WZC Service
  37. [WZCSVC.ndi.AddService]
  38. DisplayName = %WZCSVC_Desc%
  39. ServiceType = 0x20 ;SERVICE_WIN32_SHARE_PROCESS
  40. StartType = 2 ;SERVICE_AUTO_START
  41. ErrorControl = 1 ;SERVICE_ERROR_NORMAL
  42. Dependencies = RpcSs, Ndisuio
  43. Description = %WZCSVC_HelpText%
  44. AddReg = WZCSVC.ndi.Services.AddReg
  45. ServiceBinary = "%%SystemRoot%%\System32\svchost.exe -k netsvcs"
  46. LoadOrderGroup = TDI
  47. ;------------------------------------------------------------------------
  48. ; {Setup Registry
  49. [WZCSVC.ndi.Services.AddReg]
  50. HKR, Parameters, ServiceDll, 0x00020000, "%%SystemRoot%%\System32\wzcsvc.dll"
  51. HKR, Parameters, ServiceMain, 0x00000000, "WZCSvcMain"
  52. ;HKLM,"SYSTEM\CurrentControlSet\Services\Eventlog\Application\WZCSVC","EventMessageFile", 0x00020000,"%%SystemRoot%%\System32\wzcsvc.dll"
  53. ;HKLM,"SYSTEM\CurrentControlSet\Services\Eventlog\Application\WZCSVC","TypesSupported",0x00010001,7
  54. ;Tracing details
  55. ;HKLM,"Software\Microsoft\Tracing\WZCTrace","ConsoleTracingMask",0x00010001,0xffff0000
  56. ;HKLM,"Software\Microsoft\Tracing\WZCTrace","EnableConsoleTracing",0x00010001,0x00000000
  57. ;HKLM,"Software\Microsoft\Tracing\WZCTrace","FileTracingMask",0x00010001,0xffff0000
  58. ;HKLM,"Software\Microsoft\Tracing\WZCTrace","EnableFileTracing",0x00010001,0x00000000
  59. ;HKLM,"Software\Microsoft\Tracing\WZCTrace","FileDirectory",FLG_ADDREG_TYPE_EXPAND_SZ ,"%%SystemRoot%%\Tracing"
  60. ; Setup Registry}
  61. ;------------------------------------------------------------------------
  62. ;------------------------------------------------------------------------
  63. ; {Setup Event Logs
  64. [WZCSVC.ndi.AddEventLog]
  65. AddReg = WZCSVC.ndi.AddEventLog.AddReg
  66. [WZCSVC.ndi.AddEventLog.AddReg]
  67. HKR, , "EventMessageFile", 0x20000, "%%SystemRoot%%\System32\wzcsvc.dll"
  68. HKR, , "TypesSupported", 0x10001, 7
  69. ; Setup Event Logs}
  70. ;------------------------------------------------------------------------
  71. ; Setup WZC Service}
  72. ;========================================================================
  73. ;========================================================================
  74. ; {Cleanup WZC Service
  75. [WZCSVC.ndi.Remove.Services]
  76. DelService=WZCSVC
  77. ; Cleanup WZC Service}
  78. ;========================================================================