;
; SensorsAlsDriver.inf
;
; Copyright (c) Microsoft Corporation.  All rights reserved.

[Version]
Signature   = "$Windows NT$"
Class       = Sensor
ClassGuid   = {5175D334-C371-4806-B3BA-71FD53C9258D}
Provider    = %MSFT%
DriverVer = 04/21/2009,10.0.20348.1
PnpLockdown = 1

; =================== Manufacturer/Models sections =======================

[Manufacturer]
%MSFT%                        = Microsoft,NTamd64

[Microsoft.NTamd64]
%SensorsAlsDriver.DeviceDesc% = SensorsAlsDriver_Install,ACPI\ACPI0008

; =================== ALS Sensor Device ==================================

[SensorsAlsDriver_Install]
CopyFiles               = UMDriverCopy,KMDriverCopy
AddProperty             = DriverPropertiesSection

[SensorsAlsDriver_Install.hw]
AddReg = kbfiltr.HW.AddReg

[SensorsAlsDriver_Install.Services]
AddService              = SensorsAlsDriver,0x000001fa,WUDFSensorsAlsDriver_ServiceInstall
AddService=acpials,  , kbfiltr_Service_Inst

[SensorsAlsDriver_Install.CoInstallers]
AddReg                  = WUDF_CoInstallers_AddReg

[SensorsAlsDriver_Install.Wdf]
UmdfService             = SensorsAlsDriver,UMDFSensorsAlsDriver_Install
UmdfServiceOrder        = SensorsAlsDriver
UmdfImpersonationLevel  = Impersonation
KmdfService             = acpials, kbfiltr_wdfsect

; =================== Driver Property section ===================

[DriverPropertiesSection]
DeviceIcon,,,,"%%SystemRoot%%\system32\sensorscpl.dll,-1008"

; =================== UMDF Service Install section ===================

[UMDFSensorsAlsDriver_Install]
UmdfLibraryVersion=1.11.0
ServiceBinary=%12%\UMDF\SensorsAlsDriver.dll
DriverCLSID={DC275C23-28A8-4140-B828-7B0F34B7EFBB}

[SourceDisksFiles]
SensorsAlsDriver.dll=1
acpials.sys=1
;WudfUpdate_$UMDFCOINSTALLERVERSION$.dll=1

[SourceDisksNames]
1 = %MediaDescription%

[WUDF_CoInstallers_AddReg]
HKR,,CoInstallers32,0x00010000,"WUDFCoInstaller.dll"
;HKR,,CoInstallers32,0x00010000,"WUDFUpdate_$UMDFCOINSTALLERVERSION$.dll"

[DestinationDirs]
UMDriverCopy            =12,UMDF    ; copy to drivers\UMDF
KMDriverCopy=12

[UMDriverCopy]
SensorsAlsDriver.dll,,,0x100          ; 0x100 means the driver is protected

; =================== WUDFRd ===================

[WUDFSensorsAlsDriver_ServiceInstall]
DisplayName     = %WudfSensorsAlsDriverDisplayName%
ServiceType     = %SERVICE_KERNEL_DRIVER%
StartType       = %SERVICE_DEMAND_START%
ErrorControl    = %SERVICE_ERROR_NORMAL%
ServiceBinary   = %12%\WUDFRd.sys
LoadOrderGroup  = Base
StartName       = \Driver\WudfRd

; =================== ALS Sensor Filter ==================================

[kbfiltr_Service_Inst]
DisplayName    = %kbfiltr.SvcDesc%
ServiceType    = 1                  ; SERVICE_KERNEL_DRIVER
StartType      = 3                  ; SERVICE_DEMAND_START
ErrorControl   = 0                  ; SERVICE_ERROR_IGNORE
LoadOrderGroup = Base
ServiceBinary  = %12%\acpials.sys

[kbfiltr.HW.AddReg]
HKR,,"LowerFilters",0x00010000,"acpials"


[kbfiltr_wdfsect]
KmdfLibraryVersion = 1.9

[KMDriverCopy]
acpials.sys,,,0x100

; =================== Generic ==================================

[Strings]
;Localizable strings for Sensors ALS Driver
MSFT                        ="Microsoft"
MediaDescription            ="Microsoft Windows ALS Sensor Driver Installation Media"
ClassName                   ="Sensor"
WudfSensorsAlsDriverDisplayName ="UMDF Reflector service for SensorsAlsDriver"
SensorsAlsDriver.DeviceDesc ="Light Sensor"
kbfiltr.SvcDesc             ="ALS Sensor Filter"

;Non-localizable for Sensors ALS Driver
REG_DWORD                       = 0x00010001
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 
