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.

89 lines
3.7 KiB

  1. ;-------------------------------------------------------------------------
  2. ; WZCSVC.INF -- Wireless Zero Configuration service
  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. 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. @@!b:StartType = 2 ;SERVICE_AUTO_START
  41. @b:StartType = 3 ;SERVICE_DEMAND_START
  42. ErrorControl = 1 ;SERVICE_ERROR_NORMAL
  43. Dependencies = RpcSs, Ndisuio
  44. Description = %WZCSVC_HelpText%
  45. AddReg = WZCSVC.ndi.Services.AddReg
  46. ServiceBinary = "%%SystemRoot%%\System32\svchost.exe -k netsvcs"
  47. LoadOrderGroup = TDI
  48. ;------------------------------------------------------------------------
  49. ; {Setup Registry
  50. [WZCSVC.ndi.Services.AddReg]
  51. HKR, Parameters, ServiceDll, 0x00020000, "%%SystemRoot%%\System32\wzcsvc.dll"
  52. HKR, Parameters, ServiceMain, 0x00000000, "WZCSvcMain"
  53. ;HKLM,"SYSTEM\CurrentControlSet\Services\Eventlog\Application\WZCSVC","EventMessageFile", 0x00020000,"%%SystemRoot%%\System32\wzcsvc.dll"
  54. ;HKLM,"SYSTEM\CurrentControlSet\Services\Eventlog\Application\WZCSVC","TypesSupported",0x00010001,7
  55. ;Tracing details
  56. ;HKLM,"Software\Microsoft\Tracing\WZCTrace","ConsoleTracingMask",0x00010001,0xffff0000
  57. ;HKLM,"Software\Microsoft\Tracing\WZCTrace","EnableConsoleTracing",0x00010001,0x00000000
  58. ;HKLM,"Software\Microsoft\Tracing\WZCTrace","FileTracingMask",0x00010001,0xffff0000
  59. ;HKLM,"Software\Microsoft\Tracing\WZCTrace","EnableFileTracing",0x00010001,0x00000000
  60. ;HKLM,"Software\Microsoft\Tracing\WZCTrace","FileDirectory",FLG_ADDREG_TYPE_EXPAND_SZ ,"%%SystemRoot%%\Tracing"
  61. ; Setup Registry}
  62. ;------------------------------------------------------------------------
  63. ;------------------------------------------------------------------------
  64. ; {Setup Event Logs
  65. [WZCSVC.ndi.AddEventLog]
  66. AddReg = WZCSVC.ndi.AddEventLog.AddReg
  67. [WZCSVC.ndi.AddEventLog.AddReg]
  68. HKR, , "EventMessageFile", 0x20000, "%%SystemRoot%%\System32\wzcsvc.dll"
  69. HKR, , "TypesSupported", 0x10001, 7
  70. ; Setup Event Logs}
  71. ;------------------------------------------------------------------------
  72. ; Setup WZC Service}
  73. ;========================================================================
  74. ;========================================================================
  75. ; {Cleanup WZC Service
  76. [WZCSVC.ndi.Remove.Services]
  77. DelService=WZCSVC,0x200
  78. ; Cleanup WZC Service}
  79. ;========================================================================