; ------------------------------------------------
; Copyright (c) 2025 Lenovo Corporation
; revision 0
; This is a setupfile for L22-42
; ------------------------------------------------

[Version]
signature   = "$Windows NT$"
Class       = Monitor
ClassGuid   = {4D36E96E-E325-11CE-BFC1-08002BE10318}
Provider    = %Lenovo%
CatalogFile = L22-42.cat
DriverVer   = 01/02/2026,1.0.0.0
PnpLockDown = 1

[SourceDisksNames]
1=%DiskName%,,,

[SourceDisksFiles]
L22-42.icm=1

[DestinationDirs]
DefaultDestDir               = 12
L22-42_VGA.CopyFiles      = 23
L22-42_HDMI.CopyFiles     = 23


[Manufacturer]
%Lenovo%=Lenovo,NTx86,NTAMD64,NTarm64

[Lenovo]
%L22-42_VGA%      = L22-42_VGA.Install, Monitor\LEN68FA
%L22-42_HDMI%     = L22-42_HDMI.Install, Monitor\LEN68FA


[Lenovo.NTx86]
%L22-42_VGA%      = L22-42_VGA.Install, Monitor\LEN68FA
%L22-42_HDMI%     = L22-42_HDMI.Install, Monitor\LEN68FA


[Lenovo.NTAMD64]
%L22-42_VGA%      = L22-42_VGA.Install, Monitor\LEN68FA
%L22-42_HDMI%     = L22-42_HDMI.Install, Monitor\LEN68FA

[Lenovo.NTarm64]
%L22-42_VGA%      = L22-42_VGA.Install, Monitor\LEN68FA
%L22-42_HDMI%      = L22-42_HDMI.Install, Monitor\LEN68FA

[ControlFlags]
ExcludeFromSelect = Monitor\LEN68FA
ExcludeFromSelect = Monitor\LEN68FA


[L22-42_VGA.Install]
DelReg    = LEN_CURRENT_REG
AddReg    = L22-42_VGA.AddReg, 1920, DPMS
CopyFiles = L22-42_VGA.CopyFiles

[L22-42_HDMI.Install]
DelReg    = LEN_CURRENT_REG
AddReg    = L22-42_HDMI.AddReg, 1920, DPMS
CopyFiles = L22-42_HDMI.CopyFiles

[LEN_CURRENT_REG]
HKR,MODES
HKR,,MaxResolution
HKR,,DPMS
HKR,,ICMProfile

[1920]
HKR,,MaxResolution,,"1920,1080"

[DPMS]
HKR,,DPMS,,1

[L22-42_VGA.AddReg]
HKR,"MODES\1920,1080",Mode1,,"30.0-85.0,48.0-76.0,+,+"
HKR,,ICMProfile,0,"L22-42.icm"

[L22-42_HDMI.AddReg]
HKR,"MODES\1920,1080",Mode1,,"30.0-110.0,48.0-100.0,+,+"
HKR,,ICMProfile,0,"L22-42.icm"


[L22-42_VGA.CopyFiles]
L22-42.icm

[L22-42_HDMI.CopyFiles]
L22-42.icm


[L22-42_VGA.Install.Services]
AddService = monitor, %SPSVCINST_ASSOCSERVICE%, Monitor_Service.Install

[L22-42_HDMI.Install.Services]
AddService = monitor, %SPSVCINST_ASSOCSERVICE%, Monitor_Service.Install

[Monitor_Service.Install]
DisplayName    = %Monitor.SVCDESC%
ServiceType    = 1                 ; SERVICE_KERNEL_DRIVER
StartType      = 3                 ; SERVICE_DEMAND_START
ErrorControl   = 1                 ; SERVICE_ERROR_NORMAL
ServiceBinary  = %12%\monitor.sys

[Strings]
SPSVCINST_ASSOCSERVICE = 0x00000002
Monitor.SVCDESC        = "Microsoft Monitor Class Function Driver Service"
Lenovo                   = "Lenovo Inc."
DiskName               = "Lenovo Monitor installation disk"
L22-42_VGA          = "Lenovo L22-42"
L22-42_HDMI         = "Lenovo L22-42"

