; 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=CQ27G4.cat
DriverVer=05/17/2024,1.0.0.0

[ControlFlags]
ExcludeFromSelect.nt=Monitor\AOCB407


[DestinationDirs]
DefaultDestDir=11
B407_Hdmi.CopyFiles=23
B407_DP.CopyFiles=23

[SourceDisksNames]
1=%DiskName%,,,

[SourceDisksFiles]
CQ27G4.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]
%B407_Hdmi%=B407_Hdmi.Install, Monitor\AOCB407
%B407_DP%=B407_DP.Install, Monitor\AOCB407

[AOC.ntamd64]
%B407_Hdmi%=B407_Hdmi.Install, Monitor\AOCB407
%B407_DP%=B407_DP.Install, Monitor\AOCB407

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

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


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

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

[B407_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,"CQ27G4.icm"
HKR,,DisplayHdrLevel, %REG_MULTI_SZ_APPEND%, E55026B6-496B-4ACC-B371-A1211D829ABD

[B407_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,"CQ27G4.icm"
HKR,,DisplayHdrLevel, %REG_MULTI_SZ_APPEND%, E55026B6-496B-4ACC-B371-A1211D829ABD

[B407_Hdmi.CopyFiles]
CQ27G4.icm
[B407_DP.CopyFiles]
CQ27G4.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

B407_Hdmi="AOC CQ27G4"
B407_DP="AOC CQ27G4"