; ------------------------------------------------
; Copyright (c) 2022 Lenovo Corporation
; revision 1
; This is a setupfile for M14d
; ------------------------------------------------

[Version]
signature   = "$Windows NT$"
Class       = Monitor
ClassGuid   = {4D36E96E-E325-11CE-BFC1-08002BE10318}
Provider    = %Lenovo%
CatalogFile = M14d.cat
DriverVer   = 02/22/2022,1.0.0.0

[SourceDisksNames]
1=%DiskName%,,,

[SourceDisksFiles]
M14d.icm=1

[DestinationDirs]
DefaultDestDir             = 12
M14d_TYPE-C1.CopyFiles     = 23
M14d_TYPE-C2.CopyFiles     = 23

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

[Lenovo]
%M14d_TYPE-C1%     = M14d_TYPE-C1.Install, Monitor\LEN63AA
%M14d_TYPE-C2%     = M14d_TYPE-C2.Install, Monitor\LEN63AA

[Lenovo.NTx86]
%M14d_TYPE-C1%     = M14d_TYPE-C1.Install, Monitor\LEN63AA
%M14d_TYPE-C2%     = M14d_TYPE-C2.Install, Monitor\LEN63AA

[Lenovo.NTAMD64]
%M14d_TYPE-C1%     = M14d_TYPE-C1.Install, Monitor\LEN63AA
%M14d_TYPE-C2%     = M14d_TYPE-C2.Install, Monitor\LEN63AA

[ControlFlags]
ExcludeFromSelect = Monitor\LEN63AA
ExcludeFromSelect = Monitor\LEN63AA


[M14d_TYPE-C1.Install]
DelReg    = LEN_CURRENT_REG
AddReg    = M14d_TYPE-C1.AddReg, 2240, DPMS
CopyFiles = M14d_TYPE-C1.CopyFiles

[M14d_TYPE-C2.Install]
DelReg    = LEN_CURRENT_REG
AddReg    = M14d_TYPE-C2.AddReg, 2240, DPMS
CopyFiles = M14d_TYPE-C2.CopyFiles

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

[2240]
HKR,,MaxResolution,,"2240,1400"

[DPMS]
HKR,,DPMS,,1


[M14d_TYPE-C1.AddReg]
HKR,"MODES\2240,1400",Mode1,,"30.0-90.0,50.0-75.0,+,+"
HKR,,ICMProfile,0,"M14d.icm"

[M14d_TYPE-C2.AddReg]
HKR,"MODES\2240,1400",Mode1,,"30.0-90.0,50.0-75.0,+,+"
HKR,,ICMProfile,0,"M14d.icm"

[M14d_TYPE-C1.CopyFiles]
M14d.icm

[M14d_TYPE-C2.CopyFiles]
M14d.icm

[M14d_TYPE-C1.Install.Services]
AddService = monitor, %SPSVCINST_ASSOCSERVICE%, Monitor_Service.Install

[M14d_TYPE-C2.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"
M14d_TYPE-C1           = "ThinkVision M14d"
M14d_TYPE-C2           = "ThinkVision M14d"

