; ###############################################################
;
;   HP_S240n.inf
;
;   Ver. 1.0.0.0        
;
;   Copyright (c)2016, HP Development Company, L.P.
;   All Rights Reserved
;
;   This is a Microsoft Windows x86/x64 setup information  
;   file for the HP EliteDisplay S240n Monitor.
; 
; ###############################################################


[Version]
signature="$WINDOWS NT$"
Class=Monitor
ClassGuid={4D36E96E-E325-11CE-BFC1-08002BE10318}
Provider=%HP%
CatalogFile=HP_S240n.cat
DriverVer=08/04/2016,1.0.0.0
PnpLockDown=1

[ControlFlags]
ExcludeFromSelect = MONITOR\HPN3374
ExcludeFromSelect = MONITOR\HPN3375
ExcludeFromSelect = MONITOR\HPN3376

[DestinationDirs]
DefaultDestDir=12
S240n.CopyFiles=23

[SourceDisksNames]
1=%Disk%,,,

[SourceDisksFiles]
HP_S240n.icm=1

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

[HP]
%S240n_DP1%=S240n_DP1.Install, Monitor\HPN3374
%S240n_DP2%=S240n_DP2.Install, Monitor\HPN3375
%S240n_H1%=S240n_H1.Install, Monitor\HPN3376

[HP.NTx86]
%S240n_DP1%=S240n_DP1.Install, Monitor\HPN3374
%S240n_DP2%=S240n_DP2.Install, Monitor\HPN3375
%S240n_H1%=S240n_H1.Install, Monitor\HPN3376

[HP.NTamd64]
%S240n_DP1%=S240n_DP1.Install, Monitor\HPN3374
%S240n_DP2%=S240n_DP2.Install, Monitor\HPN3375
%S240n_H1%=S240n_H1.Install, Monitor\HPN3376

[S240n_DP1.Install]
DelReg=DEL_CURRENT_REG
AddReg=S240n_DP1.AddReg, 1920, DPMS
CopyFiles=S240n.CopyFiles

[S240n_DP2.Install]
DelReg=DEL_CURRENT_REG
AddReg=S240n_DP2.AddReg, 1920, DPMS
CopyFiles=S240n.CopyFiles

[S240n_H1.Install]
DelReg=DEL_CURRENT_REG
AddReg=S240n_H1.AddReg, 1920, DPMS
CopyFiles=S240n.CopyFiles

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

[1920]
HKR,,MaxResolution,,"1920,1080"

[DPMS]
HKR,,DPMS,,1

[S240n_DP1.AddReg]
HKR,"MODES\1920,1080",Mode1,,"90-90,48-75,+,+"
HKR,,PreferredMode,,"1920,1080,60"
HKR,,ICMProfile,0,"HP_S240n.icm"

[S240n_DP2.AddReg]
HKR,"MODES\1920,1080",Mode1,,"90-90,48-75,+,+"
HKR,,PreferredMode,,"1920,1080,60"
HKR,,ICMProfile,0,"HP_S240n.icm"

[S240n_H1.AddReg]
HKR,"MODES\1920,1080",Mode1,,"86-86,48-75,+,+"
HKR,,PreferredMode,,"1920,1080,60"
HKR,,ICMProfile,0,"HP_S240n.icm"

[S240n.CopyFiles]
HP_S240n.icm

[S240n_DP1.Install.Services]                                     
AddService = monitor, %SPSVCINST_ASSOCSERVICE%, Monitor_Service.Install
[S240n_DP2.Install.Services]
AddService = monitor, %SPSVCINST_ASSOCSERVICE%, Monitor_Service.Install
[S240n_H1.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="Microsoft Monitor Class Function Driver Service"

HP="HP"
MonitorClassName="Monitor"
S240n_DP1="HP EliteDisplay S240n Monitor"
S240n_DP2="HP EliteDisplay S240n Monitor"
S240n_H1="HP EliteDisplay S240n Monitor"
Disk="HP S240n Driver Software"
