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.

152 lines
4.3 KiB

  1. [Version]
  2. Signature="$WINDOWS NT$"
  3. Class=Battery
  4. ClassGuid={72631e54-78a4-11d0-bcf7-00aa00b7b32a}
  5. Provider=%MSFT%
  6. LayoutFile=layout.inf
  7. [class_copyfiles]
  8. batt.dll
  9. [DestinationDirs]
  10. class_copyfiles= 11
  11. DefaultDestDir = 12
  12. [ControlFlags]
  13. ;
  14. ; Exclude all devices from Select Device list
  15. ;
  16. ExcludeFromSelect = *
  17. [ClassInstall32]
  18. AddReg=System_Class_Addreg
  19. CopyFiles = class_copyfiles
  20. [System_Class_Addreg]
  21. HKR,,,%REG_SZ%,%BatteryClassName%
  22. HKR,,Icon,%REG_SZ%,"2"
  23. HKR,,Installer32,%REG_SZ%,"Batt.dll,BatteryClassInstall"
  24. HKR,,NoInstallClass,,1
  25. HKLM,SYSTEM\CurrentControlSet\Services\BattC,MofImagePath,%REG_EXPAND_SZ%,"System32\Drivers\battc.sys"
  26. HKLM,SYSTEM\CurrentControlSet\Control\CoDeviceInstallers,{72631e54-78a4-11d0-bcf7-00aa00b7b32a},%REG_APPEND_MULTI_SZ%,"Batt.dll,BatteryClassCoInstaller"
  27. [Manufacturer]
  28. %MSFT%=Microsoft
  29. [Microsoft]
  30. @@:@i:%ACPI\pnp0c0A.DeviceDesc% = CmBatt_Inst,ACPI\pnp0C0A
  31. @@:@i:%ACPI\acpi0002.DeviceDesc% = SMBBSUB_Inst,ACPI\acpi0002
  32. @@:@i:%SMBBATT\SMART_BATTERY.DeviceDesc% = SMBBATT_Inst,SMBBATT\SMART_BATTERY
  33. @@:@i:%ACPI\acpi0003.DeviceDesc% = AcAdapter_Inst,ACPI\acpi0003
  34. @w:@i:%NTAPM\APMBATT.DeviceDesc% = ApmBatt_Inst,NTAPM\APMBATT
  35. %HID_DEVICE_BATTERY.DeviceDesc% = HidBatt_Inst,HID_DEVICE_UP:0084_U:0004
  36. %PowerWareUPS.DeviceDesc% = NO_DRV,SERENUM\DEL0001
  37. %PowerWareUPS.DeviceDesc% = NO_DRV,SERENUM\EXI0001
  38. %PowerWareUPS.DeviceDesc% = NO_DRV,SERENUM\FPS0001
  39. %APC.DeviceDesc% = NO_DRV,SERENUM\APC0000
  40. %APC.DeviceDesc% = NO_DRV,SERENUM\APC0001
  41. %APC.DeviceDesc% = NO_DRV,SERENUM\APC0002
  42. %APC.DeviceDesc% = NO_DRV,SERENUM\APC0003
  43. [HidBatt_Inst]
  44. CopyFiles = @hidbatt.sys
  45. CopyFiles = @battc.sys
  46. [HidBatt_Inst.Services]
  47. AddService=HidBatt,%SPSVCINST_ASSOCSERVICE%,HidBatt_Service_Inst
  48. [HidBatt_Service_Inst]
  49. DisplayName = %HidBatt.SvcDesc%
  50. ServiceType = %SERVICE_KERNEL_DRIVER%
  51. StartType = %SERVICE_DEMAND_START%
  52. ErrorControl = %SERVICE_ERROR_NORMAL%
  53. ServiceBinary = %12%\HidBatt.sys
  54. @w:@i:[ApmBatt_Inst]
  55. @w:@i:CopyFiles = @apmbatt.sys
  56. @w:@i:CopyFiles = @battc.sys
  57. @w:@i:[ApmBatt_Inst.Services]
  58. @w:@i:AddService = apmbatt,%SPSVCINST_ASSOCSERVICE%,ApmBatt_Service_Inst
  59. @w:@i:[ApmBatt_Service_Inst]
  60. @w:@i:DisplayName = %ApmBatt.SvcDesc%
  61. @w:@i:ServiceType = %SERVICE_KERNEL_DRIVER%
  62. @w:@i:StartType = %SERVICE_DEMAND_START%
  63. @w:@i:ErrorControl = %SERVICE_ERROR_NORMAL%
  64. @w:@i:ServiceBinary = %12%\apmbatt.sys
  65. @@:@i:[CmBatt_Inst]
  66. @@:@i:AddReg=CmBatt_Addreg
  67. @@:@i:CopyFiles = @CmBatt.sys
  68. @@:@i:CopyFiles = @battc.sys
  69. @@:@i:[CmBatt_Addreg]
  70. @@:@i:HKR,,PowerSourceType,%REG_BINARY%,00,00,00,00
  71. @@:@i:[CmBatt_Inst.Services]
  72. @@:@i:AddService = CmBatt,%SPSVCINST_ASSOCSERVICE%,CmBatt_Service_Inst
  73. @@:@i:[CmBatt_Service_Inst]
  74. @@:@i:DisplayName = %CmBatt.SvcDesc%
  75. @@:@i:ServiceType = %SERVICE_KERNEL_DRIVER%
  76. @@:@i:StartType = %SERVICE_DEMAND_START%
  77. @@:@i:ErrorControl = %SERVICE_ERROR_NORMAL%
  78. @@:@i:ServiceBinary = %12%\CmBatt.sys
  79. @@:@i:[SMBBSUB_Inst]
  80. @@:@i:Copyfiles = @smbbatt.sys
  81. @@:@i:[SMBBSUB_Inst.Services]
  82. @@:@i:AddService = SMBBATT,%SPSVCINST_ASSOCSERVICE%,SMBBSUB_Service_Inst
  83. @@:@i:[SMBBSUB_Service_Inst]
  84. @@:@i:DisplayName = %SMBBSUB.SvcDesc%
  85. @@:@i:ServiceType = %SERVICE_KERNEL_DRIVER%
  86. @@:@i:StartType = %SERVICE_DEMAND_START%
  87. @@:@i:ErrorControl = %SERVICE_ERROR_NORMAL%
  88. @@:@i:ServiceBinary = %12%\SMBBATT.sys
  89. @@:@i:[SMBBATT_Inst]
  90. @@:@i:Copyfiles = @smbbatt.sys
  91. @@:@i:Copyfiles = @battc.sys
  92. @@:@i:[SMBBATT_Inst.Services]
  93. @@:@i:AddService = SMBBATT,%SPSVCINST_ASSOCSERVICE%,SMBBATT_Service_Inst
  94. @@:@i:[SMBBATT_Service_Inst]
  95. @@:@i:DisplayName = %SMBBATT.SvcDesc%
  96. @@:@i:ServiceType = %SERVICE_KERNEL_DRIVER%
  97. @@:@i:StartType = %SERVICE_DEMAND_START%
  98. @@:@i:ErrorControl = %SERVICE_ERROR_NORMAL%
  99. @@:@i:ServiceBinary = %12%\SMBBATT.sys
  100. @@:@i:[AcAdapter_Inst]
  101. @@:@i:AddReg=AcAdapter_Addreg
  102. @@:@i:CopyFiles = @CmBatt.sys
  103. @@:@i:CopyFiles = @battc.sys
  104. @@:@i:[AcAdapter_Addreg]
  105. @@:@i:HKR,,PowerSourceType,%REG_BINARY%,01,00,00,00
  106. @@:@i:[AcAdapter_Inst.Services]
  107. @@:@i:AddService = CmBatt,%SPSVCINST_ASSOCSERVICE%,AcAdapter_Service_Inst
  108. @@:@i:[AcAdapter_Service_Inst]
  109. @@:@i:DisplayName = %AcAdapter.SvcDesc%
  110. @@:@i:ServiceType = %SERVICE_KERNEL_DRIVER%
  111. @@:@i:StartType = %SERVICE_DEMAND_START%
  112. @@:@i:ErrorControl = %SERVICE_ERROR_NORMAL%
  113. @@:@i:ServiceBinary = %12%\CmBatt.sys
  114. [NO_DRV]
  115. [NO_DRV.Services]
  116. AddService = , %SPSVCINST_ASSOCSERVICE% ; null service install