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

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

[DestinationDirs]
DefaultDestDir= 12
XG321UG.CopyFiles=23

[SourceDisksNames]
1=%diskname%,,

[SourceDisksFiles]
XG321UG.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\VSC513B

[ViewSonic.NTamd64]   
%XG321UG%=XG321UG.Install,Monitor\VSC513B

[ViewSonic.NTarm64]   
%XG321UG%=XG321UG.Install,Monitor\VSC513B

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

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

[XG321UG.AddReg]  
HKR,"MODES\3840,2160",Mode1,,"15-317,24-144,+,+" 
HKR,,MaxResolution,,"3840,2160"
HKR,,DPMS,,1
HKR,,PreferredMode,,"3840,2160,60"
HKR,,ICMProfile,0,"XG321UG.ICM"
HKR,,DisplayHdrLevel, %REG_MULTI_SZ_APPEND%, 3CA0903F-99E0-46FB-9BEC-DE023507BEF0
HKR,,DisplayHdrLevel, %REG_MULTI_SZ_APPEND%, 35FBD985-74F0-4271-AC61-295F11D71AEF

[XG321UG.CopyFiles]                                       
XG321UG.ICM

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

ViewSonic="ViewSonic"
diskname="ViewSonic XG321UG Wizard"
XG321UG="ViewSonic XG321UG"