;========================================== 
; BenQ RD320U.INF
; Copyright (c) 2024, BENQ Corporation

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

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


[ControlFlags]
ExcludeFromSelect.NT=Monitor\BNQ8081
ExcludeFromSelect.NT=Monitor\BNQ807E
ExcludeFromSelect.NT=Monitor\BNQ 8084
ExcludeFromSelect.NT=Monitor\BNQ8087


[DestinationDirs]
DefaultDestDir  = 11
BenQ RD320U_Hdmi1.copyfiles = 23
BenQ RD320U_Hdmi2.copyfiles = 23
BenQ RD320U_DisplayPort.copyfiles = 23
BenQ RD320U_USB-C.copyfiles = 23


[SourceDisksNames]
1=%diskname%,,

[SourceDisksFiles]
BenQ RD320U.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 RD320U_Hdmi1%=BenQ RD320U_Hdmi1.Install, Monitor\BNQ8081
%BenQ RD320U_Hdmi2%=BenQ RD320U_Hdmi2.Install, Monitor\BNQ807E
%BenQ RD320U_DisplayPort%=BenQ RD320U_DisplayPort.Install, Monitor\BNQ8084
%BenQ RD320U_USB-C%=BenQ RD320U_USB-C.Install, Monitor\BNQ8087


 [BenQ.NTx86] 
%BenQ RD320U_Hdmi1%=BenQ RD320U_Hdmi1.Install, Monitor\BNQ8081
%BenQ RD320U_Hdmi2%=BenQ RD320U_Hdmi2.Install, Monitor\BNQ807E
%BenQ RD320U_DisplayPort%=BenQ RD320U_DisplayPort.Install, Monitor\BNQ8084
%BenQ RD320U_USB-C%=BenQ RD320U_USB-C.Install, Monitor\BNQ8087


 [BenQ.NTAMD64]
%BenQ RD320U_Hdmi1%=BenQ RD320U_Hdmi1.Install, Monitor\BNQ8081
%BenQ RD320U_Hdmi2%=BenQ RD320U_Hdmi2.Install, Monitor\BNQ807E
%BenQ RD320U_DisplayPort%=BenQ RD320U_DisplayPort.Install, Monitor\BNQ8084
%BenQ RD320U_USB-C%=BenQ RD320U_USB-C.Install, Monitor\BNQ8087


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

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

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

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

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

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

[BenQ RD320U_USB-C.Install]
DelReg=DEL_CURRENT_REG
AddReg=BenQ RD320U_USB-C.AddReg
CopyFiles=BenQ RD320U_USB-C.CopyFiles

[BenQ RD320U_USB-C.Install.Services]
AddService = monitor, %SPSVCINST_ASSOCSERVICE%,Monitor_Service.Install


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

; This sample installs both profiles to the advanced color (AC) profile association list.
; The presence of at least one valid ICC profile in the AC association list
; will enable WCG for the display.

[BenQ RD320U_Hdmi1.AddReg]
HKR,"MODES\3840,2160",Mode1,,"27-160.0,24.0-76.0,-,+"
HKR,,MaxResolution,,"3840,2160"
HKR,,DPMS,,1
HKR,,ICMProfileAC,0,"BenQ RD320U.icm"
HKR,,DisplayHdrLevel, %REG_MULTI_SZ_APPEND%, 0D710BC2-6368-4EB2-A829-CBBD45CE3BD2

[BenQ RD320U_Hdmi2.AddReg]
HKR,"MODES\3840,2160",Mode1,,"27-160.0,24.0-76.0,-,+"
HKR,,MaxResolution,,"3840,2160"
HKR,,DPMS,,1
HKR,,ICMProfileAC,0,"BenQ RD320U.icm"
HKR,,DisplayHdrLevel, %REG_MULTI_SZ_APPEND%, 0D710BC2-6368-4EB2-A829-CBBD45CE3BD2

[BenQ RD320U_DisplayPort.AddReg]
HKR,"MODES\3840,2160",Mode1,,"27-160.0,24.0-76.0,-,+"
HKR,,MaxResolution,,"3840,2160"
HKR,,DPMS,,1
HKR,,ICMProfileAC,0,"BenQ RD320U.icm"
HKR,,DisplayHdrLevel, %REG_MULTI_SZ_APPEND%, 0D710BC2-6368-4EB2-A829-CBBD45CE3BD2

[BenQ RD320U_USB-C.AddReg]
HKR,"MODES\3840,2160",Mode1,,"27-160.0,24.0-76.0,-,+"
HKR,,MaxResolution,,"3840,2160"
HKR,,DPMS,,1
HKR,,ICMProfileAC,0,"BenQ RD320U.icm"
HKR,,DisplayHdrLevel, %REG_MULTI_SZ_APPEND%, 0D710BC2-6368-4EB2-A829-CBBD45CE3BD2


[BenQ RD320U_Hdmi1.CopyFiles]
BenQ RD320U.ICM

[BenQ RD320U_Hdmi2.CopyFiles]
BenQ RD320U.ICM

[BenQ RD320U_DisplayPort.CopyFiles]
BenQ RD320U.ICM

[BenQ RD320U_USB-C.CopyFiles]
BenQ RD320U.ICM


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

BenQ="BenQ"
diskname="BenQ RD320U Monitor installation diskette"
REG_MULTI_SZ_APPEND=0x00010008

BenQ RD320U_Hdmi1="BenQ RD320U"
BenQ RD320U_Hdmi2="BenQ RD320U"
BenQ RD320U_DisplayPort="BenQ RD320U"
BenQ RD320U_USB-C="BenQ RD320U"