;
; EgisFP.inf - Install the EGIS USB user-mode driver - WBDI sample
;

[Version]
Signature="$Windows NT$"
Class=Biometric
ClassGuid={53D29EF7-377C-4D14-864B-EB3A85769359}
Provider=%EGIS%
DriverVer=02/24/2014,3.2.13.0
CatalogFile=EgisFP.cat

[Manufacturer]
%EGIS%=EgisTec,NTx86

[EgisTec.NTx86]
%EGISUsbDeviceName%=Biometric_Install, USB\VID_1C7A&PID_0803
%EGISUsbDeviceName%=Biometric_Install, USB\VID_1C7A&PID_0603
%EGISUsbDeviceName%=Biometric_Install, USB\VID_1C7A&PID_0608

[SourceDisksFiles]
EGISFP.dll=1
engine.dll=1
Application.ico=1
WudfUpdate_01009.dll=1

[SourceDisksNames]
1 = %MediaDescription%


[Biometric_Install.NT]
CopyFiles=UMDriverCopy, WinBioEngineAdapterCopy
AddProperty=Device_Properties
Include=WINUSB.INF                      ; Import sections from WINUSB.INF
Needs=WINUSB.NT                         ; Run the CopyFiles & AddReg directives for WinUsb.INF
FeatureScore=0xFE;

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

[Device_Properties]
DeviceIcon,,,,"%12%\UMDF\Application.ico" ; 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
AddService=WinUsb,0x000001f8,WinUsb_ServiceInstall  ; this service is installed because its a filter.

[Biometric_Install.NT.Wdf]
KmdfService=WINUSB, WinUsb_Install
UmdfDispatcher=WinUsb
UmdfService=EgisFP, EgisFP_Install
UmdfServiceOrder=EgisFP

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

[WinUsb_Install]
KmdfLibraryVersion = 1.9

[EgisFP_Install]
UmdfLibraryVersion=1.9.0
DriverCLSID = "{7b9683ab-1c19-43cf-8fb3-339443abd0cf}"
ServiceBinary = "%12%\UMDF\EGISFP.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,,"LowerFilters",0x00010008,"WinUsb" ; FLG_ADDREG_TYPE_MULTI_SZ | FLG_ADDREG_APPEND
HKR,,"Exclusive",0x10001,1
HKR,,"SystemWakeEnabled",0x00010001,0
HKR,,"DeviceIdleEnabled",0x00010001,1
HKR,,"UserSetDeviceIdleEnabled",0x00010001,0
HKR,,"DefaultIdleState",0x00010001,1
HKR,,"DefaultIdleTimeout",0x00010001,10000
HKR,,"ReconstructionMethod",0x00010001,0

[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.
HKR,WinBio\Configurations\0,EngineAdapterBinary,,"engine.DLL"            ; Vendor engine
HKR,WinBio\Configurations\0,StorageAdapterBinary,,"WinBioStorageAdapter.DLL"    ; Windows built-in storage adapter
HKR,WinBio\Configurations\0,DatabaseId,,"4ABE16E8-DDCC-42CA-AB09-D96DC7E3BA39"  ; Unique database GUID

[DatabaseAddReg]
HKLM,System\CurrentControlSet\Services\WbioSrvc\Databases\{4ABE16E8-DDCC-42CA-AB09-D96DC7E3BA39},BiometricType,0x00010001,0x00000008
HKLM,System\CurrentControlSet\Services\WbioSrvc\Databases\{4ABE16E8-DDCC-42CA-AB09-D96DC7E3BA39},Attributes,0x00010001,0x00000001
HKLM,System\CurrentControlSet\Services\WbioSrvc\Databases\{4ABE16E8-DDCC-42CA-AB09-D96DC7E3BA39},Format,,"00000000-0000-0000-0000-000000000000"
HKLM,System\CurrentControlSet\Services\WbioSrvc\Databases\{4ABE16E8-DDCC-42CA-AB09-D96DC7E3BA39},InitialSize,0x00010001,0x00000020
HKLM,System\CurrentControlSet\Services\WbioSrvc\Databases\{4ABE16E8-DDCC-42CA-AB09-D96DC7E3BA39},AutoCreate,0x00010001,0x00000001
HKLM,System\CurrentControlSet\Services\WbioSrvc\Databases\{4ABE16E8-DDCC-42CA-AB09-D96DC7E3BA39},AutoName,0x00010001,0x00000001
HKLM,System\CurrentControlSet\Services\WbioSrvc\Databases\{4ABE16E8-DDCC-42CA-AB09-D96DC7E3BA39},FilePath,,""
HKLM,System\CurrentControlSet\Services\WbioSrvc\Databases\{4ABE16E8-DDCC-42CA-AB09-D96DC7E3BA39},ConnectionString,,""

[ContactSensor_AddReg]
HKR,EgisFP\ ,"RemoteWakeupEnable",0x00010001,0x00000001
HKR,EgisFP\ ,"SensorModeGain",0x00010001,0x000000ff

[ContactSensor_AddReg.security]
"D:P(A;;GA;;;BA)(A;;GA;;;SY)(A;;GAKA;;;WD)"


[FPParameters_AddReg]
; Use this addreg to input parameters to Match/Extract module
;HKLM,SYSTEM\CurrentControlSet\Services\EgisFP\FPParameters,"MatchingThreshold",0x00010001,0x0000002c

[FPParameters_AddReg.security]
"D:P(A;;GA;;;BA)(A;;GA;;;SY)(A;;GAKA;;;WD)"
	


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

[WinUsb_ServiceInstall]
DisplayName     = %WinUsb_SvcDesc%
ServiceType     = 1
StartType       = 3
ErrorControl    = 1
ServiceBinary   = %12%\WinUSB.sys

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

[CoInstallers_CopyFiles]
WudfUpdate_01009.dll

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

[UMDriverCopy]
EgisFP.dll
Application.ico

[WinBioEngineAdapterCopy]
engine.dll


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

[Strings]
EGIS="Egis Technology Inc."
MediaDescription="EGIS Tech. Biometric Driver Installation Media"
ClassName="Biometric Devices"
WudfRdDisplayName="Windows Driver Foundation - User-mode Driver Framework Reflector"
EGISUsbDeviceName="EgisTec Fingerprint Sensor" 
WinUsb_SvcDesc="WinUSB Driver"
