diff options
| author | David Spruill <[email protected]> | 2026-01-08 17:51:47 -0500 |
|---|---|---|
| committer | GitHub <[email protected]> | 2026-01-08 17:51:47 -0500 |
| commit | c5fc3ca1fd0e00a7e085ef48abfeff9c0c39817e (patch) | |
| tree | 0e650a0fee8027816bbea82ca1fd9b8e3e6ee24a /biometrics/adapters/engine_adapter | |
| parent | f88e4fbbd4d2671e5cd77e4f60be7a235326797e (diff) | |
| parent | ed3dbe56378117a15105099870f2397671ad99ab (diff) | |
Merge branch 'develop' into user/daspr/kmodsamplefix
Diffstat (limited to 'biometrics/adapters/engine_adapter')
| -rw-r--r-- | biometrics/adapters/engine_adapter/EngineAdapter.cpp | 665 | ||||
| -rw-r--r-- | biometrics/adapters/engine_adapter/EngineAdapter.def | 4 | ||||
| -rw-r--r-- | biometrics/adapters/engine_adapter/EngineAdapter.h | 75 | ||||
| -rw-r--r-- | biometrics/adapters/engine_adapter/EngineAdapter.rc | 29 | ||||
| -rw-r--r-- | biometrics/adapters/engine_adapter/EngineAdapter.vcxproj | 228 | ||||
| -rw-r--r-- | biometrics/adapters/engine_adapter/EngineAdapter.vcxproj.Filters | 33 | ||||
| -rw-r--r-- | biometrics/adapters/engine_adapter/precomp.h | 62 | ||||
| -rw-r--r-- | biometrics/adapters/engine_adapter/precompsrc.cpp | 1 | ||||
| -rw-r--r-- | biometrics/adapters/engine_adapter/resource.h | 15 |
9 files changed, 0 insertions, 1112 deletions
diff --git a/biometrics/adapters/engine_adapter/EngineAdapter.cpp b/biometrics/adapters/engine_adapter/EngineAdapter.cpp deleted file mode 100644 index 22961124..00000000 --- a/biometrics/adapters/engine_adapter/EngineAdapter.cpp +++ /dev/null @@ -1,665 +0,0 @@ -/*++ - - THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF - ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO - THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A - PARTICULAR PURPOSE. - - Copyright (c) Microsoft Corporation. All rights reserved - -Module Name: - - EngineAdapter.cpp - -Abstract: - - This module contains a stub implementation of an Engine Adapter - plug-in for the Windows Biometric service. - -Author: - - - - -Environment: - - Win32, user mode only. - -Revision History: - -NOTES: - - (None) - ---*/ - -/////////////////////////////////////////////////////////////////////////////// -// -// Header files... -// -/////////////////////////////////////////////////////////////////////////////// -#include "precomp.h" -#include "winbio_adapter.h" -#include "EngineAdapter.h" - - -/////////////////////////////////////////////////////////////////////////////// -// -// Forward declarations for the Engine Adapter's interface routines... -// -/////////////////////////////////////////////////////////////////////////////// -static HRESULT -WINAPI -EngineAdapterAttach( - _Inout_ PWINBIO_PIPELINE Pipeline - ); - -static HRESULT -WINAPI -EngineAdapterDetach( - _Inout_ PWINBIO_PIPELINE Pipeline - ); - -static HRESULT -WINAPI -EngineAdapterClearContext( - _Inout_ PWINBIO_PIPELINE Pipeline - ); - -static HRESULT -WINAPI -EngineAdapterEndOperation( - _Inout_ PWINBIO_PIPELINE Pipeline - ); - -static HRESULT -WINAPI -EngineAdapterQueryPreferredFormat( - _Inout_ PWINBIO_PIPELINE Pipeline, - _Out_ PWINBIO_REGISTERED_FORMAT StandardFormat, - _Out_ PWINBIO_UUID VendorFormat - ); - -static HRESULT -WINAPI -EngineAdapterQueryIndexVectorSize( - _Inout_ PWINBIO_PIPELINE Pipeline, - _Out_ PSIZE_T IndexElementCount - ); - -static HRESULT -WINAPI -EngineAdapterQueryHashAlgorithms( - _Inout_ PWINBIO_PIPELINE Pipeline, - _Out_ PSIZE_T AlgorithmCount, - _Out_ PSIZE_T AlgorithmBufferSize, - _Out_ PUCHAR *AlgorithmBuffer - ); - -static HRESULT -WINAPI -EngineAdapterSetHashAlgorithm( - _Inout_ PWINBIO_PIPELINE Pipeline, - _In_ SIZE_T AlgorithmBufferSize, - _In_ PUCHAR AlgorithmBuffer - ); - -static HRESULT -WINAPI -EngineAdapterAcceptSampleHint( - _Inout_ PWINBIO_PIPELINE Pipeline, - _Out_ PSIZE_T SampleHint - ); - -static HRESULT -WINAPI -EngineAdapterAcceptSampleData( - _Inout_ PWINBIO_PIPELINE Pipeline, - _In_ PWINBIO_BIR SampleBuffer, - _In_ SIZE_T SampleSize, - _In_ WINBIO_BIR_PURPOSE Purpose, - _Out_ PWINBIO_REJECT_DETAIL RejectDetail - ); - -static HRESULT -WINAPI -EngineAdapterExportEngineData( - _Inout_ PWINBIO_PIPELINE Pipeline, - _In_ WINBIO_BIR_DATA_FLAGS Flags, - _Out_ PWINBIO_BIR *SampleBuffer, - _Out_ PSIZE_T SampleSize - ); - -static HRESULT -WINAPI -EngineAdapterVerifyFeatureSet( - _Inout_ PWINBIO_PIPELINE Pipeline, - _In_ PWINBIO_IDENTITY Identity, - _In_ WINBIO_BIOMETRIC_SUBTYPE SubFactor, - _Out_ PBOOLEAN Match, - _Out_ PUCHAR *PayloadBlob, - _Out_ PSIZE_T PayloadBlobSize, - _Out_ PUCHAR *HashValue, - _Out_ PSIZE_T HashSize, - _Out_ PWINBIO_REJECT_DETAIL RejectDetail - ); - -static HRESULT -WINAPI -EngineAdapterIdentifyFeatureSet( - _Inout_ PWINBIO_PIPELINE Pipeline, - _Out_ PWINBIO_IDENTITY Identity, - _Out_ PWINBIO_BIOMETRIC_SUBTYPE SubFactor, - _Out_ PUCHAR *PayloadBlob, - _Out_ PSIZE_T PayloadBlobSize, - _Out_ PUCHAR *HashValue, - _Out_ PSIZE_T HashSize, - _Out_ PWINBIO_REJECT_DETAIL RejectDetail - ); - -static HRESULT -WINAPI -EngineAdapterCreateEnrollment( - _Inout_ PWINBIO_PIPELINE Pipeline - ); - -static HRESULT -WINAPI -EngineAdapterUpdateEnrollment( - _Inout_ PWINBIO_PIPELINE Pipeline, - _Out_ PWINBIO_REJECT_DETAIL RejectDetail - ); - -static HRESULT -WINAPI -EngineAdapterGetEnrollmentStatus( - _Inout_ PWINBIO_PIPELINE Pipeline, - _Out_ PWINBIO_REJECT_DETAIL RejectDetail - ); - -static HRESULT -WINAPI -EngineAdapterGetEnrollmentHash( - _Inout_ PWINBIO_PIPELINE Pipeline, - _Out_ PUCHAR *HashValue, - _Out_ PSIZE_T HashSize - ); - -static HRESULT -WINAPI -EngineAdapterCheckForDuplicate( - _Inout_ PWINBIO_PIPELINE Pipeline, - _Out_ PWINBIO_IDENTITY Identity, - _Out_ PWINBIO_BIOMETRIC_SUBTYPE SubFactor, - _Out_ PBOOLEAN Duplicate - ); - -static HRESULT -WINAPI -EngineAdapterCommitEnrollment( - _Inout_ PWINBIO_PIPELINE Pipeline, - _In_ PWINBIO_IDENTITY Identity, - _In_ WINBIO_BIOMETRIC_SUBTYPE SubFactor, - _In_ PUCHAR PayloadBlob, - _In_ SIZE_T PayloadBlobSize - ); - -static HRESULT -WINAPI -EngineAdapterDiscardEnrollment( - _Inout_ PWINBIO_PIPELINE Pipeline - ); - -static HRESULT -WINAPI -EngineAdapterControlUnit( - _Inout_ PWINBIO_PIPELINE Pipeline, - _In_ ULONG ControlCode, - _In_ PUCHAR SendBuffer, - _In_ SIZE_T SendBufferSize, - _In_ PUCHAR ReceiveBuffer, - _In_ SIZE_T ReceiveBufferSize, - _Out_ PSIZE_T ReceiveDataSize, - _Out_ PULONG OperationStatus - ); - -static HRESULT -WINAPI -EngineAdapterControlUnitPrivileged( - _Inout_ PWINBIO_PIPELINE Pipeline, - _In_ ULONG ControlCode, - _In_ PUCHAR SendBuffer, - _In_ SIZE_T SendBufferSize, - _In_ PUCHAR ReceiveBuffer, - _In_ SIZE_T ReceiveBufferSize, - _Out_ PSIZE_T ReceiveDataSize, - _Out_ PULONG OperationStatus - ); -//----------------------------------------------------------------------------- - - -/////////////////////////////////////////////////////////////////////////////// -// -// Interface dispatch table -// -/////////////////////////////////////////////////////////////////////////////// -static WINBIO_ENGINE_INTERFACE g_EngineInterface = { - WINBIO_ENGINE_INTERFACE_VERSION_1, - WINBIO_ADAPTER_TYPE_ENGINE, - sizeof(WINBIO_ENGINE_INTERFACE), - {0xb876fdc8, 0x34e7, 0x471a, {0x82, 0xc8, 0x9c, 0xba, 0x6a, 0x35, 0x38, 0xec}}, - - EngineAdapterAttach, - EngineAdapterDetach, - EngineAdapterClearContext, - EngineAdapterQueryPreferredFormat, - EngineAdapterQueryIndexVectorSize, - EngineAdapterQueryHashAlgorithms, - EngineAdapterSetHashAlgorithm, - EngineAdapterAcceptSampleHint, - EngineAdapterAcceptSampleData, - EngineAdapterExportEngineData, - EngineAdapterVerifyFeatureSet, - EngineAdapterIdentifyFeatureSet, - EngineAdapterCreateEnrollment, - EngineAdapterUpdateEnrollment, - EngineAdapterGetEnrollmentStatus, - EngineAdapterGetEnrollmentHash, - EngineAdapterCheckForDuplicate, - EngineAdapterCommitEnrollment, - EngineAdapterDiscardEnrollment, - EngineAdapterControlUnit, - EngineAdapterControlUnitPrivileged -}; -//----------------------------------------------------------------------------- - - -/////////////////////////////////////////////////////////////////////////////// -// -// Mandatory DLL entrypoint function. -// -/////////////////////////////////////////////////////////////////////////////// -BOOL APIENTRY -DllMain( - HANDLE ModuleHandle, - DWORD ReasonForCall, - LPVOID Reserved - ) -{ - UNREFERENCED_PARAMETER(ModuleHandle); - UNREFERENCED_PARAMETER(ReasonForCall); - UNREFERENCED_PARAMETER(Reserved); - - return TRUE; -} -//----------------------------------------------------------------------------- - - -/////////////////////////////////////////////////////////////////////////////// -// -// Well-known interface-discovery function exported by the Engine Adapter -// -/////////////////////////////////////////////////////////////////////////////// -HRESULT -WINAPI -WbioQueryEngineInterface( - _Out_ PWINBIO_ENGINE_INTERFACE *EngineInterface - ) -{ - *EngineInterface = &g_EngineInterface; - return S_OK; -} -//----------------------------------------------------------------------------- - - -/////////////////////////////////////////////////////////////////////////////// -// -// Engine Adapter action routines -// -/////////////////////////////////////////////////////////////////////////////// -static HRESULT -WINAPI -EngineAdapterAttach( - _Inout_ PWINBIO_PIPELINE Pipeline - ) -{ - UNREFERENCED_PARAMETER(Pipeline); - - return E_NOTIMPL; -} -//----------------------------------------------------------------------------- - -static HRESULT -WINAPI -EngineAdapterDetach( - _Inout_ PWINBIO_PIPELINE Pipeline - ) -{ - UNREFERENCED_PARAMETER(Pipeline); - - return E_NOTIMPL; -} -//----------------------------------------------------------------------------- - -static HRESULT -WINAPI -EngineAdapterClearContext( - _Inout_ PWINBIO_PIPELINE Pipeline - ) -{ - UNREFERENCED_PARAMETER(Pipeline); - return E_NOTIMPL; -} -//----------------------------------------------------------------------------- - -static HRESULT -WINAPI -EngineAdapterQueryPreferredFormat( - _Inout_ PWINBIO_PIPELINE Pipeline, - _Out_ PWINBIO_REGISTERED_FORMAT StandardFormat, - _Out_ PWINBIO_UUID VendorFormat - ) -{ - UNREFERENCED_PARAMETER(Pipeline); - UNREFERENCED_PARAMETER(StandardFormat); - UNREFERENCED_PARAMETER(VendorFormat); - return E_NOTIMPL; -} -//----------------------------------------------------------------------------- - -static HRESULT -WINAPI -EngineAdapterQueryIndexVectorSize( - _Inout_ PWINBIO_PIPELINE Pipeline, - _Out_ PSIZE_T IndexElementCount - ) -{ - UNREFERENCED_PARAMETER(Pipeline); - UNREFERENCED_PARAMETER(IndexElementCount); - return E_NOTIMPL; -} -//----------------------------------------------------------------------------- - -static HRESULT -WINAPI -EngineAdapterQueryHashAlgorithms( - _Inout_ PWINBIO_PIPELINE Pipeline, - _Out_ PSIZE_T AlgorithmCount, - _Out_ PSIZE_T AlgorithmBufferSize, - _Out_ PUCHAR *AlgorithmBuffer - ) -{ - UNREFERENCED_PARAMETER(Pipeline); - UNREFERENCED_PARAMETER(AlgorithmCount); - UNREFERENCED_PARAMETER(AlgorithmBufferSize); - UNREFERENCED_PARAMETER(AlgorithmBuffer); - return E_NOTIMPL; -} -//----------------------------------------------------------------------------- - -static HRESULT -WINAPI -EngineAdapterSetHashAlgorithm( - _Inout_ PWINBIO_PIPELINE Pipeline, - _In_ SIZE_T AlgorithmBufferSize, - _In_ PUCHAR AlgorithmBuffer - ) -{ - UNREFERENCED_PARAMETER(Pipeline); - UNREFERENCED_PARAMETER(AlgorithmBufferSize); - UNREFERENCED_PARAMETER(AlgorithmBuffer); - return E_NOTIMPL; -} -//----------------------------------------------------------------------------- - -static HRESULT -WINAPI -EngineAdapterAcceptSampleHint( - _Inout_ PWINBIO_PIPELINE Pipeline, - _Out_ PSIZE_T SampleHint - ) -{ - UNREFERENCED_PARAMETER(Pipeline); - UNREFERENCED_PARAMETER(SampleHint); - return E_NOTIMPL; -} -//----------------------------------------------------------------------------- - -static HRESULT -WINAPI -EngineAdapterAcceptSampleData( - _Inout_ PWINBIO_PIPELINE Pipeline, - _In_ PWINBIO_BIR SampleBuffer, - _In_ SIZE_T SampleSize, - _In_ WINBIO_BIR_PURPOSE Purpose, - _Out_ PWINBIO_REJECT_DETAIL RejectDetail - ) -{ - UNREFERENCED_PARAMETER(Pipeline); - UNREFERENCED_PARAMETER(SampleBuffer); - UNREFERENCED_PARAMETER(SampleSize); - UNREFERENCED_PARAMETER(Purpose); - UNREFERENCED_PARAMETER(RejectDetail); - return E_NOTIMPL; -} -//----------------------------------------------------------------------------- - -static HRESULT -WINAPI -EngineAdapterExportEngineData( - _Inout_ PWINBIO_PIPELINE Pipeline, - _In_ WINBIO_BIR_DATA_FLAGS Flags, - _Out_ PWINBIO_BIR *SampleBuffer, - _Out_ PSIZE_T SampleSize - ) -{ - UNREFERENCED_PARAMETER(Pipeline); - UNREFERENCED_PARAMETER(Flags); - UNREFERENCED_PARAMETER(SampleBuffer); - UNREFERENCED_PARAMETER(SampleSize); - return E_NOTIMPL; -} -//----------------------------------------------------------------------------- - -static HRESULT -WINAPI -EngineAdapterVerifyFeatureSet( - _Inout_ PWINBIO_PIPELINE Pipeline, - _In_ PWINBIO_IDENTITY Identity, - _In_ WINBIO_BIOMETRIC_SUBTYPE SubFactor, - _Out_ PBOOLEAN Match, - _Out_ PUCHAR *PayloadBlob, - _Out_ PSIZE_T PayloadBlobSize, - _Out_ PUCHAR *HashValue, - _Out_ PSIZE_T HashSize, - _Out_ PWINBIO_REJECT_DETAIL RejectDetail - ) -{ - UNREFERENCED_PARAMETER(Pipeline); - UNREFERENCED_PARAMETER(Identity); - UNREFERENCED_PARAMETER(SubFactor); - UNREFERENCED_PARAMETER(Match); - UNREFERENCED_PARAMETER(PayloadBlob); - UNREFERENCED_PARAMETER(PayloadBlobSize); - UNREFERENCED_PARAMETER(HashValue); - UNREFERENCED_PARAMETER(HashSize); - UNREFERENCED_PARAMETER(RejectDetail); - return E_NOTIMPL; -} -//----------------------------------------------------------------------------- - -static HRESULT -WINAPI -EngineAdapterIdentifyFeatureSet( - _Inout_ PWINBIO_PIPELINE Pipeline, - _Out_ PWINBIO_IDENTITY Identity, - _Out_ PWINBIO_BIOMETRIC_SUBTYPE SubFactor, - _Out_ PUCHAR *PayloadBlob, - _Out_ PSIZE_T PayloadBlobSize, - _Out_ PUCHAR *HashValue, - _Out_ PSIZE_T HashSize, - _Out_ PWINBIO_REJECT_DETAIL RejectDetail - ) -{ - UNREFERENCED_PARAMETER(Pipeline); - UNREFERENCED_PARAMETER(Identity); - UNREFERENCED_PARAMETER(SubFactor); - UNREFERENCED_PARAMETER(PayloadBlob); - UNREFERENCED_PARAMETER(PayloadBlobSize); - UNREFERENCED_PARAMETER(HashValue); - UNREFERENCED_PARAMETER(HashSize); - UNREFERENCED_PARAMETER(RejectDetail); - return E_NOTIMPL; -} -//----------------------------------------------------------------------------- - -static HRESULT -WINAPI -EngineAdapterCreateEnrollment( - _Inout_ PWINBIO_PIPELINE Pipeline - ) -{ - UNREFERENCED_PARAMETER(Pipeline); - return E_NOTIMPL; -} -//----------------------------------------------------------------------------- - -static HRESULT -WINAPI -EngineAdapterUpdateEnrollment( - _Inout_ PWINBIO_PIPELINE Pipeline, - _Out_ PWINBIO_REJECT_DETAIL RejectDetail - ) -{ - UNREFERENCED_PARAMETER(Pipeline); - UNREFERENCED_PARAMETER(RejectDetail); - return E_NOTIMPL; -} -//----------------------------------------------------------------------------- - -static HRESULT -WINAPI -EngineAdapterGetEnrollmentStatus( - _Inout_ PWINBIO_PIPELINE Pipeline, - _Out_ PWINBIO_REJECT_DETAIL RejectDetail - ) -{ - UNREFERENCED_PARAMETER(Pipeline); - UNREFERENCED_PARAMETER(RejectDetail); - return E_NOTIMPL; -} -//----------------------------------------------------------------------------- - -static HRESULT -WINAPI -EngineAdapterGetEnrollmentHash( - _Inout_ PWINBIO_PIPELINE Pipeline, - _Out_ PUCHAR *HashValue, - _Out_ PSIZE_T HashSize - ) -{ - UNREFERENCED_PARAMETER(Pipeline); - UNREFERENCED_PARAMETER(HashValue); - UNREFERENCED_PARAMETER(HashSize); - return E_NOTIMPL; -} -//----------------------------------------------------------------------------- - -static HRESULT -WINAPI -EngineAdapterCheckForDuplicate( - _Inout_ PWINBIO_PIPELINE Pipeline, - _Out_ PWINBIO_IDENTITY Identity, - _Out_ PWINBIO_BIOMETRIC_SUBTYPE SubFactor, - _Out_ PBOOLEAN Duplicate - ) -{ - UNREFERENCED_PARAMETER(Pipeline); - UNREFERENCED_PARAMETER(Identity); - UNREFERENCED_PARAMETER(SubFactor); - UNREFERENCED_PARAMETER(Duplicate); - return E_NOTIMPL; -} -//----------------------------------------------------------------------------- - -static HRESULT -WINAPI -EngineAdapterCommitEnrollment( - _Inout_ PWINBIO_PIPELINE Pipeline, - _In_ PWINBIO_IDENTITY Identity, - _In_ WINBIO_BIOMETRIC_SUBTYPE SubFactor, - _In_ PUCHAR PayloadBlob, - _In_ SIZE_T PayloadBlobSize - ) -{ - UNREFERENCED_PARAMETER(Pipeline); - UNREFERENCED_PARAMETER(Identity); - UNREFERENCED_PARAMETER(SubFactor); - UNREFERENCED_PARAMETER(PayloadBlob); - UNREFERENCED_PARAMETER(PayloadBlobSize); - return E_NOTIMPL; -} -//----------------------------------------------------------------------------- - -static HRESULT -WINAPI -EngineAdapterDiscardEnrollment( - _Inout_ PWINBIO_PIPELINE Pipeline - ) -{ - UNREFERENCED_PARAMETER(Pipeline); - return E_NOTIMPL; -} -//----------------------------------------------------------------------------- - -static HRESULT -WINAPI -EngineAdapterControlUnit( - _Inout_ PWINBIO_PIPELINE Pipeline, - _In_ ULONG ControlCode, - _In_ PUCHAR SendBuffer, - _In_ SIZE_T SendBufferSize, - _In_ PUCHAR ReceiveBuffer, - _In_ SIZE_T ReceiveBufferSize, - _Out_ PSIZE_T ReceiveDataSize, - _Out_ PULONG OperationStatus - ) -{ - UNREFERENCED_PARAMETER(Pipeline); - UNREFERENCED_PARAMETER(ControlCode); - UNREFERENCED_PARAMETER(SendBuffer); - UNREFERENCED_PARAMETER(SendBufferSize); - UNREFERENCED_PARAMETER(ReceiveBuffer); - UNREFERENCED_PARAMETER(ReceiveBufferSize); - UNREFERENCED_PARAMETER(ReceiveDataSize); - UNREFERENCED_PARAMETER(OperationStatus); - - return E_NOTIMPL; -} -//----------------------------------------------------------------------------- - -static HRESULT -WINAPI -EngineAdapterControlUnitPrivileged( - _Inout_ PWINBIO_PIPELINE Pipeline, - _In_ ULONG ControlCode, - _In_ PUCHAR SendBuffer, - _In_ SIZE_T SendBufferSize, - _In_ PUCHAR ReceiveBuffer, - _In_ SIZE_T ReceiveBufferSize, - _Out_ PSIZE_T ReceiveDataSize, - _Out_ PULONG OperationStatus - ) -{ - UNREFERENCED_PARAMETER(Pipeline); - UNREFERENCED_PARAMETER(ControlCode); - UNREFERENCED_PARAMETER(SendBuffer); - UNREFERENCED_PARAMETER(SendBufferSize); - UNREFERENCED_PARAMETER(ReceiveBuffer); - UNREFERENCED_PARAMETER(ReceiveBufferSize); - UNREFERENCED_PARAMETER(ReceiveDataSize); - UNREFERENCED_PARAMETER(OperationStatus); - - return E_NOTIMPL; -} -//----------------------------------------------------------------------------- - diff --git a/biometrics/adapters/engine_adapter/EngineAdapter.def b/biometrics/adapters/engine_adapter/EngineAdapter.def deleted file mode 100644 index 8f8b458f..00000000 --- a/biometrics/adapters/engine_adapter/EngineAdapter.def +++ /dev/null @@ -1,4 +0,0 @@ -LIBRARY EngineAdapter - -EXPORTS - WbioQueryEngineInterface diff --git a/biometrics/adapters/engine_adapter/EngineAdapter.h b/biometrics/adapters/engine_adapter/EngineAdapter.h deleted file mode 100644 index 1be2cd6d..00000000 --- a/biometrics/adapters/engine_adapter/EngineAdapter.h +++ /dev/null @@ -1,75 +0,0 @@ -/*++ - - THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF - ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO - THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A - PARTICULAR PURPOSE. - - Copyright (c) Microsoft Corporation. All rights reserved - -Module Name: - - EngineAdapter.h - -Abstract: - - This module contains a stub implementation of an Engine Adapter - plug-in for the Windows Biometric service. - -Author: - - - - -Environment: - - Win32, user mode only. - -Revision History: - -NOTES: - - (None) - ---*/ -#pragma once - -#include "winbio_adapter.h" - -/////////////////////////////////////////////////////////////////////////////// -// -// The WINIBIO_ENGINE_CONTEXT structure is privately-defined by each -// Engine Adapter. Its purpose is to maintain any information that -// should persist across Engine Adapter API calls. -// -// The Adapter allocates and initializes one of these structures in its -// 'Attach' routine and saves its address in the Pipeline->EngineContext -// field. -// -// The Engine Adapter's 'Detach' routine cleans up and deallocates the -// structure and sets the PipelineContext->EngineContext field to NULL. -// -/////////////////////////////////////////////////////////////////////////////// -typedef struct _WINIBIO_ENGINE_CONTEXT { - // - // The following fields illustrate the kind of information - // the Engine Adapter needs to keep in this structure: - // - // FeatureSet - A processed description of a biometric - // sample. - // - // Enrollment - An object that tracks the current state - // of an in-progress enrollment operation. - // - // Template - A template either created from the Feature - // Set or from the Enrollment object. - // - // Comparison - An object that tracks the result of a - // one-to-one comparison between the Template - // and the Feature Set. - // - PVOID x; - PVOID y; - PVOID z; - -} WINIBIO_ENGINE_CONTEXT, *PWINIBIO_ENGINE_CONTEXT; - diff --git a/biometrics/adapters/engine_adapter/EngineAdapter.rc b/biometrics/adapters/engine_adapter/EngineAdapter.rc deleted file mode 100644 index d2a99f20..00000000 --- a/biometrics/adapters/engine_adapter/EngineAdapter.rc +++ /dev/null @@ -1,29 +0,0 @@ -//--------------------------------------------------------------------------- -// THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF -// ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO -// THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A -// PARTICULAR PURPOSE. -// -// Copyright (c) Microsoft Corporation. All rights reserved -// -// BioUsbSample.rc -// -// Copyright (c) 2007 Microsoft Corporation, All Rights Reserved -//--------------------------------------------------------------------------- - - -#include <windows.h> -#include <ntverp.h> -#include "resource.h" - -// -// TODO: Change the file description and file names to match your binary. -// - -#define VER_FILETYPE VFT_DLL -#define VER_FILESUBTYPE VFT_UNKNOWN -#define VER_FILEDESCRIPTION_STR "Engine Adapter Sample" -#define VER_INTERNALNAME_STR "EngineAdapter" -#define VER_ORIGINALFILENAME_STR "EngineAdapter.dll" - -#include "common.ver" diff --git a/biometrics/adapters/engine_adapter/EngineAdapter.vcxproj b/biometrics/adapters/engine_adapter/EngineAdapter.vcxproj deleted file mode 100644 index 4c462ac4..00000000 --- a/biometrics/adapters/engine_adapter/EngineAdapter.vcxproj +++ /dev/null @@ -1,228 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<Project DefaultTargets="Build" ToolsVersion="12.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> - <ItemGroup Label="ProjectConfigurations"> - <ProjectConfiguration Include="Debug|Win32"> - <Configuration>Debug</Configuration> - <Platform>Win32</Platform> - </ProjectConfiguration> - <ProjectConfiguration Include="Release|Win32"> - <Configuration>Release</Configuration> - <Platform>Win32</Platform> - </ProjectConfiguration> - <ProjectConfiguration Include="Debug|x64"> - <Configuration>Debug</Configuration> - <Platform>x64</Platform> - </ProjectConfiguration> - <ProjectConfiguration Include="Release|x64"> - <Configuration>Release</Configuration> - <Platform>x64</Platform> - </ProjectConfiguration> - </ItemGroup> - <PropertyGroup Label="Globals"> - <ProjectGuid>{22EED378-7FE9-4946-A653-05BB1EE20717}</ProjectGuid> - <RootNamespace>$(MSBuildProjectName)</RootNamespace> - <SupportsPackaging>false</SupportsPackaging> - <RequiresPackageProject>true</RequiresPackageProject> - <Configuration Condition="'$(Configuration)' == ''">Debug</Configuration> - <Platform Condition="'$(Platform)' == ''">Win32</Platform> - <SampleGuid>{9263013E-19E1-41D9-B085-8892CE56B9BB}</SampleGuid> - </PropertyGroup> - <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" /> - <PropertyGroup Label="Configuration" Condition="'$(Configuration)|$(Platform)'=='Release|x64'"> - <TargetVersion>Windows10</TargetVersion> - <UseDebugLibraries>False</UseDebugLibraries> - <DriverTargetPlatform>Windows Driver</DriverTargetPlatform> - <DriverType /> - <PlatformToolset>WindowsApplicationForDrivers10.0</PlatformToolset> - <ConfigurationType>DynamicLibrary</ConfigurationType> - </PropertyGroup> - <PropertyGroup Label="Configuration" Condition="'$(Configuration)|$(Platform)'=='Debug|x64'"> - <TargetVersion>Windows10</TargetVersion> - <UseDebugLibraries>True</UseDebugLibraries> - <DriverTargetPlatform>Windows Driver</DriverTargetPlatform> - <DriverType /> - <PlatformToolset>WindowsApplicationForDrivers10.0</PlatformToolset> - <ConfigurationType>DynamicLibrary</ConfigurationType> - </PropertyGroup> - <PropertyGroup Label="Configuration" Condition="'$(Configuration)|$(Platform)'=='Release|Win32'"> - <TargetVersion>Windows10</TargetVersion> - <UseDebugLibraries>False</UseDebugLibraries> - <DriverTargetPlatform>Windows Driver</DriverTargetPlatform> - <DriverType /> - <PlatformToolset>WindowsApplicationForDrivers10.0</PlatformToolset> - <ConfigurationType>DynamicLibrary</ConfigurationType> - </PropertyGroup> - <PropertyGroup Label="Configuration" Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'"> - <TargetVersion>Windows10</TargetVersion> - <UseDebugLibraries>True</UseDebugLibraries> - <DriverTargetPlatform>Windows Driver</DriverTargetPlatform> - <DriverType /> - <PlatformToolset>WindowsApplicationForDrivers10.0</PlatformToolset> - <ConfigurationType>DynamicLibrary</ConfigurationType> - </PropertyGroup> - <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" /> - <PropertyGroup> - <OutDir>$(IntDir)</OutDir> - </PropertyGroup> - <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|x64'"> - <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" /> - </ImportGroup> - <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|x64'"> - <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" /> - </ImportGroup> - <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|Win32'"> - <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" /> - </ImportGroup> - <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'"> - <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" /> - </ImportGroup> - <ItemGroup Label="WrappedTaskItems" /> - <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'"> - <TargetName>EngineAdapter</TargetName> - </PropertyGroup> - <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'"> - <TargetName>EngineAdapter</TargetName> - </PropertyGroup> - <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'"> - <TargetName>EngineAdapter</TargetName> - </PropertyGroup> - <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'"> - <TargetName>EngineAdapter</TargetName> - </PropertyGroup> - <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'"> - <ClCompile> - <TreatWarningAsError>true</TreatWarningAsError> - <WarningLevel>Level4</WarningLevel> - </ClCompile> - <Link> - <EntryPointSymbol Condition="'$(Platform)'=='win32'">_DllMainCRTStartup@12</EntryPointSymbol> - <EntryPointSymbol Condition="'$(Platform)'!='win32'">_DllMainCRTStartup</EntryPointSymbol> - </Link> - </ItemDefinitionGroup> - <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'"> - <ClCompile> - <TreatWarningAsError>true</TreatWarningAsError> - <WarningLevel>Level4</WarningLevel> - </ClCompile> - <Link> - <EntryPointSymbol Condition="'$(Platform)'=='win32'">_DllMainCRTStartup@12</EntryPointSymbol> - <EntryPointSymbol Condition="'$(Platform)'!='win32'">_DllMainCRTStartup</EntryPointSymbol> - </Link> - </ItemDefinitionGroup> - <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'"> - <ClCompile> - <TreatWarningAsError>true</TreatWarningAsError> - <WarningLevel>Level4</WarningLevel> - </ClCompile> - <Link> - <EntryPointSymbol Condition="'$(Platform)'=='win32'">_DllMainCRTStartup@12</EntryPointSymbol> - <EntryPointSymbol Condition="'$(Platform)'!='win32'">_DllMainCRTStartup</EntryPointSymbol> - </Link> - </ItemDefinitionGroup> - <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'"> - <ClCompile> - <TreatWarningAsError>true</TreatWarningAsError> - <WarningLevel>Level4</WarningLevel> - </ClCompile> - <Link> - <EntryPointSymbol Condition="'$(Platform)'=='win32'">_DllMainCRTStartup@12</EntryPointSymbol> - <EntryPointSymbol Condition="'$(Platform)'!='win32'">_DllMainCRTStartup</EntryPointSymbol> - </Link> - </ItemDefinitionGroup> - <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'"> - <ClCompile> - <PreprocessorDefinitions>%(PreprocessorDefinitions);_UNICODE;UNICODE</PreprocessorDefinitions> - <ExceptionHandling> - </ExceptionHandling> - </ClCompile> - <Midl> - <PreprocessorDefinitions>%(PreprocessorDefinitions);_UNICODE;UNICODE</PreprocessorDefinitions> - </Midl> - <ResourceCompile> - <PreprocessorDefinitions>%(PreprocessorDefinitions);_UNICODE;UNICODE</PreprocessorDefinitions> - </ResourceCompile> - <Link> - <AdditionalDependencies>%(AdditionalDependencies);advapi32.lib;kernel32.lib;user32.lib</AdditionalDependencies> - <ModuleDefinitionFile>EngineAdapter.def</ModuleDefinitionFile> - </Link> - </ItemDefinitionGroup> - <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'"> - <ClCompile> - <PreprocessorDefinitions>%(PreprocessorDefinitions);_UNICODE;UNICODE</PreprocessorDefinitions> - <ExceptionHandling> - </ExceptionHandling> - </ClCompile> - <Midl> - <PreprocessorDefinitions>%(PreprocessorDefinitions);_UNICODE;UNICODE</PreprocessorDefinitions> - </Midl> - <ResourceCompile> - <PreprocessorDefinitions>%(PreprocessorDefinitions);_UNICODE;UNICODE</PreprocessorDefinitions> - </ResourceCompile> - <Link> - <AdditionalDependencies>%(AdditionalDependencies);advapi32.lib;kernel32.lib;user32.lib</AdditionalDependencies> - <ModuleDefinitionFile>EngineAdapter.def</ModuleDefinitionFile> - </Link> - </ItemDefinitionGroup> - <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'"> - <ClCompile> - <PreprocessorDefinitions>%(PreprocessorDefinitions);_UNICODE;UNICODE</PreprocessorDefinitions> - <ExceptionHandling> - </ExceptionHandling> - </ClCompile> - <Midl> - <PreprocessorDefinitions>%(PreprocessorDefinitions);_UNICODE;UNICODE</PreprocessorDefinitions> - </Midl> - <ResourceCompile> - <PreprocessorDefinitions>%(PreprocessorDefinitions);_UNICODE;UNICODE</PreprocessorDefinitions> - </ResourceCompile> - <Link> - <AdditionalDependencies>%(AdditionalDependencies);advapi32.lib;kernel32.lib;user32.lib</AdditionalDependencies> - <ModuleDefinitionFile>EngineAdapter.def</ModuleDefinitionFile> - </Link> - </ItemDefinitionGroup> - <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'"> - <ClCompile> - <PreprocessorDefinitions>%(PreprocessorDefinitions);_UNICODE;UNICODE</PreprocessorDefinitions> - <ExceptionHandling> - </ExceptionHandling> - </ClCompile> - <Midl> - <PreprocessorDefinitions>%(PreprocessorDefinitions);_UNICODE;UNICODE</PreprocessorDefinitions> - </Midl> - <ResourceCompile> - <PreprocessorDefinitions>%(PreprocessorDefinitions);_UNICODE;UNICODE</PreprocessorDefinitions> - </ResourceCompile> - <Link> - <AdditionalDependencies>%(AdditionalDependencies);advapi32.lib;kernel32.lib;user32.lib</AdditionalDependencies> - <ModuleDefinitionFile>EngineAdapter.def</ModuleDefinitionFile> - </Link> - </ItemDefinitionGroup> - <ItemGroup> - <ClCompile Include="EngineAdapter.cpp"> - <AdditionalIncludeDirectories>;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> - <PreCompiledHeaderFile>precomp.h</PreCompiledHeaderFile> - <PreCompiledHeader>Use</PreCompiledHeader> - <PreCompiledHeaderOutputFile>$(IntDir)\precomp.h.pch</PreCompiledHeaderOutputFile> - </ClCompile> - <ClCompile Include="precompsrc.cpp"> - <AdditionalIncludeDirectories>;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> - <PreCompiledHeaderFile>precomp.h</PreCompiledHeaderFile> - <PreCompiledHeader>Create</PreCompiledHeader> - <PreCompiledHeaderOutputFile>$(IntDir)\precomp.h.pch</PreCompiledHeaderOutputFile> - </ClCompile> - <ResourceCompile Include="EngineAdapter.rc" /> - </ItemGroup> - <ItemGroup> - <Inf Exclude="@(Inf)" Include="*.inf" /> - <FilesToPackage Include="$(TargetPath)" Condition="'$(ConfigurationType)'=='Driver' or '$(ConfigurationType)'=='DynamicLibrary'" /> - </ItemGroup> - <ItemGroup> - <None Exclude="@(None)" Include="*.txt;*.htm;*.html" /> - <None Exclude="@(None)" Include="*.ico;*.cur;*.bmp;*.dlg;*.rct;*.gif;*.jpg;*.jpeg;*.wav;*.jpe;*.tiff;*.tif;*.png;*.rc2" /> - <None Exclude="@(None)" Include="*.def;*.bat;*.hpj;*.asmx" /> - </ItemGroup> - <ItemGroup> - <ClInclude Exclude="@(ClInclude)" Include="*.h;*.hpp;*.hxx;*.hm;*.inl;*.xsd" /> - </ItemGroup> - <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" /> -</Project>
\ No newline at end of file diff --git a/biometrics/adapters/engine_adapter/EngineAdapter.vcxproj.Filters b/biometrics/adapters/engine_adapter/EngineAdapter.vcxproj.Filters deleted file mode 100644 index ab887f28..00000000 --- a/biometrics/adapters/engine_adapter/EngineAdapter.vcxproj.Filters +++ /dev/null @@ -1,33 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> - <ItemGroup> - <Filter Include="Source Files"> - <Extensions>cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx;*</Extensions> - <UniqueIdentifier>{010878EC-7BA3-41C4-B355-5556C237FDE3}</UniqueIdentifier> - </Filter> - <Filter Include="Header Files"> - <Extensions>h;hpp;hxx;hm;inl;inc;xsd</Extensions> - <UniqueIdentifier>{64493738-BBBD-46B2-995D-EF8EE18A251D}</UniqueIdentifier> - </Filter> - <Filter Include="Resource Files"> - <Extensions>rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms;man;xml</Extensions> - <UniqueIdentifier>{E0C063ED-18D1-4D6B-A62A-5E6CF79522C1}</UniqueIdentifier> - </Filter> - </ItemGroup> - <ItemGroup> - <ClCompile Include="EngineAdapter.cpp"> - <Filter>Source Files</Filter> - </ClCompile> - <ClCompile Include="precompsrc.cpp"> - <Filter>Source Files</Filter> - </ClCompile> - <None Include="EngineAdapter.def"> - <Filter>Source Files</Filter> - </None> - </ItemGroup> - <ItemGroup> - <ResourceCompile Include="EngineAdapter.rc"> - <Filter>Resource Files</Filter> - </ResourceCompile> - </ItemGroup> -</Project>
\ No newline at end of file diff --git a/biometrics/adapters/engine_adapter/precomp.h b/biometrics/adapters/engine_adapter/precomp.h deleted file mode 100644 index c36eb36c..00000000 --- a/biometrics/adapters/engine_adapter/precomp.h +++ /dev/null @@ -1,62 +0,0 @@ -/*++ - - THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF - ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO - THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A - PARTICULAR PURPOSE. - - Copyright (c) Microsoft Corporation. All rights reserved - -Module Name: - - precomp.h - -Abstract: - - This module contains identifies all the headers that - shoulde be pre-compiled. - -Author: - - - - -Environment: - - Win32, user mode only. - -Revision History: - -NOTES: - - (None) - ---*/ -#pragma once - -// -// Necessary for compiling under VC. -// -#if(!defined(WINVER) || (WINVER < 0x0500)) - #undef WINVER - #define WINVER 0x0500 -#endif -#if(!defined(_WIN32_WINNT) || (_WIN32_WINNT < 0x0500)) - #undef _WIN32_WINNT - #define _WIN32_WINNT 0x0500 -#endif - -// -// Required header files that shouldn't change often. -// -#include <stdio.h> -#include <tchar.h> -#include <windows.h> - -// -// StrSafe.h needs to be included last -// to disallow unsafe string functions. -#include <STRSAFE.H> - -#ifndef ARGUMENT_PRESENT -#define ARGUMENT_PRESENT(x) ((x) != NULL) -#endif diff --git a/biometrics/adapters/engine_adapter/precompsrc.cpp b/biometrics/adapters/engine_adapter/precompsrc.cpp deleted file mode 100644 index 5944cf51..00000000 --- a/biometrics/adapters/engine_adapter/precompsrc.cpp +++ /dev/null @@ -1 +0,0 @@ -#include "precomp.h"
\ No newline at end of file diff --git a/biometrics/adapters/engine_adapter/resource.h b/biometrics/adapters/engine_adapter/resource.h deleted file mode 100644 index 95ed37fa..00000000 --- a/biometrics/adapters/engine_adapter/resource.h +++ /dev/null @@ -1,15 +0,0 @@ -//--------------------------------------------------------------------------- -// THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF -// ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO -// THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A -// PARTICULAR PURPOSE. -// -// Copyright (c) Microsoft Corporation. All rights reserved -// -// BioUsbSample.rc -// -// Copyright (c) 2007 Microsoft Corporation, All Rights Reserved -//--------------------------------------------------------------------------- - -#pragma once - |
