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

[Version]   
CatalogFile=XG250.cat
PnpLockdown=1 
signature="$Windows NT$"
Class=Monitor
ClassGuid={4D36E96E-E325-11CE-BFC1-08002BE10318}
Provider=%ViewSonic%
DriverVer=05/14/2021, 1.5.0.0

[DestinationDirs]
DefaultDestDir= 12
XG250.CopyFiles=23

[SourceDisksNames]
1=%diskname%,,

[SourceDisksFiles]
XG250.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\VSCE43B

[ViewSonic.NTx86]   
%XG250_DP%=XG250_DP.Install,Monitor\VSCE43B
%XG250_HDMI%=XG250_HDMI.Install,Monitor\VSCE43B

[ViewSonic.NTamd64]   
%XG250_DP%=XG250_DP.Install,Monitor\VSCE43B
%XG250_HDMI%=XG250_HDMI.Install,Monitor\VSCE43B

[XG250_DP.Install]   
DelReg=DEL_CURRENT_REG 
AddReg=XG250_DP.AddReg
Copyfiles=XG250.CopyFiles

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

[XG250_HDMI.Install]   
DelReg=DEL_CURRENT_REG 
AddReg=XG250_HDMI.AddReg
Copyfiles=XG250.CopyFiles

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

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

[XG250_HDMI.AddReg]  
HKR,"MODES\1920,1080",Mode1,,"15-281,24-240,+,+"
HKR,,MaxResolution,,"1920,1080"
HKR,,DPMS,,1
HKR,,PreferredMode,,"1920,1080,60"
HKR,,ICMProfile,0,"XG250.ICM"

[XG250_DP.AddReg]  
HKR,"MODES\1920,1080",Mode1,,"281-281,48-240,+,+"
HKR,,MaxResolution,,"1920,1080"
HKR,,DPMS,,1
HKR,,PreferredMode,,"1920,1080,60"
HKR,,ICMProfile,0,"XG250.ICM"

[XG250.CopyFiles]                                       
XG250.ICM

[Strings]
SPSVCINST_ASSOCSERVICE = 0x00000002
Monitor.SVCDESC = "Microsoft Monitor Class Function Driver Service"
ViewSonic="ViewSonic"
diskname="ViewSonic XG250 Wizard"
XG250_HDMI="ViewSonic XG250"
XG250_DP="ViewSonic XG250"