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

[Version]   
CatalogFile=XG320Q.cat
PnpLockdown=1
signature="$Windows NT$"
Class=Monitor
ClassGuid={4D36E96E-E325-11CE-BFC1-08002BE10318}
Provider=%ViewSonic%
DriverVer=04/12/2022, 1.5.0.1

[DestinationDirs]
DefaultDestDir= 12
XG320Q.CopyFiles=23

[SourceDisksNames]
1=%diskname%,,

[SourceDisksFiles]
XG320Q.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,NTamd64,NTarm64

[ControlFlags]
ExcludeFromSelect.nt=Monitor\VSC4F3B

[ViewSonic.NTamd64]   
%XG320Q%=XG320Q.Install,Monitor\VSC4F3B

[ViewSonic.NTarm64]   
%XG320Q%=XG320Q.Install,Monitor\VSC4F3B

[XG320Q.Install]   
AddReg=XG320Q.AddReg
Copyfiles=XG320Q.CopyFiles

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

[XG320Q.AddReg]  
HKR,"MODES\2560,1440",Mode1,,"15-250,24-165,+,+" 
HKR,,MaxResolution,,"2560,1440"
HKR,,DPMS,,1
HKR,,PreferredMode,,"2560,1440,165"
HKR,,ICMProfile,0,"XG320Q.ICM"
HKR,,DisplayHdrLevel, %REG_MULTI_SZ_APPEND%, 7134A821-9254-4AF4-9973-95B3FCF720CC

[XG320Q.CopyFiles]                                       
XG320Q.ICM

[Strings]
SPSVCINST_ASSOCSERVICE = 0x00000002
Monitor.SVCDESC = "Microsoft Monitor Class Function Driver Service"
REG_MULTI_SZ_APPEND=0x00010008

ViewSonic="ViewSonic"
diskname="ViewSonic XG320Q Wizard"
XG320Q="ViewSonic XG320Q"