;========================================== 
; BenQ GW2790.INF
; Copyright (c) 2023, BENQ Corporation

;==========================================

[Version]
signature="$CHICAGO$"
Class=Monitor
ClassGuid={4D36E96E-E325-11CE-BFC1-08002BE10318}
Provider=%BenQ%
catalogfile=BenQ GW2790.cat
DriverVer=11/10/2023,1.0.0.0


[ControlFlags]
ExcludeFromSelect.NT=Monitor\BNQ78F8


[DestinationDirs]
DefaultDestDir  = 11
BenQ GW2790_Hdmi.copyfiles = 23
BenQ GW2790_DisplayPort.copyfiles = 23


[SourceDisksNames]
1=%diskname%,,

[SourceDisksFiles]
BenQ GW2790.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]
%BenQ%=BenQ,NTx86,NTAMD64

[BenQ] 
%BenQ GW2790_Hdmi%=BenQ GW2790_Hdmi.Install, Monitor\BNQ78F8
%BenQ GW2790_DisplayPort%=BenQ GW2790_DisplayPort.Install, Monitor\BNQ78F8


 [BenQ.NTx86] 
%BenQ GW2790_Hdmi%=BenQ GW2790_Hdmi.Install, Monitor\BNQ78F8
%BenQ GW2790_DisplayPort%=BenQ GW2790_DisplayPort.Install, Monitor\BNQ78F8


 [BenQ.NTAMD64]

%BenQ GW2790_Hdmi%=BenQ GW2790_Hdmi.Install, Monitor\BNQ78F8
%BenQ GW2790_DisplayPort%=BenQ GW2790_DisplayPort.Install, Monitor\BNQ78F8

[BenQ GW2790_Hdmi.Install]
DelReg=DEL_CURRENT_REG
AddReg=BenQ GW2790_Hdmi.AddReg
CopyFiles=BenQ GW2790_Hdmi.CopyFiles

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

[BenQ GW2790_DisplayPort.Install]
DelReg=DEL_CURRENT_REG
AddReg=BenQ GW2790_DisplayPort.AddReg
CopyFiles=BenQ GW2790_DisplayPort.CopyFiles

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


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


[BenQ GW2790_Hdmi.AddReg]
HKR,"MODES\1920,1080",Mode1,,"30-114.0,48.0-100.0,-,+"
HKR,,MaxResolution,,"1920,1080"
HKR,,DPMS,,1
HKR,,ICMProfile,0,"BenQ GW2790.icm"

[BenQ GW2790_DisplayPort.AddReg]
HKR,"MODES\1920,1080",Mode1,,"114-114.0,48.0-100.0,-,+"
HKR,,MaxResolution,,"1920,1080"
HKR,,DPMS,,1
HKR,,ICMProfile,0,"BenQ GW2790.icm"



[BenQ GW2790_Hdmi.CopyFiles]
BenQ GW2790.ICM

[BenQ GW2790_DisplayPort.CopyFiles]
BenQ GW2790.ICM



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

BenQ="BenQ"
diskname="BenQ GW2790 Monitor installation diskette"

BenQ GW2790_Hdmi="BenQ GW2790"
BenQ GW2790_DisplayPort="BenQ GW2790"
