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

[Version]   
CatalogFile=XG2709.cat  
PnpLockdown=1
signature="$CHICAGO$"
Class=Monitor
ClassGuid={4D36E96E-E325-11CE-BFC1-08002BE10318}
Provider=%ViewSonic%
DriverVer=03/03/2024, 1.1.0.0

[DestinationDirs]
DefaultDestDir= 12
XG2709.CopyFiles=23

[SourceDisksNames]
1=%diskname%,,,

[SourceDisksFiles]
XG2709.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

[ControlFlags]
ExcludeFromSelect.nt=Monitor\VSC1A41
ExcludeFromSelect.nt=Monitor\VSC1A41

[ViewSonic.NTx86]   
%XG2709_DP%=XG2709_DP.Install,Monitor\VSC1A41
%XG2709_HDMI%=XG2709_HDMI.Install,Monitor\VSC1A41

[ViewSonic.NTamd64]   
%XG2709_DP%=XG2709_DP.Install,Monitor\VSC1A41
%XG2709_HDMI%=XG2709_HDMI.Install,Monitor\VSC1A41

[XG2709_DP.Install]   
DelReg=DEL_CURRENT_REG 
AddReg=XG2709_DP.AddReg
Copyfiles=XG2709_DP.CopyFiles

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

[XG2709_HDMI.Install]   
DelReg=DEL_CURRENT_REG 
AddReg=XG2709_HDMI.AddReg
Copyfiles=XG2709_HDMI.CopyFiles

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

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

[XG2709_DP.AddReg]  
HKR,"MODES\1920,1080",Mode1,,"30-202,48-180,+,+"
HKR,,MaxResolution,,"1920,1080"
HKR,,DPMS,,1
HKR,,ICMProfile,0,"XG2709.ICM"

[XG2709_HDMI.AddReg]  
HKR,"MODES\1920,1080",Mode1,,"30-160,48-144,+,+"
HKR,,MaxResolution,,"1920,1080"
HKR,,DPMS,,1
HKR,,ICMProfile,0,"XG2709.ICM"

[XG2709_DP.CopyFiles]                                       
XG2709.ICM
[XG2709_HDMI.CopyFiles]                                       
XG2709.ICM

[Strings]
SPSVCINST_ASSOCSERVICE = 0x00000002
Monitor.SVCDESC = "Microsoft Monitor Class Function Driver Service"
ViewSonic="ViewSonic"
diskname="ViewSonic XG2709 Series Wizard"
XG2709_DP="ViewSonic XG2709"
XG2709_HDMI="ViewSonic XG2709"