;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; File:        QCPSAutoReg.inf
; 
; Description: INF file for installing the Qualcomm PSAutoReg Driver
;    
; Copyright (c) 2021 by Qualcomm Technologies, Inc. All Rights Reserved.
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

[Version]
Signature="$Windows NT$"
Class=SYSTEM
ClassGuid=%SystemClassGuid%
Provider=%ProviderName%
CatalogFile=surface_psautoreg.cat
DriverVer = 07/30/2024,0.0.426.0
PnpLockdown=1


[Manufacturer]
%ManufacturerName%=Standard,NTamd64.10.0...19041

[Standard.NTamd64.10.0...19041]
%DeviceName%=PSAutoReg_Install,%DeviceID%

[SourceDisksFiles]
qcpsautoreg.dll=1

[SourceDisksNames]
1 = %DiskName%

; =================== UMDF Device ==================================

[PSAutoReg_Install.NT]
CopyFiles=UMDriverCopy
Include=Include=WUDFRD.inf
Needs=WUDFRD.NT

[PSAutoReg_Install.NT.hw]
AddReg=PSAutoReg_Inst_HW_AddReg
Include=WUDFRD.inf
Needs=WUDFRD.NT.HW

[PSAutoReg_Install.NT.Services]
Include=WUDFRD.inf
Needs=WUDFRD.NT.Services

[PSAutoReg_Install.NT.CoInstallers]
AddReg=CoInstallers_AddReg

[PSAutoReg_Install.NT.Wdf]
UmdfService=PSAutoReg,PSAutoReg_Install
UmdfServiceOrder=PSAutoReg
UmdfHostProcessSharing = ProcessSharingDisabled

[PSAutoReg_Install]
UmdfLibraryVersion=2.15.0 
ServiceBinary=%13%\qcpsautoreg.dll
AddReg = PsAutoReg_AddReg

[CoInstallers_AddReg]
HKR,,CoInstallers32,0x00010000,"WUDFCoinstaller.dll"

[PsAutoReg_AddReg]
HKR,Parameters,PSAutoRegClassGuid,%REG_SZ%,%SystemClassGuid%
HKR,Parameters,PSAutoRegDeviceID,%REG_SZ%,%DeviceID%

[PSAutoReg_Inst_HW_AddReg]
HKR,"WDF","WdfDirectedPowerTransitionEnable",0x00010001,1
;set below registry to 1 to hide the device on UI.
HKR,,DisplayInUIDisabled,%REG_DWORD%,0

[DestinationDirs]
UMDriverCopy=13	; 	DriverStore

[UMDriverCopy]
qcpsautoreg.dll

; =================== Generic ==================================

[Strings]
ProviderName      = "Surface"
ManufacturerName  = "Microsoft"
ClassName         = "SYSTEM" 
SystemClassGuid   = "{4d36e97d-e325-11ce-bfc1-08002be10318}"
DeviceID          = "{05C9354C-AFD7-40BE-8B68-323EC7FFF97D}\QcPsAutoReg_MSFT_DE" ; TODO: edit hw-id
DiskName          = "Qualcomm PSAutoReg Installation Disk"
WudfRdDisplayName = "Qualcomm PSAutoReg Reflector Device"
DeviceName        = "Qualcomm PSAutoReg Device"
REG_SZ            = 0x00000000
REG_DWORD         = 0x00010001
