; Copyright (C) 2006-2013 Validity Sensors, Inc, All Rights Reserved.
; wbf_spi.inf
;

[Version]
Signature="$Windows NT$"
Class=Biometric
ClassGuid={53D29EF7-377C-4D14-864B-EB3A85769359}
Provider=%VFSUMDF%
CatalogFile=wbf_spi_eem.cat
DriverVer=08/21/2014,4.8.106.01

; ========== Manufacturer/Models sections ===========
[Manufacturer]
%VFSUMDF%=Validity,NTx86,NTamd64

[Validity.NTx86]
%DeviceName%=BiometricDevice_Install, ACPI\VFSI6101
[Validity.NTamd64]
%DeviceName%=BiometricDevice_Install, ACPI\VFSI6101

;[ClassInstall32]
;AddReg=BiometricClass_RegistryAdd

;[BiometricClass_RegistryAdd]
;HKR,,,,%ClassName%
;HKR,,Icon,,"%SYSTEMROOT%\system32\SysClass.dll,-201"

; ================= Source Media Section =====================
[SourceDisksNames]
1 = %DISK_NAME%,,,\x86
2 = %DISK_NAME%,,,\x64

[SourceDisksFiles.x86]
wbf_spi.dll=1
vcsAPIFORWBFSPI.dll=1
vcsWBFEngineAdapter.dll=1
msvcr120.dll=1
fpCSEvtSvc.exe=1
; TODO: redist binaries not available in M3.  Uncomment for final release
;WudfUpdate_$UMDFCOINSTALLERVERSION$.dll=1

[SourceDisksFiles.amd64]
wbf_spi.dll=2
vcsAPIFORWBFSPI.dll=2
vcsWBFEngineAdapter.dll=2
msvcr120.dll=2
fpCSEvtSvc.exe=2
; TODO: redist binaries not available in M3.  Uncomment for final release
;WudfUpdate_$UMDFCOINSTALLERVERSION$.dll=1

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

[BiometricDevice_Install.NT]
CopyFiles=UMDriverCopy
CopyFiles=VCSAPIForWbfCopy
CopyFiles=AdaptersCopy

[BiometricDevice_Install.NT.hw]
AddReg=Biometric_Device_AddReg
AddReg=DriverPlugInAddReg
AddReg=USDKAddReg

[BiometricDevice_Install.NT.Services]
AddService=WUDFRd,0x000001fa,WUDFRD_ServiceInstall
AddService=fpCsEvtSvc,0x000009f8,fpCsEvtSvc_ServiceInstall  ; Validity power management service for WBF.

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

[BiometricDevice_Install.NT.Wdf]
UmdfService=wbf_spi,wbf_spi_Install
UmdfServiceOrder=wbf_spi
UmdfImpersonationLevel   = Impersonation
UmdfDirectHardwareAccess = AllowDirectHardwareAccess

[wbf_spi_Install]
UmdfLibraryVersion=1.11.0 
ServiceBinary=%12%\UMDF\wbf_spi.dll
DriverCLSID={388a06cb-fe42-4d50-a30b-ed200d665792}

