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.

225 lines
8.8 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. HKLM,"SYSTEM\CurrentControlSet\Control\WMI\Security","fc4670d1-ebbf-416e-87ce-374a4ebc111a",0x00030003,\
  28. 01,00,04,80,14,00,00,00,24,00,00,00,00,00,00,00,\
  29. 34,00,00,00,01,02,00,00,00,00,00,05,20,00,00,00,\
  30. 20,02,00,00,01,02,00,00,00,00,00,05,20,00,00,00,\
  31. 20,02,00,00,02,00,48,00,03,00,00,00,00,00,18,00,\
  32. ff,0f,12,00,01,02,00,00,00,00,00,05,20,00,00,00,\
  33. 20,02,00,00,00,00,14,00,01,00,00,00,01,01,00,00,\
  34. 00,00,00,05,0b,00,00,00,00,00,14,00,ff,0f,12,00,\
  35. 01,01,00,00,00,00,00,05,12,00,00,00
  36. HKLM,"SYSTEM\CurrentControlSet\Control\WMI\Security","535a3767-1ac2-49bc-a077-3f7a02e40aec",0x00030003,\
  37. 01,00,04,80,14,00,00,00,24,00,00,00,00,00,00,00,\
  38. 34,00,00,00,01,02,00,00,00,00,00,05,20,00,00,00,\
  39. 20,02,00,00,01,02,00,00,00,00,00,05,20,00,00,00,\
  40. 20,02,00,00,02,00,48,00,03,00,00,00,00,00,18,00,\
  41. ff,0f,12,00,01,02,00,00,00,00,00,05,20,00,00,00,\
  42. 20,02,00,00,00,00,14,00,01,00,00,00,01,01,00,00,\
  43. 00,00,00,05,0b,00,00,00,00,00,14,00,ff,0f,12,00,\
  44. 01,01,00,00,00,00,00,05,12,00,00,00
  45. HKLM,"SYSTEM\CurrentControlSet\Control\WMI\Security","1a52a14d-adce-4a44-9a3e-c8d8f15ff2c2",0x00030003,\
  46. 01,00,04,80,14,00,00,00,24,00,00,00,00,00,00,00,\
  47. 34,00,00,00,01,02,00,00,00,00,00,05,20,00,00,00,\
  48. 20,02,00,00,01,02,00,00,00,00,00,05,20,00,00,00,\
  49. 20,02,00,00,02,00,48,00,03,00,00,00,00,00,18,00,\
  50. ff,0f,12,00,01,02,00,00,00,00,00,05,20,00,00,00,\
  51. 20,02,00,00,00,00,14,00,01,00,00,00,01,01,00,00,\
  52. 00,00,00,05,0b,00,00,00,00,00,14,00,ff,0f,12,00,\
  53. 01,01,00,00,00,00,00,05,12,00,00,00
  54. HKLM,"SYSTEM\CurrentControlSet\Control\WMI\Security","40b40565-96f7-4435-8694-97e0e4395905",0x00030003,\
  55. 01,00,04,80,14,00,00,00,24,00,00,00,00,00,00,00,\
  56. 34,00,00,00,01,02,00,00,00,00,00,05,20,00,00,00,\
  57. 20,02,00,00,01,02,00,00,00,00,00,05,20,00,00,00,\
  58. 20,02,00,00,02,00,48,00,03,00,00,00,00,00,18,00,\
  59. ff,0f,12,00,01,02,00,00,00,00,00,05,20,00,00,00,\
  60. 20,02,00,00,00,00,14,00,01,00,00,00,01,01,00,00,\
  61. 00,00,00,05,0b,00,00,00,00,00,14,00,ff,0f,12,00,\
  62. 01,01,00,00,00,00,00,05,12,00,00,00
  63. HKLM,"SYSTEM\CurrentControlSet\Control\WMI\Security","ef98db24-0014-4c25-a50b-c724ae5cd371",0x00030003,\
  64. 01,00,04,80,14,00,00,00,24,00,00,00,00,00,00,00,\
  65. 34,00,00,00,01,02,00,00,00,00,00,05,20,00,00,00,\
  66. 20,02,00,00,01,02,00,00,00,00,00,05,20,00,00,00,\
  67. 20,02,00,00,02,00,48,00,03,00,00,00,00,00,18,00,\
  68. ff,0f,12,00,01,02,00,00,00,00,00,05,20,00,00,00,\
  69. 20,02,00,00,00,00,14,00,01,00,00,00,01,01,00,00,\
  70. 00,00,00,05,0b,00,00,00,00,00,14,00,ff,0f,12,00,\
  71. 01,01,00,00,00,00,00,05,12,00,00,00
  72. HKLM,"SYSTEM\CurrentControlSet\Control\WMI\Security","05e1e463-e4e2-4ea9-80cb-9bd4b3ca0655",0x00030003,\
  73. 01,00,04,80,14,00,00,00,24,00,00,00,00,00,00,00,\
  74. 34,00,00,00,01,02,00,00,00,00,00,05,20,00,00,00,\
  75. 20,02,00,00,01,02,00,00,00,00,00,05,20,00,00,00,\
  76. 20,02,00,00,02,00,48,00,03,00,00,00,00,00,18,00,\
  77. ff,0f,12,00,01,02,00,00,00,00,00,05,20,00,00,00,\
  78. 20,02,00,00,00,00,14,00,01,00,00,00,01,01,00,00,\
  79. 00,00,00,05,0b,00,00,00,00,00,14,00,ff,0f,12,00,\
  80. 01,01,00,00,00,00,00,05,12,00,00,00
  81. HKLM,"SYSTEM\CurrentControlSet\Control\WMI\Security","cddfa0c3-7c5b-4e43-a034-059fa5b84364",0x00030003,\
  82. 01,00,04,80,14,00,00,00,24,00,00,00,00,00,00,00,\
  83. 34,00,00,00,01,02,00,00,00,00,00,05,20,00,00,00,\
  84. 20,02,00,00,01,02,00,00,00,00,00,05,20,00,00,00,\
  85. 20,02,00,00,02,00,48,00,03,00,00,00,00,00,18,00,\
  86. ff,0f,12,00,01,02,00,00,00,00,00,05,20,00,00,00,\
  87. 20,02,00,00,00,00,14,00,01,00,00,00,01,01,00,00,\
  88. 00,00,00,05,0b,00,00,00,00,00,14,00,ff,0f,12,00,\
  89. 01,01,00,00,00,00,00,05,12,00,00,00
  90. HKLM,"SYSTEM\CurrentControlSet\Control\WMI\Security","5e1f6e19-8786-4d23-94fc-9e746bd5d888",0x00030003,\
  91. 01,00,04,80,14,00,00,00,24,00,00,00,00,00,00,00,\
  92. 34,00,00,00,01,02,00,00,00,00,00,05,20,00,00,00,\
  93. 20,02,00,00,01,02,00,00,00,00,00,05,20,00,00,00,\
  94. 20,02,00,00,02,00,48,00,03,00,00,00,00,00,18,00,\
  95. ff,0f,12,00,01,02,00,00,00,00,00,05,20,00,00,00,\
  96. 20,02,00,00,00,00,14,00,01,00,00,00,01,01,00,00,\
  97. 00,00,00,05,0b,00,00,00,00,00,14,00,ff,0f,12,00,\
  98. 01,01,00,00,00,00,00,05,12,00,00,00
  99. [Manufacturer]
  100. %MSFT%=Microsoft
  101. [Microsoft]
  102. @@:@i:%ACPI\pnp0c0A.DeviceDesc% = CmBatt_Inst,ACPI\pnp0C0A
  103. @@:@i:%ACPI\acpi0002.DeviceDesc% = SMBBSUB_Inst,ACPI\acpi0002
  104. @@:@i:%SMBBATT\SMART_BATTERY.DeviceDesc% = SMBBATT_Inst,SMBBATT\SMART_BATTERY
  105. @@:@i:%ACPI\acpi0003.DeviceDesc% = AcAdapter_Inst,ACPI\acpi0003
  106. @w:@i:%NTAPM\APMBATT.DeviceDesc% = ApmBatt_Inst,NTAPM\APMBATT
  107. %HID_DEVICE_BATTERY.DeviceDesc% = HidBatt_Inst,HID_DEVICE_UP:0084_U:0004
  108. %PowerWareUPS.DeviceDesc% = NO_DRV,SERENUM\DEL0001
  109. %PowerWareUPS.DeviceDesc% = NO_DRV,SERENUM\EXI0001
  110. %PowerWareUPS.DeviceDesc% = NO_DRV,SERENUM\FPS0001
  111. %APC.DeviceDesc% = NO_DRV,SERENUM\APC0000
  112. %APC.DeviceDesc% = NO_DRV,SERENUM\APC0001
  113. %APC.DeviceDesc% = NO_DRV,SERENUM\APC0002
  114. %APC.DeviceDesc% = NO_DRV,SERENUM\APC0003
  115. [HidBatt_Inst]
  116. CopyFiles = @hidbatt.sys
  117. CopyFiles = @battc.sys
  118. [HidBatt_Inst.Services]
  119. AddService=HidBatt,%SPSVCINST_ASSOCSERVICE%,HidBatt_Service_Inst
  120. [HidBatt_Service_Inst]
  121. DisplayName = %HidBatt.SvcDesc%
  122. ServiceType = %SERVICE_KERNEL_DRIVER%
  123. StartType = %SERVICE_DEMAND_START%
  124. ErrorControl = %SERVICE_ERROR_NORMAL%
  125. ServiceBinary = %12%\HidBatt.sys
  126. @w:@i:[ApmBatt_Inst]
  127. @w:@i:CopyFiles = @apmbatt.sys
  128. @w:@i:CopyFiles = @battc.sys
  129. @w:@i:[ApmBatt_Inst.Services]
  130. @w:@i:AddService = apmbatt,%SPSVCINST_ASSOCSERVICE%,ApmBatt_Service_Inst
  131. @w:@i:[ApmBatt_Service_Inst]
  132. @w:@i:DisplayName = %ApmBatt.SvcDesc%
  133. @w:@i:ServiceType = %SERVICE_KERNEL_DRIVER%
  134. @w:@i:StartType = %SERVICE_DEMAND_START%
  135. @w:@i:ErrorControl = %SERVICE_ERROR_NORMAL%
  136. @w:@i:ServiceBinary = %12%\apmbatt.sys
  137. @@:@i:[CmBatt_Inst]
  138. @@:@i:AddReg=CmBatt_Addreg
  139. @@:@i:CopyFiles = @CmBatt.sys
  140. @@:@i:CopyFiles = @battc.sys
  141. @@:@i:[CmBatt_Addreg]
  142. @@:@i:HKR,,PowerSourceType,%REG_BINARY%,00,00,00,00
  143. @@:@i:[CmBatt_Inst.Services]
  144. @@:@i:AddService = CmBatt,%SPSVCINST_ASSOCSERVICE%,CmBatt_Service_Inst
  145. @@:@i:[CmBatt_Service_Inst]
  146. @@:@i:DisplayName = %CmBatt.SvcDesc%
  147. @@:@i:ServiceType = %SERVICE_KERNEL_DRIVER%
  148. @@:@i:StartType = %SERVICE_DEMAND_START%
  149. @@:@i:ErrorControl = %SERVICE_ERROR_NORMAL%
  150. @@:@i:ServiceBinary = %12%\CmBatt.sys
  151. @@:@i:[SMBBSUB_Inst]
  152. @@:@i:Copyfiles = @smbbatt.sys
  153. @@:@i:[SMBBSUB_Inst.Services]
  154. @@:@i:AddService = SMBBATT,%SPSVCINST_ASSOCSERVICE%,SMBBSUB_Service_Inst
  155. @@:@i:[SMBBSUB_Service_Inst]
  156. @@:@i:DisplayName = %SMBBSUB.SvcDesc%
  157. @@:@i:ServiceType = %SERVICE_KERNEL_DRIVER%
  158. @@:@i:StartType = %SERVICE_DEMAND_START%
  159. @@:@i:ErrorControl = %SERVICE_ERROR_NORMAL%
  160. @@:@i:ServiceBinary = %12%\SMBBATT.sys
  161. @@:@i:[SMBBATT_Inst]
  162. @@:@i:Copyfiles = @smbbatt.sys
  163. @@:@i:Copyfiles = @battc.sys
  164. @@:@i:[SMBBATT_Inst.Services]
  165. @@:@i:AddService = SMBBATT,%SPSVCINST_ASSOCSERVICE%,SMBBATT_Service_Inst
  166. @@:@i:[SMBBATT_Service_Inst]
  167. @@:@i:DisplayName = %SMBBATT.SvcDesc%
  168. @@:@i:ServiceType = %SERVICE_KERNEL_DRIVER%
  169. @@:@i:StartType = %SERVICE_DEMAND_START%
  170. @@:@i:ErrorControl = %SERVICE_ERROR_NORMAL%
  171. @@:@i:ServiceBinary = %12%\SMBBATT.sys
  172. @@:@i:[AcAdapter_Inst]
  173. @@:@i:AddReg=AcAdapter_Addreg
  174. @@:@i:CopyFiles = @CmBatt.sys
  175. @@:@i:CopyFiles = @battc.sys
  176. @@:@i:[AcAdapter_Addreg]
  177. @@:@i:HKR,,PowerSourceType,%REG_BINARY%,01,00,00,00
  178. @@:@i:[AcAdapter_Inst.Services]
  179. @@:@i:AddService = CmBatt,%SPSVCINST_ASSOCSERVICE%,AcAdapter_Service_Inst
  180. @@:@i:[AcAdapter_Service_Inst]
  181. @@:@i:DisplayName = %AcAdapter.SvcDesc%
  182. @@:@i:ServiceType = %SERVICE_KERNEL_DRIVER%
  183. @@:@i:StartType = %SERVICE_DEMAND_START%
  184. @@:@i:ErrorControl = %SERVICE_ERROR_NORMAL%
  185. @@:@i:ServiceBinary = %12%\CmBatt.sys
  186. [NO_DRV]
  187. [NO_DRV.Services]
  188. AddService = , %SPSVCINST_ASSOCSERVICE% ; null service install