;
;  Windows Hello Face Software Device
;
;  Copyright (c) 2018, Microsoft Corporation.
; ------------------------------------------------------------------------


[Version]
Signature   = "$Windows NT$"
Class       = Biometric
ClassGuid   = {53D29EF7-377C-4D14-864B-EB3A85769359}
PnpLockdown = 1
Provider    = %WHF%
DriverVer = 06/01/2018,10.0.22621.3672

[Manufacturer]
%WHF% = Windows_Hello_Face_Install,NTamd64.10.0...17658

; ------------------------------------------------------------------------

[Windows_Hello_Face_Install.NTamd64.10.0...17658]
%WHFDriver% = Windows_Hello_Face_Software_Driver_Install,Root\WindowsHelloFaceSoftwareDriver

; =================== Adapter Installation Sections =======================

[Windows_Hello_Face_Software_Driver_Install.NT]
CopyFiles    = CopyUMDriver
CopyFiles    = CopyAdapters
CopyFiles    = CopyRecognitionResources
CopyFiles    = CopyLegacyRecognitionResources
CopyFiles    = CopyDependencies
FeatureScore = 0x00

; ------------------------------------------------------------------------

[Windows_Hello_Face_Software_Driver_Install.NT.hw]
AddReg       = DriverAddReg_BioSensor
AddReg       = DriverAddReg_BioSensorConfiguration
AddReg       = DriverAddReg_BioSensorConfiguration0
AddReg       = DriverAddReg_BioSensorConfiguration1

; ------------------------------------------------------------------------

[DriverAddReg_BioSensor]
HKR,,Capabilities,0x00010001,0x00000180
HKR,,DeviceDescription,,"Facial Recognition (Windows Hello) Software Device"
HKR,,Manufacturer,,"Microsoft Corporation"
HKR,,ModelName,,"Windows Hello Face Sensor"
HKR,,SerialNumber,,"000000000"
HKR,,SubType,0x00010001,0x00000000
HKR,,Version,0x000B0001,0x200000001000000
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,,HelloFaceDriverPackageType,0x00010001,0x00000001       ; specifies that the clean install inf is installed
HKR,,HelloFaceRecognitionTechVersion,0x00010001,0x00000005

; ------------------------------------------------------------------------

[DriverAddReg_BioSensorConfiguration]
HKR,WinBio\Configurations,DefaultConfiguration,0x00010001,0x00000000
HKR,WinBio\Configurations,VirtualSecureConfiguration,0x00010001,0x00000001

; ------------------------------------------------------------------------

[DriverAddReg_BioSensorConfiguration0]
HKR,WinBio\Configurations\0,DatabaseId,,"DC576DA6-D676-4A15-906D-C0CEAF949543"
HKR,WinBio\Configurations\0,EngineAdapterBinary,,"%13%\FaceRecognitionEngineAdapter.DLL"
HKR,WinBio\Configurations\0,SensorAdapterBinary,,"%13%\FaceRecognitionSensorAdapter.DLL"
HKR,WinBio\Configurations\0,SensorMode,0x00010001,0x00000001
HKR,WinBio\Configurations\0,StorageAdapterBinary,,"WinBioStorageAdapter.DLL"
HKR,WinBio\Configurations\0,SystemSensor,0x00010001,0x00000001
HKR,WinBio\Configurations\0,CaptureIntervalInMilliseconds,0x00010001,0x0000007d
HKR,WinBio\Configurations\0,PresenceStabilizationThreshold,0x00010001,0x0000012c
HKR,WinBio\Configurations\0,PresenceLifetimeInSeconds,0x00010001,0x00000000

; ------------------------------------------------------------------------

