;
; WinbioDriverSpiUmdf.inf
;

[Version]
Signature="$Windows NT$"
Class=Biometric;Sample ; TODO: edit Class
ClassGuid={53d29ef7-377c-4d14-864b-eb3a85769359};{78A1C341-4539-11d3-B88D-00C04FAD5171} ; TODO: edit ClassGuid
Provider=%ManufacturerName%
CatalogFile=WinbioDriverSpiUmdf.cat
DriverVer = 11/21/2017,1.0.0.13

[Manufacturer]
%ManufacturerName%=Standard,NTamd64

[Standard.NTamd64]
%DeviceName%=MyDevice_Install, ACPI\FTE7001; TODO: edit hw-id

;[ClassInstall32]
;AddReg=SampleClass_RegistryAdd

;[SampleClass_RegistryAdd]
;HKR,,,,%ClassName%
;HKR,,Icon,,"-10"

[SourceDisksFiles]
WinbioDriverSpiUmdf.dll=1
ftWbioEngineAdapter.dll=1

[SourceDisksNames]
1 = %DiskName%

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

[MyDevice_Install.NT]
CopyFiles=UMDriverCopy,UMEngineCopy

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

[MyDevice_Install.NT.Services]
AddService=WUDFRd,0x000001fa,WUDFRD_ServiceInstall

;[MyDevice_Install.NT.CoInstallers]
;AddReg=CoInstallers_AddReg

[MyDevice_Install.NT.Wdf]
UmdfService=WinbioDriverSpiUmdf,WinbioDriverSpiUmdf_Install
UmdfServiceOrder=WinbioDriverSpiUmdf
UmdfDirectHardwareAccess=AllowDirectHardwareAccess

[WinbioDriverSpiUmdf_Install]
UmdfLibraryVersion=2.15.0 
DriverCLSID = "{F1926AC8-BA1F-C415-EF9C-6AF67D14EDE5}" 
ServiceBinary=%12%\UMDF\WinbioDriverSpiUmdf.dll

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

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

[DestinationDirs]
UMDriverCopy=12,UMDF ; copy to drivers\umdf
UMEngineCopy=11, WinBioPlugins; copy to \Windows\System32\WinBioPlugins

[UMDriverCopy]
WinbioDriverSpiUmdf.dll
[UMEngineCopy]
ftWbioEngineAdapter.dll

[SignatureAttributes]
ftWbioEngineAdapter.dll=SignatureAttributes.WindowsHello

[SignatureAttributes.WindowsHello]
WindowsHello=true

[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,,"LowerFilters",0x00010008,"WinUsb"         ; FLG_ADDREG_TYPE_MULTI_SZ | FLG_ADDREG_APPEND
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,1                                ; Basic - 1, Advanced - 2
HKR,WinBio\Configurations\0,SystemSensor,0x10001,1                              ; UAC/Winlogon - 1
HKR,WinBio\Configurations\0,SensorAdapterBinary,,"WinBioSensorAdapter.DLL"      ; Windows built-in WBDI sensor adapter - see SensorAdapter.dll for sample vendor adapter
HKR,WinBio\Configurations\0,EngineAdapterBinary,,"ftWbioEngineAdapter.DLL"          ; Vendor engine
HKR,WinBio\Configurations\0,StorageAdapterBinary,,"WinBioStorageAdapter.DLL"    ; Windows built-in storage adapter - see StorageAdapter.dll for sample vendor adapter
;HKR,WinBio\Configurations\0,DatabaseId,,"C617E1C5-5AD2-45FF-A944-71E9C9E394CE"  ; Unique database GUID
HKR,WinBio\Configurations\0,DatabaseId,,"1000F3B5-9412-490e-97BA-4AA5A1A171AE"  ; Unique database GUID

[DatabaseAddReg]
HKLM,System\CurrentControlSet\Services\WbioSrvc\Databases\{1000F3B5-9412-490e-97BA-4AA5A1A171AE},BiometricType,0x00010001,0x00000008
HKLM,System\CurrentControlSet\Services\WbioSrvc\Databases\{1000F3B5-9412-490e-97BA-4AA5A1A171AE},Attributes,0x00010001,0x00000001
HKLM,System\CurrentControlSet\Services\WbioSrvc\Databases\{1000F3B5-9412-490e-97BA-4AA5A1A171AE},Format,,"CDAE92F1-5B32-4a91-94A8-56ACA204B3B9"
HKLM,System\CurrentControlSet\Services\WbioSrvc\Databases\{1000F3B5-9412-490e-97BA-4AA5A1A171AE},InitialSize,0x00010001,0x00000020
HKLM,System\CurrentControlSet\Services\WbioSrvc\Databases\{1000F3B5-9412-490e-97BA-4AA5A1A171AE},AutoCreate,0x00010001,0x00000001
HKLM,System\CurrentControlSet\Services\WbioSrvc\Databases\{1000F3B5-9412-490e-97BA-4AA5A1A171AE},AutoName,0x00010001,0x00000001
HKLM,System\CurrentControlSet\Services\WbioSrvc\Databases\{1000F3B5-9412-490e-97BA-4AA5A1A171AE},FilePath,,""
HKLM,System\CurrentControlSet\Services\WbioSrvc\Databases\{1000F3B5-9412-490e-97BA-4AA5A1A171AE},ConnectionString,,""
; =================== Generic ==================================

[Strings]
ManufacturerName="FocalTech Electronics(ShenZhen)Co.,Ltd" ;TODO: Replace with your manufacturer name
ClassName="Focaltech Fingerprint Sensor" ; TODO: edit ClassName
DiskName = "WinbioDriverSpiUmdf Installation Disk"
WudfRdDisplayName="Windows Driver Foundation - User-mode Driver Framework Reflector"
DeviceName="FocalTech Fingerprint reader"
