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

[Version]   
CatalogFile=XG2431.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
XG2431.CopyFiles=23

[SourceDisksNames]
1=%diskname%,,

[SourceDisksFiles]
XG2431.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\VSC3B3B

[ViewSonic.NTamd64]   
%XG2431_DP%=XG2431_DP.Install,Monitor\VSC3B3B
%XG2431_HDMI%=XG2431_HDMI.Install,Monitor\VSC3B3B

[ViewSonic.NTarm64]   
%XG2431_DP%=XG2431_DP.Install,Monitor\VSC3B3B
%XG2431_HDMI%=XG2431_HDMI.Install,Monitor\VSC3B3B

[XG2431_DP.Install]   
AddReg=XG2431_DP.AddReg
Copyfiles=XG2431.CopyFiles

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

[XG2431_HDMI.Install]   
AddReg=XG2431_HDMI.AddReg
Copyfiles=XG2431.CopyFiles

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

[XG2431_DP.AddReg]  
HKR,"MODES\1920x1080",Mode1,,"255-255,48-240,+,+"
HKR,,MaxResolution,,"1920x1080"
HKR,,DPMS,,1
HKR,,PreferredMode,,"1920x1080,60"
HKR,,ICMProfile,0,"XG2431.ICM"
HKR,,DisplayHdrLevel, %REG_MULTI_SZ_APPEND%, 0D710BC2-6368-4EB2-A829-CBBD45CE3BD2

[XG2431_HDMI.AddReg]  
HKR,"MODES\1920,1080",Mode1,,"15-255,48-240,+,+" 
HKR,,MaxResolution,,"1920x1080"
HKR,,DPMS,,1
HKR,,PreferredMode,,"1920x1080,60"
HKR,,ICMProfile,0,"XG2431.ICM"
HKR,,DisplayHdrLevel, %REG_MULTI_SZ_APPEND%, 0D710BC2-6368-4EB2-A829-CBBD45CE3BD2

[XG2431.CopyFiles]                                       
XG2431.ICM

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

ViewSonic="ViewSonic"
diskname="ViewSonic XG2431 Wizard"
XG2431_DP="ViewSonic XG2431"
XG2431_HDMI="ViewSonic XG2431"