[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,"WudfPowerPolicySettings","WdfDefaultIdleInWorkingState",0x10001,1   ; 1 - Enable idle in working state, 0 - Disable
HKR,"WudfPowerPolicySettings","WdfDefaultWakeFromSleepState",0x10001,0   ; Wake from sleep state is not supported

[DriverPlugInAddReg]
HKR,WinBio\Configurations,DefaultConfiguration,,"1"

; Winbio configuration-0 (VSM)
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.
HKR,WinBio\Configurations\0,EngineAdapterBinary,,"vcsWBFEngineAdapter.DLL"      ; Vendor engine
HKR,WinBio\Configurations\0,StorageAdapterBinary,,"winbioStorageAdapter.DLL"    ; Windows built-in storage adapter
HKR,WinBio\Configurations\0,DatabaseId,,"1000F3B5-9412-490e-97BA-4AA5A1A171AE"  ; must have Validity specific GUID for DB

; Winbio configuration-1 (EEM)
HKR,WinBio\Configurations\1,SensorMode,0x10001,1                                ; Basic - 1, Advanced - 2
HKR,WinBio\Configurations\1,SystemSensor,0x10001,1                              ; UAC/Winlogon - 1
HKR,WinBio\Configurations\1,SensorAdapterBinary,,"WinBioSensorAdapter.DLL"      ; Windows built-in WBDI sensor adapter.
HKR,WinBio\Configurations\1,EngineAdapterBinary,,"vcsWBFEngineAdapter.DLL"      ; Vendor engine
HKR,WinBio\Configurations\1,StorageAdapterBinary,,"winbioStorageAdapter.DLL"    ; Windows built-in storage adapter
HKR,WinBio\Configurations\1,DatabaseId,,"6D30BE4B-22DA-48BE-A8FF-6E50E9042528"  ; must have Validity specific GUID for DB

[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,,"00000000-0000-0000-0000-000000000000"
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,,""

HKLM, System\CurrentControlSet\Services\WbioSrvc\Databases\{6D30BE4B-22DA-48BE-A8FF-6E50E9042528},BiometricType,0x00010001,0x00000008
HKLM, System\CurrentControlSet\Services\WbioSrvc\Databases\{6D30BE4B-22DA-48BE-A8FF-6E50E9042528},Attributes,0x00010001,0x00000001
HKLM, System\CurrentControlSet\Services\WbioSrvc\Databases\{6D30BE4B-22DA-48BE-A8FF-6E50E9042528},Format,,"8A8DD84A-808E-40E7-935C-A03F94AA0792"
HKLM, System\CurrentControlSet\Services\WbioSrvc\Databases\{6D30BE4B-22DA-48BE-A8FF-6E50E9042528},InitialSize,0x00010001,0x00000020
HKLM, System\CurrentControlSet\Services\WbioSrvc\Databases\{6D30BE4B-22DA-48BE-A8FF-6E50E9042528},AutoCreate,0x00010001,0x00000001
HKLM, System\CurrentControlSet\Services\WbioSrvc\Databases\{6D30BE4B-22DA-48BE-A8FF-6E50E9042528},AutoName,0x00010001,0x00000001
HKLM, System\CurrentControlSet\Services\WbioSrvc\Databases\{6D30BE4B-22DA-48BE-A8FF-6E50E9042528},FilePath,,""
HKLM, System\CurrentControlSet\Services\WbioSrvc\Databases\{6D30BE4B-22DA-48BE-A8FF-6E50E9042528},ConnectionString,,""

[USDKAddReg]
HKLM,"SOFTWARE\Validity\"
HKLM, "SOFTWARE\Validity\COMM_IFACE\",interface,0x00000001,0x00000003

[USDKAddReg.Security]
"D: (A;CIOI;GA;;;LS)"

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

[fpCsEvtSvc_ServiceInstall]
DisplayName     = %fpCSEvtService_SvcDesc%
Description     = %fpCSEvtService_SvcDesc%
ServiceType     = 0x00000010                  ; SERVICE_WIN32_OWN_PROCESS
StartType       = 0x2                         ; SERVICE_AUTO_START
ErrorControl    = 0x0                         ; SERVICE_ERROR_IGNORE
ServiceBinary   = %11%\fpCSEvtSvc.exe

[CoInstallers_CopyFiles]
;WudfUpdate_$UMDFCOINSTALLERVERSION$.dll

[CoInstallers_AddReg]
;HKR,,CoInstallers32,0x00010000,"WudfUpdate_$UMDFCOINSTALLERVERSION$.dll"

[DestinationDirs]
UMDriverCopy=12,UMDF ; copy to drivers\umdf
;CoInstallers_CopyFiles=11
VCSAPIForWbfCopy=11
AdaptersCopy=11,WinBioPlugIns

[UMDriverCopy]
wbf_spi.dll

[VCSAPIForWbfCopy]
vcsAPIFORWBFSPI.dll
msvcr120.dll
fpCSEvtSvc.exe

[AdaptersCopy]
vcsWBFEngineAdapter.dll

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

[Strings]
VFSUMDF="Synaptics FP Sensors"
ClassName="Biometric Devices"
DISK_NAME = "VFS6101 WBF SPI Driver Installation Disk"
WudfRdDisplayName="Windows Driver Foundation - User-mode Driver Framework Reflector"
fpCSEvtService_SvcDesc="fpCSEvtSvc"
DeviceName="Synaptics FP Sensors (WBF) VFS6101"
