;==================================================
; P27QD-40.inf       Version: 1.0	01/09/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 = P27QD-40.cat
DriverVer   = 01/09/2025, 1.0.0.0
PnpLockDown = 1

[SourceDisksNames]
1 = %DiskName%

[SourceDisksFiles]
Lenovo_P27QD-40.icm = 1

[DestinationDirs]
P27QD-40.Copyfiles = 23

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

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

%P27QD-40.TypeC_PBP%     	= P27QD-40.TypeC_PBP.Install, Monitor\64B3
%P27QD-40.HDMI_PBP%     	= P27QD-40.HDMI_PBP.Install, Monitor\64B3
%P27QD-40.DP_PBP%     	= P27QD-40.DP_PBP.Install, Monitor\64B3

%P27QD-40.TypeC_PIP%     	= P27QD-40.TypeC_PIP.Install, Monitor\64B3
%P27QD-40.HDMI_PIP%     	= P27QD-40.HDMI_PIP.Install, Monitor\64B3
%P27QD-40.DP_PIP%     	= P27QD-40.DP_PIP.Install, Monitor\64B3

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

%P27QD-40.TypeC_PBP%     	= P27QD-40.TypeC_PBP.Install, Monitor\64B3
%P27QD-40.HDMI_PBP%     	= P27QD-40.HDMI_PBP.Install, Monitor\64B3
%P27QD-40.DP_PBP%     	= P27QD-40.DP_PBP.Install, Monitor\64B3

%P27QD-40.TypeC_PIP%     	= P27QD-40.TypeC_PIP.Install, Monitor\64B3
%P27QD-40.HDMI_PIP%     	= P27QD-40.HDMI_PIP.Install, Monitor\64B3
%P27QD-40.DP_PIP%     	= P27QD-40.DP_PIP.Install, Monitor\64B3

[P27QD-40.TypeC.Install]
DelReg		= DEL_CURRENT_REG
AddReg		= P27QD-40.TypeC.AddReg, 2560, DPMS
CopyFiles	= P27QD-40.CopyFiles

[P27QD-40.HDMI.Install]
DelReg		= DEL_CURRENT_REG
AddReg		= P27QD-40.HDMI.AddReg, 2560, DPMS
CopyFiles	= P27QD-40.CopyFiles

[P27QD-40.DP.Install]
DelReg		= DEL_CURRENT_REG
AddReg		= P27QD-40.DP.AddReg, 2560, DPMS
CopyFiles	= P27QD-40.CopyFiles

[P27QD-40.TypeC_PBP.Install]
DelReg		= DEL_CURRENT_REG
AddReg		= P27QD-40.TypeC_PBP.AddReg, 1280, DPMS
CopyFiles	= P27QD-40.CopyFiles

[P27QD-40.HDMI_PBP.Install]
DelReg		= DEL_CURRENT_REG
AddReg		= P27QD-40.HDMI_PBP.AddReg, 1280, DPMS
CopyFiles	= P27QD-40.CopyFiles

[P27QD-40.DP_PBP.Install]
DelReg		= DEL_CURRENT_REG
AddReg		= P27QD-40.DP_PBP.AddReg, 1280, DPMS
CopyFiles	= P27QD-40.CopyFiles

[P27QD-40.TypeC_PIP.Install]
DelReg		= DEL_CURRENT_REG
AddReg		= P27QD-40.TypeC_PIP.AddReg, 720, DPMS
CopyFiles	= P27QD-40.CopyFiles

[P27QD-40.HDMI_PIP.Install]
DelReg		= DEL_CURRENT_REG
AddReg		= P27QD-40.HDMI_PIP.AddReg, 720, DPMS
CopyFiles	= P27QD-40.CopyFiles

[P27QD-40.DP_PIP.Install]
DelReg		= DEL_CURRENT_REG
AddReg		= P27QD-40.DP_PIP.AddReg, 720, DPMS
CopyFiles	= P27QD-40.CopyFiles

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

