;Monitor.Inf for Windows(R) 10 x86/x64, 11 x64/Arm64
;Copyright 2023, ViewSonic Corporation

[Version]   
CatalogFile=VG2240.cat  
PnpLockdown=1
signature="$Windows NT$"
Class=Monitor
ClassGuid={4D36E96E-E325-11CE-BFC1-08002BE10318}
Provider=%ViewSonic%
DriverVer=07/06/2023, 1.0.0.0

[DestinationDirs]
DefaultDestDir= 12
VG2240.CopyFiles=23

[SourceDisksNames]
1=%diskname%,,

[SourceDisksFiles]
VG2240.ICM=1
VG2240-100Hz.ICM=1

[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

[Manufacturer]
%ViewSonic%=ViewSonic,NTx86,NTamd64,NTarm64

[ControlFlags]
ExcludeFromSelect.nt=Monitor\VSC9C3D
ExcludeFromSelect.nt=Monitor\VSC3FDA

[ViewSonic.NTx86]   
%VG2240_A%=VG2240_A.Install,Monitor\VSC9C3D
%VG2240_D%=VG2240_D.Install,Monitor\VSC3FDA

[ViewSonic.NTamd64]   
%VG2240_A%=VG2240_A.Install,Monitor\VSC9C3D
%VG2240_D%=VG2240_D.Install,Monitor\VSC3FDA

[ViewSonic.NTarm64]   
%VG2240_A%=VG2240_A.Install,Monitor\VSC9C3D
%VG2240_D%=VG2240_D.Install,Monitor\VSC3FDA

[VG2240_A.Install]   
AddReg=VG2240_A.AddReg
Copyfiles=VG2240.CopyFiles

[VG2240_A.Install.Services]
AddService = monitor, %SPSVCINST_ASSOCSERVICE%,Monitor_Service.Install

[VG2240_D.Install]   
AddReg=VG2240_D.AddReg
Copyfiles=VG2240.CopyFiles

[VG2240_D.Install.Services]
AddService = monitor, %SPSVCINST_ASSOCSERVICE%,Monitor_Service.Install

[VG2240_A.AddReg]  
HKR,"MODES\1920,1080",Mode1,,"24-82,50-75,+,+"
HKR,,MaxResolution,,"1920,1080"
HKR,,DPMS,,1
HKR,,PreferredMode,,"1920,1080,60"
HKR,,ICMProfile,0,"VG2240.ICM"

[VG2240_D.AddReg]  
HKR,"MODES\1920,1080",Mode1,,"15-110,24-100,+,+"
HKR,,MaxResolution,,"1920,1080"
HKR,,DPMS,,1
HKR,,PreferredMode,,"1920,1080,60"
HKR,,ICMProfile,0,"VG2240-100Hz.ICM"

[VG2240.CopyFiles]                                       
VG2240.ICM
VG2240-100Hz.ICM

[Strings]
SPSVCINST_ASSOCSERVICE = 0x00000002
Monitor.SVCDESC = "Microsoft Monitor Class Function Driver Service"
ViewSonic="ViewSonic"
diskname="ViewSonic VG2240 Wizard"
VG2240_A="ViewSonic VG2240"
VG2240_D="ViewSonic VG2240 100Hz"