; Copyright (C) 2018 Synaptics Incorporated, All Rights Reserved.
; synaWudfBioSpiHPHungerGameIntel.inf - Install the WBDI Spi user-mode driver - Synaptics WBDI 
;

[Version]
Signature="$Windows NT$"
Class=Biometric
ClassGuid={53D29EF7-377C-4D14-864B-EB3A85769359}
Provider=%SYNAUMDF%
CatalogFile=synaUMDFSGX.cat
DriverVer=05/21/2018,5.5.8.1093

[Manufacturer]
%SYNAUMDF%=Synaptics,NTamd64.10.0

[Synaptics.NTamd64.10.0]
; TODO: Change the VendorID (VID) and ProductID (PID) to match your device
%WBDIDeviceName%=Biometric_Install, ACPI\SYNA8007

[SourceDisksFiles]
synaTEE093.signed.dll=1
vtp093.dll=1
synaWudfBioSpi.dll=1
synaBscAdapter.dll=1 ; Synaptics engine adapter

WudfUpdate_01011.dll=1

[SourceDisksNames]
1 = %MediaDescription%

; =================== UMDF WBDI Spi Device - WBDI IOCTL interface ==================================

[Biometric_Install.NT]
CopyFiles=UMDriverCopy, WinBioEngineAdapterCopy, FWextCopy, SGXCopyFile
AddProperty=Device_Properties

[Biometric_Install.NT.hw]
AddReg=Biometric_Device_AddReg
AddReg=DriverPlugInAddReg, DatabaseAddReg

[Device_Properties]
DeviceIcon,,,,"%%SYSTEMROOT%%\system32\SysClass.dll,-201" ; This is where a device specific icon can be specified.

[Biometric_Install.NT.Services]
AddService=WUDFRd,0x000001fa,WUDFRD_ServiceInstall  ; flag 0x2 sets this as the service for the device

[Biometric_Install.NT.Wdf]
UmdfService=synaWudfBioSpi, synaWudfBioSpi_Install
UmdfServiceOrder=synaWudfBioSpi
UmdfImpersonationLevel   = Impersonation
UmdfDirectHardwareAccess = AllowDirectHardwareAccess

[Biometric_Install.NT.CoInstallers]
AddReg=CoInstallers_AddReg
CopyFiles=CoInstallers_CopyFiles

[synaWudfBioSpi_Install]
UmdfLibraryVersion=1.11.0
DriverCLSID = "{96710705-B080-4B29-A3EC-B16935AE663A}"
ServiceBinary = "%12%\UMDF\synaWudfBioSpi.dll"

[Biometric_Device_AddReg]
HKR,,"DeviceCharacteristics",0x10001,0x0100     ; Use same security checks on relative opens
HKR,,"Security",,"D:P(A;;GA;;;BA)(A;;GA;;;SY)"  ; Allow generic-all access to Built-in administrators and Local system
HKR,,"Exclusive",0x10001,1
HKR,,"SystemWakeEnabled",0x00010001,1
HKR,,"DeviceIdleEnabled",0x00010001,1
HKR,,"UserSetDeviceIdleEnabled",0x00010001,1
HKR,,"DefaultIdleState",0x00010001,1
HKR,,"DefaultIdleTimeout",0x00010001,5000


[DriverPlugInAddReg]
HKR,WinBio\Configurations,DefaultConfiguration,,"0"
HKR,WinBio\Configurations\0,SensorMode,0x10001,2                                ; Basic - 1, Advanced - 2
HKR,WinBio\Configurations\0,SystemSensor,0x10001,1                              ; UAC/Winlogon - 1
HKR,WinBio\Configurations\0,SensorAdapterBinary,,"synaBscAdapter.DLL"           ; Windows built-in WBDI sensor adapter.
HKR,WinBio\Configurations\0,EngineAdapterBinary,,"synaBscAdapter.DLL"           ; Vendor engine
HKR,WinBio\Configurations\0,StorageAdapterBinary,,"WinBioStorageAdapter.DLL"    ; Windows built-in storage adapter
HKR,WinBio\Configurations\0,DatabaseId,,"2239208F-C597-43FB-B632-21969EE2118B"  ; must have Synaptics specific GUID for DB

[DatabaseAddReg]
HKLM, System\CurrentControlSet\Services\WbioSrvc\Databases\{2239208F-C597-43FB-B632-21969EE2118B},BiometricType,0x00010001,0x00000008
HKLM, System\CurrentControlSet\Services\WbioSrvc\Databases\{2239208F-C597-43FB-B632-21969EE2118B},Attributes,0x00010001,0x00000001
HKLM, System\CurrentControlSet\Services\WbioSrvc\Databases\{2239208F-C597-43FB-B632-21969EE2118B},Format,,"00000000-0000-0000-0000-000000000000"
HKLM, System\CurrentControlSet\Services\WbioSrvc\Databases\{2239208F-C597-43FB-B632-21969EE2118B},InitialSize,0x00010001,0x00000020
HKLM, System\CurrentControlSet\Services\WbioSrvc\Databases\{2239208F-C597-43FB-B632-21969EE2118B},AutoCreate,0x00010001,0x00000001
HKLM, System\CurrentControlSet\Services\WbioSrvc\Databases\{2239208F-C597-43FB-B632-21969EE2118B},AutoName,0x00010001,0x00000001
HKLM, System\CurrentControlSet\Services\WbioSrvc\Databases\{2239208F-C597-43FB-B632-21969EE2118B},FilePath,,""
HKLM, System\CurrentControlSet\Services\WbioSrvc\Databases\{2239208F-C597-43FB-B632-21969EE2118B},ConnectionString,,""


[WUDFRD_ServiceInstall]
DisplayName = %WudfRdDisplayName%
ServiceType = 1
StartType = 3
ErrorControl = 1
ServiceBinary = %12%\WUDFRd.sys
LoadOrderGroup = Base


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

[CoInstallers_CopyFiles]
WudfUpdate_01011.dll

[DestinationDirs]
SGXCopyFile=11
UMDriverCopy=12,UMDF ; copy to \Windows\System32\drivers\UMDF
WinBioEngineAdapterCopy=11, WinBioPlugins; copy to \Windows\System32\WinBioPlugins
CoInstallers_CopyFiles=11

[UMDriverCopy]
synaWudfBioSpi.dll

[WinBioEngineAdapterCopy]
synaBscAdapter.dll

[SignatureAttributes]
synaBscAdapter.dll = SignatureAttributes.WindowsHello

[SignatureAttributes.WindowsHello]
WindowsHello = true

[FWextCopy]

[SGXCopyFile]
synaTEE093.signed.dll
vtp093.dll

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

[Strings]
SYNAUMDF="Synaptics Incorporated"
MediaDescription="Synaptics Fingerprint Sensor Driver Installation Media"
ClassName="Biometric Devices"
WudfRdDisplayName="Windows Driver Foundation - User-mode Driver Framework Reflector"
WBDIDeviceName="Synaptics WBDI Fingerprint Reader - sgx SPI 093" 
CustomerProject="HPHungerGameIntel-093"


