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

[Version]   
CatalogFile=VG2458.cat  
PnpLockdown=1
signature="$Windows NT$"
Class=Monitor
ClassGuid={4D36E96E-E325-11CE-BFC1-08002BE10318}
Provider=%ViewSonic%
DriverVer=03/11/2024, 1.0.0.0

[DestinationDirs]
DefaultDestDir= 12
VG2458.CopyFiles=23

[SourceDisksNames]
1=%diskname%,,

[SourceDisksFiles]
VG2458.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,NTarm64

[ControlFlags]
ExcludeFromSelect.nt=Monitor\VSC6541
ExcludeFromSelect.nt=Monitor\VSC6841
ExcludeFromSelect.nt=Monitor\VSC6741

[ViewSonic.NTx86]   
%VG2458_USB_C%=VG2458_USB_C.Install,Monitor\VSC6541
%VG2458_DP%=VG2458_DP.Install,Monitor\VSC6841
%VG2458_HDMI1%=VG2458_HDMI1.Install,Monitor\VSC6741


[ViewSonic.NTamd64]   
%VG2458_USB_C%=VG2458_USB_C.Install,Monitor\VSC6541
%VG2458_DP%=VG2458_DP.Install,Monitor\VSC6841
%VG2458_HDMI1%=VG2458_HDMI1.Install,Monitor\VSC6741 

[ViewSonic.NTarm64]   
%VG2458_USB_C%=VG2458_USB_C.Install,Monitor\VSC6541
%VG2458_DP%=VG2458_DP.Install,Monitor\VSC6841
%VG2458_HDMI1%=VG2458_HDMI1.Install,Monitor\VSC6741  

[VG2458_USB_C.Install]   
AddReg=VG2458_USB_C.AddReg
Copyfiles=VG2458.CopyFiles

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

[VG2458_DP.Install]   
AddReg=VG2458_DP.AddReg
Copyfiles=VG2458.CopyFiles

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

[VG2458_HDMI1.Install]   
AddReg=VG2458_HDMI.AddReg
Copyfiles=VG2458.CopyFiles

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

[VG2458_USB_C.AddReg]  
HKR,"MODES\1920,1080",Mode1,,"30-110,50-100,+,+" 
HKR,,MaxResolution,,"1920,1080"
HKR,,DPMS,,1
HKR,,PreferredMode,,"1920,1080,60"
HKR,,ICMProfile,0,"VG2458.ICM"

[VG2458_DP.AddReg]  
HKR,"MODES\1920,1080",Mode1,,"30-110,50-100,+,+" 
HKR,,MaxResolution,,"1920,1080"
HKR,,DPMS,,1
HKR,,PreferredMode,,"1920,1080,60"
HKR,,ICMProfile,0,"VG2458.ICM"

[VG2458_HDMI.AddReg]  
HKR,"MODES\1920,1080",Mode1,,"30-110,50-100,+,+" 
HKR,,MaxResolution,,"1920,1080"
HKR,,DPMS,,1
HKR,,PreferredMode,,"1920,1080,60"
HKR,,ICMProfile,0,"VG2458.ICM"

[VG2458.CopyFiles]                                       
VG2458.ICM

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

ViewSonic="ViewSonic"
diskname="ViewSonic VG2458 Wizard"
VG2458_USB_C="ViewSonic VG2458 USB-C"
VG2458_DP="ViewSonic VG2458 DP"
VG2458_HDMI1="ViewSonic VG2458 HDMI"