[P27QD-40.TypeC.AddReg]
HKR,"MODES\2560,1440",Mode1,,"30.0-190.0,24.0-120.0,+,-"
HKR,,ICMProfile,0,"Lenovo_P27QD-40.icm"

[P27QD-40.HDMI.AddReg]
HKR,"MODES\2560,1440",Mode1,,"30.0-190.0,24.0-120.0,+,-"
HKR,,ICMProfile,0,"Lenovo_P27QD-40.icm"

[P27QD-40.DP.AddReg]
HKR,"MODES\2560,1440",Mode1,,"30.0-190.0,24.0-120.0,+,-"
HKR,,ICMProfile,0,"Lenovo_P27QD-40.icm"



[P27QD-40.TypeC_PBP.AddReg]
HKR,"MODES\1280,1440",Mode1,,"24.0-75.0,30.0-90.0,+,-"
HKR,,ICMProfile,0,"Lenovo_P27QD-40.icm"

[P27QD-40.HDMI_PBP.AddReg]
HKR,"MODES\1280,1440",Mode1,,"24.0-75.0,56-90.0,+,-"
HKR,,ICMProfile,0,"Lenovo_P27QD-40.icm"

[P27QD-40.DP_PBP.AddReg]
HKR,"MODES\1280,1440",Mode1,,"24.0-75.0,56-90.0,+,-"
HKR,,ICMProfile,0,"Lenovo_P27QD-40.icm"



[P27QD-40.TypeC_PIP.AddReg]
HKR,"MODES\1280,720",Mode1,,"24.0-75.0,30.0-90.0,+,-"
HKR,,ICMProfile,0,"Lenovo_P27QD-40.icm"

[P27QD-40.HDMI_PIP.AddReg]
HKR,"MODES\1280,720",Mode1,,"24.0-75.0,30.0-90.0,+,-"
HKR,,ICMProfile,0,"Lenovo_P27QD-40.icm"

[P27QD-40.DP_PIP.AddReg]
HKR,"MODES\1280,720",Mode1,,"24.0-75.0,30.0-90.0,+,-"
HKR,,ICMProfile,0,"Lenovo_P27QD-40.icm"



[2560]
HKR,,MaxResolution,,"2560,1440"

[1280]
HKR,,MaxResolution,,"1280,1440"

[720]
HKR,,MaxResolution,,"1280,720"

[DPMS]
HKR,,DPMS,,1

[P27QD-40.CopyFiles]
Lenovo_P27QD-40.icm

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

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

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

[P27QD-40.TypeC_PBP.Install.Services]
AddService = monitor, %SPSVCINST_ASSOCSERVICE%, Monitor_Service.Install

[P27QD-40.HDMI_PBP.Install.Services]
AddService = monitor, %SPSVCINST_ASSOCSERVICE%, Monitor_Service.Install

[P27QD-40.DP_PBP.Install.Services]
AddService = monitor, %SPSVCINST_ASSOCSERVICE%, Monitor_Service.Install

[P27QD-40.TypeC_PIP.Install.Services]
AddService = monitor, %SPSVCINST_ASSOCSERVICE%, Monitor_Service.Install

[P27QD-40.HDMI_PIP.Install.Services]
AddService = monitor, %SPSVCINST_ASSOCSERVICE%, Monitor_Service.Install

[P27QD-40.DP_PIP.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"

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

P27QD-40.TypeC_PBP     	= "Lenovo P27QD-40 (TypeC PBP)"
P27QD-40.HDMI_PBP     	= "Lenovo P27QD-40 (HDMI PBP)"
P27QD-40.DP_PBP     	= "Lenovo P27QD-40 (DP PBP)"

P27QD-40.TypeC_PIP     	= "Lenovo P27QD-40 (TypeC PIP)"
P27QD-40.HDMI_PIP     	= "Lenovo P27QD-40 (HDMI PIP)"
P27QD-40.DP_PIP     	= "Lenovo P27QD-40 (DP PIP)"



