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

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

[ControlFlags]
ExcludeFromSelect.nt=Monitor\VSC0D39  

[DestinationDirs]
DefaultDestDir= 12
XG2405.CopyFiles=23

[SourceDisksNames]
1=%diskname%,,

[SourceDisksFiles]
XG2405.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

[ViewSonic.NTamd64]   
%XG2405_DP%=XG2405_DP.Install,Monitor\VSC0D39
%XG2405_HDMI%=XG2405_HDMI.Install,Monitor\VSC0D39  

[ViewSonic.NTarm64]   
%XG2405_DP%=XG2405_DP.Install,Monitor\VSC0D39
%XG2405_HDMI%=XG2405_HDMI.Install,Monitor\VSC0D39 

[XG2405_DP.Install]   
AddReg=XG2405_DP.AddReg
Copyfiles=XG2405.CopyFiles

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

[XG2405_HDMI.Install]   
AddReg=XG2405_HDMI.AddReg
Copyfiles=XG2405.CopyFiles

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

[XG2405_DP.AddReg]  
HKR,"MODES\1920,1080",Mode1,,"180-180,48-144,+,+" 
HKR,,MaxResolution,,"1920,1080"
HKR,,DPMS,,1
HKR,,ICMProfile,0,"XG2405.icm"

[XG2405_HDMI.AddReg]  
HKR,"MODES\1920,1080",Mode1,,"15-180,24-144,+,+" 
HKR,,MaxResolution,,"1920,1080"
HKR,,DPMS,,1
HKR,,ICMProfile,0,"XG2405.icm"

[XG2405.CopyFiles]                                       
XG2405.icm

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

diskname="XG2405 ViewSonic Wizard"
ViewSonic="ViewSonic"

XG2405_DP="ViewSonic XG2405"
XG2405_HDMI="ViewSonic XG2405"