; ################################################################
;
;   HP_M24.inf        
;
;   Ver. 1.0.0.1
;
;   Copyright (c)2021, HP Development Company, L.P.
;   All Rights Reserved
;
;   This is a Microsoft Windows x64 setup information file
;   for the HP M24 Webcam Monitor.
; 
; ################################################################

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

[ControlFlags]
ExcludeFromSelect = MONITOR\HPN3778
ExcludeFromSelect = MONITOR\HPN3779
ExcludeFromSelect = MONITOR\HPN377A

[SourceDisksNames]
1=%Disk%,,,

[SourceDisksFiles]
HP_M24.icm=1

[DestinationDirs]
DefaultDestDir=12
M24.CopyFiles=23

[Manufacturer]
%HP%=HP,NTamd64

[HP]

[HP.NTamd64]
%M24_USBC%=M24_USBC.Install, Monitor\HPN3778
%M24_DP%=M24_DP.Install, Monitor\HPN3779
%M24_H%=M24_H.Install, Monitor\HPN377A

[M24_USBC.Install]
DelReg=DEL_CURRENT_REG
AddReg=M24_USBC.AddReg, 1920, DPMS
CopyFiles=M24.CopyFiles

[M24_DP.Install]
DelReg=DEL_CURRENT_REG
AddReg=M24_DP.AddReg, 1920, DPMS
CopyFiles=M24.CopyFiles

[M24_H.Install]
DelReg=DEL_CURRENT_REG
AddReg=M24_H.AddReg, 1920, DPMS
CopyFiles=M24.CopyFiles

[M24_USBC.Install.Software]
AddSoftware=UWPAppxInstall,, UWPAppx_Inst

[M24_DP.Install.Software]
AddSoftware=UWPAppxInstall,, UWPAppx_Inst

[M24_H.Install.Software]
AddSoftware=UWPAppxInstall,, UWPAppx_Inst

[UWPAppx_Inst]
SoftwareType=2
SoftwareFlags=0
SoftwareID=pfn://AD2F1837.HPDisplayCenter_v10z8vjag6ke6

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

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

[DPMS]
HKR,,DPMS,,1

[M24_USBC.AddReg]
HKR,"MODES\1920,1080",Mode1,,"30-85,48-75,+,-"
HKR,,PreferredMode,,"1920,1080,60"
HKR,,ICMProfile,0,"HP_M24.icm"

[M24_DP.AddReg]
HKR,"MODES\1920,1080",Mode1,,"85-85,48-75,+,-"
HKR,,PreferredMode,,"1920,1080,60"
HKR,,ICMProfile,0,"HP_M24.icm"

[M24_H.AddReg]
HKR,"MODES\1920,1080",Mode1,,"30-85,48-75,+,-"
HKR,,PreferredMode,,"1920,1080,60"
HKR,,ICMProfile,0,"HP_M24.icm"

[M24.CopyFiles]
HP_M24.icm

[M24_USBC.Install.Services]
AddService = monitor, %SPSVCINST_ASSOCSERVICE%, Monitor_Service.Install
[M24_DP.Install.Services]
AddService = monitor, %SPSVCINST_ASSOCSERVICE%, Monitor_Service.Install
[M24_H.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"
M24_USBC="HP M24 Webcam Monitor"
M24_DP="HP M24 Webcam Monitor"
M24_H="HP M24 Webcam Monitor"
Disk="HP M24 Driver Software"
