windows-nt/Source/XPSP1/NT/mergedcomponents/setupinfs/battery.inx
2020-09-26 16:20:57 +08:00

153 lines
4.3 KiB
Plaintext

[Version]
Signature="$WINDOWS NT$"
Class=Battery
ClassGuid={72631e54-78a4-11d0-bcf7-00aa00b7b32a}
Provider=%MSFT%
LayoutFile=layout.inf
[class_copyfiles]
batt.dll
[DestinationDirs]
class_copyfiles= 11
DefaultDestDir = 12
[ControlFlags]
;
; Exclude all devices from Select Device list
;
ExcludeFromSelect = *
[ClassInstall32]
AddReg=System_Class_Addreg
CopyFiles = class_copyfiles
[System_Class_Addreg]
HKR,,,%REG_SZ%,%BatteryClassName%
HKR,,Icon,%REG_SZ%,"2"
HKR,,Installer32,%REG_SZ%,"Batt.dll,BatteryClassInstall"
HKR,,NoInstallClass,,1
HKLM,SYSTEM\CurrentControlSet\Services\BattC,MofImagePath,%REG_EXPAND_SZ%,"System32\Drivers\battc.sys"
HKLM,SYSTEM\CurrentControlSet\Control\CoDeviceInstallers,{72631e54-78a4-11d0-bcf7-00aa00b7b32a},%REG_APPEND_MULTI_SZ%,"Batt.dll,BatteryClassCoInstaller"
[Manufacturer]
%MSFT%=Microsoft
[Microsoft]
@@:@i:%ACPI\pnp0c0A.DeviceDesc% = CmBatt_Inst,ACPI\pnp0C0A
@@:@i:%ACPI\acpi0002.DeviceDesc% = SMBBSUB_Inst,ACPI\acpi0002
@@:@i:%SMBBATT\SMART_BATTERY.DeviceDesc% = SMBBATT_Inst,SMBBATT\SMART_BATTERY
@@:@i:%ACPI\acpi0003.DeviceDesc% = AcAdapter_Inst,ACPI\acpi0003
@w:@i:%NTAPM\APMBATT.DeviceDesc% = ApmBatt_Inst,NTAPM\APMBATT
%HID_DEVICE_BATTERY.DeviceDesc% = HidBatt_Inst,HID_DEVICE_UP:0084_U:0004
%PowerWareUPS.DeviceDesc% = NO_DRV,SERENUM\DEL0001
%PowerWareUPS.DeviceDesc% = NO_DRV,SERENUM\EXI0001
%PowerWareUPS.DeviceDesc% = NO_DRV,SERENUM\FPS0001
%APC.DeviceDesc% = NO_DRV,SERENUM\APC0000
%APC.DeviceDesc% = NO_DRV,SERENUM\APC0001
%APC.DeviceDesc% = NO_DRV,SERENUM\APC0002
%APC.DeviceDesc% = NO_DRV,SERENUM\APC0003
[HidBatt_Inst]
CopyFiles = @hidbatt.sys
CopyFiles = @battc.sys
[HidBatt_Inst.Services]
AddService=HidBatt,%SPSVCINST_ASSOCSERVICE%,HidBatt_Service_Inst
[HidBatt_Service_Inst]
DisplayName = %HidBatt.SvcDesc%
ServiceType = %SERVICE_KERNEL_DRIVER%
StartType = %SERVICE_DEMAND_START%
ErrorControl = %SERVICE_ERROR_NORMAL%
ServiceBinary = %12%\HidBatt.sys
@w:@i:[ApmBatt_Inst]
@w:@i:CopyFiles = @apmbatt.sys
@w:@i:CopyFiles = @battc.sys
@w:@i:[ApmBatt_Inst.Services]
@w:@i:AddService = apmbatt,%SPSVCINST_ASSOCSERVICE%,ApmBatt_Service_Inst
@w:@i:[ApmBatt_Service_Inst]
@w:@i:DisplayName = %ApmBatt.SvcDesc%
@w:@i:ServiceType = %SERVICE_KERNEL_DRIVER%
@w:@i:StartType = %SERVICE_DEMAND_START%
@w:@i:ErrorControl = %SERVICE_ERROR_NORMAL%
@w:@i:ServiceBinary = %12%\apmbatt.sys
@@:@i:[CmBatt_Inst]
@@:@i:AddReg=CmBatt_Addreg
@@:@i:CopyFiles = @CmBatt.sys
@@:@i:CopyFiles = @battc.sys
@@:@i:[CmBatt_Addreg]
@@:@i:HKR,,PowerSourceType,%REG_BINARY%,00,00,00,00
@@:@i:[CmBatt_Inst.Services]
@@:@i:AddService = CmBatt,%SPSVCINST_ASSOCSERVICE%,CmBatt_Service_Inst
@@:@i:[CmBatt_Service_Inst]
@@:@i:DisplayName = %CmBatt.SvcDesc%
@@:@i:ServiceType = %SERVICE_KERNEL_DRIVER%
@@:@i:StartType = %SERVICE_DEMAND_START%
@@:@i:ErrorControl = %SERVICE_ERROR_NORMAL%
@@:@i:ServiceBinary = %12%\CmBatt.sys
@@:@i:[SMBBSUB_Inst]
@@:@i:Copyfiles = @smbbatt.sys
@@:@i:[SMBBSUB_Inst.Services]
@@:@i:AddService = SMBBATT,%SPSVCINST_ASSOCSERVICE%,SMBBSUB_Service_Inst
@@:@i:[SMBBSUB_Service_Inst]
@@:@i:DisplayName = %SMBBSUB.SvcDesc%
@@:@i:ServiceType = %SERVICE_KERNEL_DRIVER%
@@:@i:StartType = %SERVICE_DEMAND_START%
@@:@i:ErrorControl = %SERVICE_ERROR_NORMAL%
@@:@i:ServiceBinary = %12%\SMBBATT.sys
@@:@i:[SMBBATT_Inst]
@@:@i:Copyfiles = @smbbatt.sys
@@:@i:Copyfiles = @battc.sys
@@:@i:[SMBBATT_Inst.Services]
@@:@i:AddService = SMBBATT,%SPSVCINST_ASSOCSERVICE%,SMBBATT_Service_Inst
@@:@i:[SMBBATT_Service_Inst]
@@:@i:DisplayName = %SMBBATT.SvcDesc%
@@:@i:ServiceType = %SERVICE_KERNEL_DRIVER%
@@:@i:StartType = %SERVICE_DEMAND_START%
@@:@i:ErrorControl = %SERVICE_ERROR_NORMAL%
@@:@i:ServiceBinary = %12%\SMBBATT.sys
@@:@i:[AcAdapter_Inst]
@@:@i:AddReg=AcAdapter_Addreg
@@:@i:CopyFiles = @CmBatt.sys
@@:@i:CopyFiles = @battc.sys
@@:@i:[AcAdapter_Addreg]
@@:@i:HKR,,PowerSourceType,%REG_BINARY%,01,00,00,00
@@:@i:[AcAdapter_Inst.Services]
@@:@i:AddService = CmBatt,%SPSVCINST_ASSOCSERVICE%,AcAdapter_Service_Inst
@@:@i:[AcAdapter_Service_Inst]
@@:@i:DisplayName = %AcAdapter.SvcDesc%
@@:@i:ServiceType = %SERVICE_KERNEL_DRIVER%
@@:@i:StartType = %SERVICE_DEMAND_START%
@@:@i:ErrorControl = %SERVICE_ERROR_NORMAL%
@@:@i:ServiceBinary = %12%\CmBatt.sys
[NO_DRV]
[NO_DRV.Services]
AddService = , %SPSVCINST_ASSOCSERVICE% ; null service install