;================================ 
;MAG321UP OLED.INF 05/16/2024 Ver. 1.0
;Copyright 2024 MSI Inc.
;This is a Microsoft Windows setup information file for the MSI Color Monitor.
;================================
 
[version]
signature="$CHICAGO$"
Class=Monitor
ClassGuid={4D36E96E-E325-11CE-BFC1-08002BE10318}
Provider=%MSI%
CatalogFile=MAG321UP OLED.cat
DriverVer=05/16/2024,1.0.0.0

[ControlFlags]
ExcludeFromSelect.nt=Monitor\MSI4DD3

[DestinationDirs]
DefaultDestDir=11
4DD3_DP(120hz).CopyFiles=23
4DD3_DP(165hz).CopyFiles=23
4DD3_HDMI.CopyFiles=23

[SourceDisksNames]
1=%DiskName%,,,

[SourceDisksFiles]
MAG321UP OLED.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]
%MSI%=MSI, NTx86, NTamd64

[MSI]
%4DD3_DP(120hz)%=4DD3_DP(120hz).Install, Monitor\MSI4DD3
%4DD3_DP(165hz)%=4DD3_DP(165hz).Install, Monitor\MSI4DD3
%4DD3_HDMI%=4DD3_HDMI.Install, Monitor\MSI4DD3

[MSI.NTx86]
%4DD3_DP(120hz)%=4DD3_DP(120hz).Install, Monitor\MSI4DD3
%4DD3_DP(165hz)%=4DD3_DP(165hz).Install, Monitor\MSI4DD3
%4DD3_HDMI%=4DD3_HDMI.Install, Monitor\MSI4DD3

[MSI.NTamd64]
%4DD3_DP(120hz)%=4DD3_DP(120hz).Install, Monitor\MSI4DD3
%4DD3_DP(165hz)%=4DD3_DP(165hz).Install, Monitor\MSI4DD3
%4DD3_HDMI%=4DD3_HDMI.Install, Monitor\MSI4DD3

[4DD3_DP(120hz).Install]
DelReg=DEL_CURRENT_REG
AddReg=4DD3_DP(120hz).AddReg
Copyfiles=4DD3_DP(120hz).CopyFiles

[4DD3_DP(165hz).Install]
DelReg=DEL_CURRENT_REG
AddReg=4DD3_DP(165hz).AddReg
Copyfiles=4DD3_DP(165hz).CopyFiles

[4DD3_HDMI.Install]
DelReg=DEL_CURRENT_REG
AddReg=4DD3_HDMI.AddReg
Copyfiles=4DD3_HDMI.CopyFiles


[4DD3_DP(120hz).Install.Services]
AddService = monitor, %SPSVCINST_ASSOCSERVICE%,Monitor_Service.Install

[4DD3_DP(165hz).Install.Services]
AddService = monitor, %SPSVCINST_ASSOCSERVICE%,Monitor_Service.Install

[4DD3_HDMI.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.

[4DD3_DP(120hz).AddReg]
HKR,"MODES\3840,2160",Mode1,,"400.0-400.0,48.0-120.0,+,+"
HKR,,MaxResolution,,"3840,2160"
HKR,,DPMS,,1
HKR,,ICMProfileAC,0,"MAG321UP OLED.icm"
HKR,,DisplayHdrLevel, %REG_MULTI_SZ_APPEND%, FB4CB49B-F5A8-4084-800C-EB38E9CA16DE, F9310F0E-93B2-4A58-8642-17358D8CB2E3

[4DD3_DP(165hz).AddReg]
HKR,"MODES\3840,2160",Mode1,,"400.0-400.0,48.0-165.0,+,+"
HKR,,MaxResolution,,"3840,2160"
HKR,,DPMS,,1
HKR,,ICMProfileAC,0,"MAG321UP OLED.icm"
HKR,,DisplayHdrLevel, %REG_MULTI_SZ_APPEND%, FB4CB49B-F5A8-4084-800C-EB38E9CA16DE, F9310F0E-93B2-4A58-8642-17358D8CB2E3

[4DD3_HDMI.AddReg]
HKR,"MODES\3840,2160",Mode1,,"30.0-400.0,48.0-165.0,+,+"
HKR,,MaxResolution,,"3840,2160"
HKR,,DPMS,,1
HKR,,ICMProfileAC,0,"MAG321UP OLED.icm"
HKR,,DisplayHdrLevel, %REG_MULTI_SZ_APPEND%, FB4CB49B-F5A8-4084-800C-EB38E9CA16DE, F9310F0E-93B2-4A58-8642-17358D8CB2E3


[4DD3_DP(120hz).CopyFiles]
MAG321UP OLED.icm

[4DD3_DP(165hz).CopyFiles]
MAG321UP OLED.icm

[4DD3_HDMI.CopyFiles]
MAG321UP OLED.icm

[Strings]

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

DiskName="MSI Monitor Installation Disk"
MSI="MSI Computer Inc."
REG_MULTI_SZ_APPEND=0x00010008

4DD3_DP(120hz)="MSI MAG 321UP QD-OLED"
4DD3_DP(165hz)="MSI MAG 321UP QD-OLED"
4DD3_HDMI="MSI MAG 321UP QD-OLED"