; Copyright 2024 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=CQ27G2X.cat
DriverVer=02/05/2024,1.0.0.0

[ControlFlags]
ExcludeFromSelect.nt=Monitor\AOCB213
ExcludeFromSelect.nt=Monitor\AOCB213


[DestinationDirs]
DefaultDestDir=11
B213_HDMI2.0.CopyFiles=23
B213_DP.CopyFiles=23

[SourceDisksNames]
1=%DiskName%,,,

[SourceDisksFiles]
CQ27G2X.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,ntamd64

[AOC]
%B213_HDMI2.0%=B213_HDMI2.0.Install, Monitor\AOCB213
%B213_DP%=B213_DP.Install, Monitor\AOCB213

[AOC.ntamd64]
%B213_HDMI2.0%=B213_HDMI2.0.Install, Monitor\AOCB213
%B213_DP%=B213_DP.Install, Monitor\AOCB213


[B213_HDMI2.0.Install]
DelReg=DEL_CURRENT_REG
AddReg=B213_HDMI2.0.AddReg
Copyfiles=B213_HDMI2.0.CopyFiles

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

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

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

[B213_HDMI2.0.AddReg]
HKR,"MODES\2560,1440",Mode1,,"30.0-230.0,48.0-144.0,+,+"
HKR,,MaxResolution,,"2560,1440"
HKR,,DPMS,,1
HKR,,ICMProfileAC,0,"CQ27G2X.icm"
HKR,,DisplayHdrLevel, %REG_MULTI_SZ_APPEND%, AE040E1F-51EC-4CAC-8501-E611C3C29CFE

[B213_DP.AddReg]
HKR,"MODES\2560,1440",Mode1,,"270.0-270.0,48.0-180.0,+,+"
HKR,,MaxResolution,,"2560,1440"
HKR,,DPMS,,1
HKR,,ICMProfileAC,0,"CQ27G2X.icm"
HKR,,DisplayHdrLevel, %REG_MULTI_SZ_APPEND%, AE040E1F-51EC-4CAC-8501-E611C3C29CFE


[B213_HDMI2.0.CopyFiles]
CQ27G2X.icm

[B213_DP.CopyFiles]
CQ27G2X.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

B213_HDMI2.0="AOC CQ27G2X"
B213_DP="AOC CQ27G2X"