[Version]
Signature="$Windows NT$"
Class=HIDClass
ClassGuid={745a17a0-74d3-11d0-b6fe-00a0c90f57da}
Provider=%VENDOR%
DriverVer = 06/29/2018,1.0.1806.3001
CatalogFile=HidAirModeDrv.cat


[SourceDisksFiles]
AirModeBtn.sys = 99

[SourceDisksNames]
99 = %DISK_NAME%,,,""

[DestinationDirs]
CopySystemSysFiles = 12      
CopyFunctionDriver = 12      
CopyFilterDriver = 12      
CopyFilesDLL = 11 
AirModeBtn.Inst_CoInstaller_CopyFiles = 11

[Manufacturer]
%VENDOR%=Vendor, NTamd64.6.1

; For Win7 and later so that we can use inbox HID-KMDF mapper
[Vendor.NTamd64.6.1]
%AirModeBtn%    = AirModeBtn.Inst.Win7, ACPI\LGEX0815
;%customCollection%    = customCollection.Inst, HID_DEVICE_UP:FF00_U:0001

;===============================================================
;   AirModeBtn for Win7
;   Instead of using hidkmdf.sys as a filter, use the inbox 
;   mshidkmdf.sys as a mapper filter
;===============================================================
[AirModeBtn.Inst.Win7.ntamd64]
; Just copy the driver. No neeed to copy other system binaries.
CopyFiles = CopyFunctionDriver

[AirModeBtn.Inst.Win7.ntamd64.HW]
AddReg = AirModeBtn_Win7_Parameters.AddReg 
;WMI = AirModeBtn_Win7_Parameters.WMI
;
; hidkmdf is the function driver and AirModeBtn is the lower filter
;
[AirModeBtn.Inst.Win7.ntamd64.Services]
AddService = AirModeBtn,0x00000002, AirModeBtn_Service_Inst

[AirModeBtn_Win7_Parameters.AddReg]
HKR,,"UpperFilters",0x00010000,"mshidkmdf"

[AirModeBtn.Inst.Win7.ntamd64.WMI]
WMIInterface = {AFB1696B-A3F2-457A-80A1-D691A682A000},1,WMIAllAu
WMIInterface = {F8620CB7-7D2D-45AF-B0CC-17680F0FEA0D},1,WMIAllAu
WMIInterface = {C7DA4212-E9D7-4789-845E-983632FE4F01},1,WMIAllAu

;===============================================================
;   Sections common to all OS versions
;===============================================================


[CopyFunctionDriver]
AirModeBtn.sys


[AirModeBtn_Service_Inst]
DisplayName    = %AirModeBtn%
ServiceType    = %SERVICE_KERNEL_DRIVER% 
StartType      = %SERVICE_DEMAND_START% 
ErrorControl   = %SERVICE_ERROR_IGNORE% 
ServiceBinary  = %12%\AirModeBtn.sys 

;===============================================================
;   Custom Collection install section
; - Only a Null service is installed.
;===============================================================




[WMIAllAu]
security = "O:BAG:BAD:(A;;GA;;;AU)"

[Strings] 
;  *******Localizable Strings******* 
VENDOR						= "LG Electronics Inc." 
AirModeBtn					= "LG Airplane Mode Button"
customCollection			= "LG Airplane Mode Button"
DISK_NAME					= "LG Airplane Mode Button Install Disk"

;  *******Non Localizable Strings******* 

SERVICE_BOOT_START     = 0x0 
SERVICE_SYSTEM_START   = 0x1 
SERVICE_AUTO_START     = 0x2 
SERVICE_DEMAND_START   = 0x3 
SERVICE_DISABLED       = 0x4 

SERVICE_KERNEL_DRIVER  = 0x1 
SERVICE_ERROR_IGNORE   = 0x0 
SERVICE_ERROR_NORMAL   = 0x1 
SERVICE_ERROR_SEVERE   = 0x2 
SERVICE_ERROR_CRITICAL = 0x3 

REG_EXPAND_SZ          = 0x00020000 
REG_DWORD              = 0x00010001 
REG_MULTI_SZ           = 0x00010000
REG_BINARY             = 0x00000001
REG_SZ                 = 0x00000000

