; Copyright 2023 AOC International (Europe) GmbH
; This is a Setup information file for monitors with ICM file.


[Version]
signature="$CHICAGO$"
Class=Monitor
ClassGuid={4D36E96E-E325-11CE-BFC1-08002BE10318}
Provider=%AOC%
Catalogfile=Q27G4.cat
DriverVer=11/06/2023,1.0.0.0

[ControlFlags]
ExcludeFromSelect.nt=Monitor\AOCB403


[DestinationDirs]
DefaultDestDir=11
B403_Hdmi.CopyFiles=23
B403_DP.CopyFiles=23

[SourceDisksNames]
1=%DiskName%,,,

[SourceDisksFiles]
Q27G4.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]
%AOC%=AOC, NTx86,ntamd64

[AOC]
%B403_Hdmi%=B403_Hdmi.Install, Monitor\AOCB403
%B403_DP%=B403_DP.Install, Monitor\AOCB403

[AOC.NTx86]
%B403_Hdmi%=B403_Hdmi.Install, Monitor\AOCB403
%B403_DP%=B403_DP.Install, Monitor\AOCB403

[AOC.ntamd64]
%B403_Hdmi%=B403_Hdmi.Install, Monitor\AOCB403
%B403_DP%=B403_DP.Install, Monitor\AOCB403

[B403_Hdmi.Install]
DelReg=DEL_CURRENT_REG
AddReg=B403_Hdmi.AddReg
Copyfiles=B403_Hdmi.CopyFiles

[B403_DP.Install]
DelReg=DEL_CURRENT_REG
AddReg=B403_DP.AddReg
Copyfiles=B403_DP.CopyFiles


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

[B403_DP.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.

[B403_Hdmi.AddReg]
HKR,"MODES\2560,1440",Mode1,,"30.0-230.0,48.0-144.0,+,+"
HKR,,MaxResolution,,"2560,1440"
HKR,,DPMS,,1
HKR,,ICMProfileAC,0,"Q27G4.icm"
HKR,,DisplayHdrLevel, %REG_MULTI_SZ_APPEND%, 0D710BC2-6368-4EB2-A829-CBBD45CE3BD2,35FBD985-74F0-4271-AC61-295F11D71AEF

[B403_DP.AddReg]
HKR,"MODES\2560,1440",Mode1,,"280.0-280.0,48.0-180.0,+,+"
HKR,,MaxResolution,,"2560,1440"
HKR,,DPMS,,1
HKR,,ICMProfileAC,0,"Q27G4.icm"
HKR,,DisplayHdrLevel, %REG_MULTI_SZ_APPEND%, 0D710BC2-6368-4EB2-A829-CBBD45CE3BD2,35FBD985-74F0-4271-AC61-295F11D71AEF

[B403_Hdmi.CopyFiles]
Q27G4.icm
[B403_DP.CopyFiles]
Q27G4.icm

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

AOC="AOC International (Europe) GmbH"
DiskName="AOC Monitor Installation Disk"
REG_MULTI_SZ_APPEND=0x00010008

B403_Hdmi="AOC Q27G4"
B403_DP="AOC Q27G4"