;
; logi_lamparray_hid.inf - LampArray Lighting Support Driver
;
; Copyright 2023 - 2024 Logitech. All rights reserved.
;

[Version]
Signature="$Windows NT$"
Class=HIDClass
ClassGuid={745a17a0-74d3-11d0-b6fe-00a0c90f57da}
Provider=%ManufacturerName%
CatalogFile=logi_lamparray.cat
DriverVer=07/17/2024, 1.1.59.4521
PnpLockDown=1

[Manufacturer]
%ManufacturerName%=Standard,NTAMD64.10.0...22621

[Standard.NTAMD64.10.0...22621]
%LITRA_BEAM_LXName%=LITRA_BEAM_LX,USB\VID_046D&PID_C903  ; LITRA BEAM LX

[DestinationDirs]
DefaultDestDir   = 13

[SourceDisksNames]
1 = %DiskName%,,,

[SourceDisksFiles]
logi_lamparray.sys     = 1
logi_lamparray_service.exe = 1

;
; Device installation sections
;

; LITRA BEAM LX Install Section
[LITRA_BEAM_LX.NTAMD64]
; Include the HID Input driver
Include=input.inf
Needs=HID_Inst.NT
; Copy the driver over
CopyFiles=logi_lamparray.CopyFiles
; Rank the driver as high as possible (lowest score wins)
FeatureScore=0x00


;
; File section
;
[logi_lamparray.CopyFiles]
logi_lamparray.sys
logi_lamparray_service.exe

;
; Service installation
;
[logi_lamparray_Driver_Inst]
DisplayName  = %logi_lamparray.DrvDesc%
ServiceType   = 1                           ; SERVICE_KERNEL_DRIVER
StartType     = 3                           ; SERVICE_DEMAND_START
ErrorControl  = 1                           ; SERVICE_ERROR_NORMAL
ServiceBinary = %13%\logi_lamparray.sys

[logi_lamparray_service_Service_FailureActions]
ResetPeriod      = 10              ; reset the failure count after 10 seconds of the service running
NonCrashFailures = 1               ; do failure actions if the service exits w/o 0 exit code
Action           = 1,5000            ; restart the service after 5 seconds if it fails

[logi_lamparray_service_Service_Inst]
DisplayName    = %logi_lamparray_service.SvcName%
Description    = %logi_lamparray_service.SvcDesc%
ServiceType    = 0x00000010                  ; SERVICE_WIN32_OWN_PROCESS
StartType      = 2                           ; SERVICE_AUTO_START
ErrorControl   = 1                           ; SERVICE_ERROR_NORMAL
FailureActions = logi_lamparray_service_Service_FailureActions
ServiceBinary  = %13%\logi_lamparray_service.exe
Dependencies   = logi_lamparray

[logi_lamparray_wdfsect]
KmdfLibraryVersion = 1.31

; LITRA BEAM LX Service installation
[LITRA_BEAM_LX.NTAMD64.Services]
; Run the HID Input driver device services
Include=input.inf
Needs=HID_Inst.NT.Services
AddService=logi_lamparray,,logi_lamparray_Driver_Inst
AddService=logi_lamparray_service,0xC00,logi_lamparray_service_Service_Inst

[LITRA_BEAM_LX.NTAMD64.HW]
; Run the HID Input driver directives
Include=input.inf
Needs=HID_Inst.NT.HW
AddReg=LITRA_BEAM_LX.HW.AddReg

[LITRA_BEAM_LX.HW.AddReg]
HKR,,"LowerFilters",0x00010008,"vhf"
HKR,,"LowerFilters",0x00010008,"logi_lamparray"
HKR,,"FriendlyName",,"LITRA BEAM LX"
HKR,,"Security",,"D:P(A;;GA;;;SY)(A;;GRGWGX;;;BA)(A;;GRGWGX;;;WD)(A;;GRGWGX;;;RC)"

[LITRA_BEAM_LX.NTAMD64.Wdf]
KmdfService = logi_lamparray, logi_lamparray_wdfsect


;
; Event Provider installation
;
[logi_lamparray_Event_Provider_1_Channel_1_Inst]
Isolation = 0x2
Enabled = 1

[logi_lamparray_Event_Provider_1_Channel_2_Inst]
Isolation = 0x2
Enabled = 1


[logi_lamparray_Event_Provider_1_Inst]
ProviderName = Logi-LampArray-Driver
ResourceFile = %13%/logi_lamparray.sys
MessageFile = %13%/logi_lamparray.sys
ParameterFile = %13%/logi_lamparray.sys
AddChannel = Logi-LampArray-Driver/Errors,0x1,logi_lamparray_Event_Provider_1_Channel_1_Inst
AddChannel = Logi-LampArray-Driver/Operational,0x2,logi_lamparray_Event_Provider_1_Channel_2_Inst
[logi_lamparray_Event_Provider_2_Channel_1_Inst]
Isolation = 0x2
Enabled = 0


[logi_lamparray_Event_Provider_2_Inst]
ProviderName = Logi-LampArray-Debug
ResourceFile = %13%/logi_lamparray.sys
MessageFile = %13%/logi_lamparray.sys
ParameterFile = %13%/logi_lamparray.sys
AddChannel = Logi-LampArray-Debug/Tracing,0x3,logi_lamparray_Event_Provider_2_Channel_1_Inst
; LITRA BEAM LX Event Provider installation
[LITRA_BEAM_LX.NTAMD64.Events]
AddEventProvider = {8859dfc4-a569-423c-8590-f135b6affdc1},logi_lamparray_Event_Provider_1_Inst
AddEventProvider = {543f3fe4-5d51-4af2-bd7a-ca31892e3cd8},logi_lamparray_Event_Provider_2_Inst


[Strings]
ManufacturerName = "Logitech"

logi_lamparray.DrvDesc = "Logitech LampArray Device Driver"
logi_lamparray_service.SvcName = "Logitech LampArray Service"
logi_lamparray_service.SvcDesc = "Provides HID LampArray Lighting support to Logitech devices"
DiskName = "Logitech LampArray Support Filter Driver Install Disk"


LITRA_BEAM_LXName = "LITRA BEAM LX"

[Strings.0411]
ManufacturerName = "Logicool"

logi_lamparray.DrvDesc = "Logicool LampArray Device Driver"
logi_lamparray_service.SvcName = "Logicool LampArray Service"
logi_lamparray_service.SvcDesc = "Provides HID LampArray Lighting support to Logicool devices"
DiskName = "Logicool LampArray Support Filter Driver Install Disk"


LITRA_BEAM_LXName = "LITRA BEAM LX"
