;==================================================
; T27UD-40.inf       Version: 1.0	01/08/2025
;
; This is setup information file for monitor.
;
; Copyright (c) 2025 Lenovo Inc. All rights reserved.
;==================================================

[Version]
Signature   = "$Windows NT$"
Class       = Monitor
ClassGuid   = {4d36e96e-e325-11ce-bfc1-08002be10318}
Provider    = %Lenovo%
CatalogFile = T27UD-40.cat
DriverVer   = 01/08/2025, 1.0.0.0
PnpLockDown = 1

[SourceDisksNames]
1 = %DiskName%

[SourceDisksFiles]
Lenovo_T27UD-40.icm = 1

[DestinationDirs]
T27UD-40.Copyfiles = 23

[Manufacturer]
%Lenovo% = Lenovo, NTx86, NTamd64

[Lenovo.NTx86]
%T27UD-40.TypeC%     	= T27UD-40.TypeC.Install, Monitor\64AF
%T27UD-40.HDMI%     	= T27UD-40.HDMI.Install, Monitor\64AF
%T27UD-40.DP%     	= T27UD-40.DP.Install, Monitor\64AF

[Lenovo.NTamd64]
%T27UD-40.TypeC%     	= T27UD-40.TypeC.Install, Monitor\64AF
%T27UD-40.HDMI%     	= T27UD-40.HDMI.Install, Monitor\64AF
%T27UD-40.DP%     	= T27UD-40.DP.Install, Monitor\64AF

[T27UD-40.TypeC.Install]
DelReg		= DEL_CURRENT_REG
AddReg		= T27UD-40.TypeC.AddReg, 3840, DPMS
CopyFiles	= T27UD-40.CopyFiles

[T27UD-40.HDMI.Install]
DelReg		= DEL_CURRENT_REG
AddReg		= T27UD-40.HDMI.AddReg, 3840, DPMS
CopyFiles	= T27UD-40.CopyFiles

[T27UD-40.DP.Install]
DelReg		= DEL_CURRENT_REG
AddReg		= T27UD-40.DP.AddReg, 3840, DPMS
CopyFiles	= T27UD-40.CopyFiles

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

[T27UD-40.TypeC.AddReg]
HKR,"MODES\3840,2160",Mode1,,"30.0-170.0,48.0-76.0,+,-"
HKR,,ICMProfile,0,"Lenovo_T27UD-40.icm"

[T27UD-40.HDMI.AddReg]
HKR,"MODES\3840,2160",Mode1,,"30.0-160.0,47.0-76.0,+,-"
HKR,,ICMProfile,0,"Lenovo_T27UD-40.icm"

[T27UD-40.DP.AddReg]
HKR,"MODES\3840,2160",Mode1,,"30.0-170.0,48.0-76.0,+,-"
HKR,,ICMProfile,0,"Lenovo_T27UD-40.icm"



[3840]
HKR,,MaxResolution,,"3840,2160"

[DPMS]
HKR,,DPMS,,1

[T27UD-40.CopyFiles]
Lenovo_T27UD-40.icm

[T27UD-40.TypeC.Install.Services]
AddService = monitor, %SPSVCINST_ASSOCSERVICE%, Monitor_Service.Install

[T27UD-40.HDMI.Install.Services]
AddService = monitor, %SPSVCINST_ASSOCSERVICE%, Monitor_Service.Install

[T27UD-40.DP.Install.Services]
AddService = monitor, %SPSVCINST_ASSOCSERVICE%, Monitor_Service.Install

[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

[Strings]
SPSVCINST_ASSOCSERVICE	= 0x00000002
Monitor.SVCDESC	= "Monitor Class Function Driver Service"
Lenovo		= "Lenovo Inc."
DiskName	= "Lenovo Monitor Installation Disk"

T27UD-40.TypeC		= "Lenovo T27UD-40 (TypeC)"
T27UD-40.HDMI     	= "Lenovo T27UD-40 (HDMI)"
T27UD-40.DP     	= "Lenovo T27UD-40 (DP)"

REG_MULTI_SZ_APPEND = 0x00010008