[DriverAddReg_BioSensorConfiguration1]
HKR,WinBio\Configurations\1,DatabaseId,,"A61A7480-6A54-4D36-A0EF-B150B8545827"
HKR,WinBio\Configurations\1,EngineAdapterBinary,,"WinBioPassthroughAdapter"
HKR,WinBio\Configurations\1,SensorAdapterBinary,,"%13%\FaceRecognitionSensorAdapterVsm.DLL"
HKR,WinBio\Configurations\1,SensorMode,0x00010001,0x00000001
HKR,WinBio\Configurations\1,StorageAdapterBinary,,"WinBioVsmStorageAdapter.DLL"
HKR,WinBio\Configurations\1,SystemSensor,0x00010001,0x00000001
HKR,WinBio\Configurations\1,CaptureIntervalInMilliseconds,0x00010001,0x0000007d
HKR,WinBio\Configurations\1,PresenceStabilizationThreshold,0x00010001,0x0000012c
HKR,WinBio\Configurations\1,PresenceLifetimeInSeconds,0x00010001,0x00000000
HKR,WinBio\Configurations\1,VirtualSecureMode,0x00010001,0x00000001
HKR,WinBio\Configurations\1,VsmEngineAdapterBinary,,"%13%\FaceRecognitionEngineAdapter.DLL"
HKR,WinBio\Configurations\1,VsmSensorAdapterBinary,,"%13%\FaceRecognitionSensorAdapterVsmSecure.DLL"
HKR,WinBio\Configurations\1,VsmStorageAdapterBinary,,"WinBioVsmCacheAdapter"

; ------------------------------------------------------------------------

[SourceDisksFiles]
HelloFace.dll                                     = 1
FaceProcessor.dll                                 = 1
FaceProcessorCore.dll                             = 1
FaceRecognitionEngineAdapter.dll                  = 1
facerecognitionengineadapterresourcescore.dll     = 1
facerecognitionengineadapterresourcessecure.dll   = 1
FaceRecognitionSensorAdapter.dll                  = 1
facerecognitionsensoradapterresources.dll         = 1
FaceRecognitionSensorAdapterVsm.dll               = 1
FaceRecognitionSensorAdapterVsmSecure.dll         = 1
FaceRecognitionEngineAdapterResources.dll         = 1
FaceRecognitionEngineAdapterResources_v2.dll      = 1
FaceRecognitionEngineAdapterResources_v3.dll      = 1
FaceRecognitionEngineAdapterResources_v4.dll      = 1
FaceRecognitionEngineAdapterResources_v5.dll      = 1
FaceTrackerInternal.dll                           = 1
FaceDetectorResources.dll                         = 1

; ------------------------------------------------------------------------

[SourceDisksNames]
1 = %MediaDescription%

; ------------------------------------------------------------------------

[DestinationDirs]
CopyUMDriver                   = 13
CopyAdapters                   = 13
CopyRecognitionResources       = 13
CopyLegacyRecognitionResources = 13
CopyDependencies               = 13

; ------------------------------------------------------------------------

[CopyUMDriver]
HelloFace.dll

; ------------------------------------------------------------------------

[CopyAdapters]
FaceRecognitionEngineAdapter.dll
facerecognitionengineadapterresourcescore.dll
facerecognitionengineadapterresourcessecure.dll
FaceRecognitionSensorAdapter.dll
facerecognitionsensoradapterresources.dll
FaceRecognitionSensorAdapterVsm.dll
FaceRecognitionSensorAdapterVsmSecure.dll
FaceDetectorResources.dll

; ------------------------------------------------------------------------

[CopyRecognitionResources]
FaceRecognitionEngineAdapterResources_v5.dll

; ------------------------------------------------------------------------

[CopyLegacyRecognitionResources]
FaceRecognitionEngineAdapterResources.dll
FaceRecognitionEngineAdapterResources_v2.dll
FaceRecognitionEngineAdapterResources_v3.dll
FaceRecognitionEngineAdapterResources_v4.dll

; ------------------------------------------------------------------------

[CopyDependencies]
FaceProcessor.dll
FaceProcessorCore.dll
FaceTrackerInternal.dll

; =================== Service Installation Sections =======================

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

; ------------------------------------------------------------------------

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

; ------------------------------------------------------------------------

[Windows_Hello_Face_Software_Driver_Install.NT.Wdf]
UmdfService      = HelloFace, Windows_Hello_Face_Software_Driver_UMDF_Install
UmdfServiceOrder = HelloFace
UmdfHostProcessSharing = ProcessSharingDisabled

; ------------------------------------------------------------------------

[Windows_Hello_Face_Software_Driver_UMDF_Install]
UmdfLibraryVersion = 2.15.0
ServiceBinary      = %13%\HelloFace.dll

; =================== Strings =======================

[Strings]
WHF                 = "Microsoft"
WHFDriver           = "Facial Recognition (Windows Hello) Software Device"
MediaDescription    = "Facial Recognition (Windows Hello) Software Device Installation Media"
ClassName           = "Biometric Class Driver"
WudfRdDisplayName   = "Windows Driver Foundation - User-Mode Driver Framework Reflector"
