 ;/*++
;
;Copyright (c) Microsoft Corporation All rights Reserved
;
;Module Name:
;
;    SurfaceBatteryMiniport.inf
;
;Abstract:
;
;    INF file for installing Surface Battery Miniport driver.
;
;--*/

[Version]
Signature="$WINDOWS NT$"
Class=Battery
ClassGuid={72631e54-78a4-11d0-bcf7-00aa00b7b32a}
Provider=%ProviderName%
DriverVer = 11/07/2024,0.0.15.0
CatalogFile=SurfaceBatteryMiniport.cat
PnpLockdown=1

[DestinationDirs]
DefaultDestDir = 13

[SourceDisksNames]
1 = %DiskId1%,,,""

[SourceDisksFiles]
SurfaceBatteryMiniport.sys  = 1,,

;*****************************************
; Surface Battery Mini Port Install Section
;*****************************************

[Manufacturer]
%ProviderName%=Standard,NTamd64.10.0...19041

[Standard.NTamd64.10.0...19041]
%SurfaceBatteryMiniport.DeviceDesc% = SurfaceBatteryMiniport_Device, {4AC6B371-5C32-41C4-A184-057DD7B02F7F}\SurfaceBatteryMiniport

[SurfaceBatteryMiniport_Device.NT]
CopyFiles=SurfaceBatteryMiniport_Device_Drivers
Include=battery.inf
Needs=Battery_Inst

[SurfaceBatteryMiniport_Device.NT.Events]
AddEventProvider = {DCF09792-3C77-4D1C-8B99-A8A089841155},SurfaceBatteryMiniport_EventProviderInstall

[SurfaceBatteryMiniport_Device_Drivers]
SurfaceBatteryMiniport.sys

;-------------- Service installation

[SurfaceBatteryMiniport_Device.NT.Services]
AddService = SurfaceBatteryMiniport,%SPSVCINST_ASSOCSERVICE%,SurfaceBatteryMiniport_Service_Inst

; -------------- SurfaceBatteryMiniport driver install sections

[SurfaceBatteryMiniport_Service_Inst]
DisplayName    = %SurfaceBatteryMiniport.SVCDESC%
ServiceType    = 1               ; SERVICE_KERNEL_DRIVER
StartType      = 3               ; SERVICE_DEMAND_START
ErrorControl   = 1               ; SERVICE_ERROR_NORMAL
ServiceBinary  = %13%\SurfaceBatteryMiniport.sys

[SurfaceBatteryMiniport_EventProviderInstall]
ProviderName=Microsoft-Surface-SurfaceBatteryMiniport
ResourceFile=%13%\SurfaceBatteryMiniport.sys
MessageFile=%13%\SurfaceBatteryMiniport.sys
AddChannel= Microsoft-Surface-SurfaceBatteryMiniport/Operational,0x2,SurfaceBatteryMiniport_ChannelInstall

[SurfaceBatteryMiniport_ChannelInstall]
Isolation         = 2 
Enabled           = 1

;*****************************************
; Literals
;*****************************************

[Strings]
SPSVCINST_ASSOCSERVICE= 0x00000002
ProviderName = "Surface"
DiskId1 = "Surface Battery Mini Port Installation Disk"
SurfaceBatteryMiniport.DeviceDesc = "Surface Battery Miniport"
SurfaceBatteryMiniport.SVCDESC = "Surface Battery Miniport"
