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

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

[SourceDisksNames]
1=%diskname%,,

[SourceDisksFiles]
XG251G.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\VSCE53B

[ViewSonic.NTamd64]   
%XG251G_DP%=XG251G_DP.Install,Monitor\VSCE53B
%XG251G_HDMI%=XG251G_HDMI.Install,Monitor\VSCE53B

[ViewSonic.NTarm64]   
%XG251G_DP%=XG251G_DP.Install,Monitor\VSCE53B
%XG251G_HDMI%=XG251G_HDMI.Install,Monitor\VSCE53B

[XG251G_DP.Install]   
AddReg=XG251G_DP.AddReg
Copyfiles=XG251G.CopyFiles

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

[XG251G_HDMI.Install]   
AddReg=XG251G_HDMI.AddReg
Copyfiles=XG251G.CopyFiles

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

[XG251G_HDMI.AddReg]  
HKR,"MODES\1920,1080",Mode1,,"30-292,24-240,+,+"
HKR,,MaxResolution,,"1920,1080"
HKR,,DPMS,,1
HKR,,PreferredMode,,"1920,1080,60"
HKR,,ICMProfile,0,"XG251G.ICM"
HKR,,DisplayHdrLevel, %REG_MULTI_SZ_APPEND%, 0D710BC2-6368-4EB2-A829-CBBD45CE3BD2

[XG251G_DP.AddReg]  
HKR,"MODES\1920,1080",Mode1,,"467-467,24-360,+,+"
HKR,,MaxResolution,,"1920,1080"
HKR,,DPMS,,1
HKR,,PreferredMode,,"1920,1080,60"
HKR,,ICMProfile,0,"XG251G.ICM"
HKR,,DisplayHdrLevel, %REG_MULTI_SZ_APPEND%, 0D710BC2-6368-4EB2-A829-CBBD45CE3BD2

[XG251G.CopyFiles]                                       
XG251G.ICM

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

ViewSonic="ViewSonic"
diskname="ViewSonic XG251G Wizard"
XG251G_HDMI="ViewSonic XG251G"
XG251G_DP="ViewSonic XG251G"