One Touch For Windows SDK C-C++ Developer Guide
One Touch For Windows SDK C-C++ Developer Guide
Developer Guide
DigitalPersona, Inc.
© 1996–2008 DigitalPersona, Inc. All Rights Reserved.
All intellectual property rights in the DigitalPersona software, firmware, hardware, and documentation included with or
described in this guide are owned by DigitalPersona or its suppliers and are protected by United States copyright laws,
other applicable copyright laws, and international treaty provisions. DigitalPersona and its suppliers retain all rights not
expressly granted.
DigitalPersona, U.are.U, and One Touch are trademarks of DigitalPersona, Inc., registered in the United States and other
countries. Adobe and Adobe Reader are either registered trademarks or trademarks of Adobe Systems Incorporated in the
United States and/or other countries. Microsoft, Visual C++, Visual Studio, Windows, Windows Server, and Windows Vista
are registered trademarks of Microsoft Corporation in the United States and other countries.
This guide and the software it describes are furnished under license as set forth in the “License Agreement” that is shown
during the installation process.
Except as permitted by such license or by the terms of this guide, no part of this document may be reproduced, stored,
transmitted, and translated, in any form and by any means, without the prior written consent of DigitalPersona. The
contents of this guide are furnished for informational use only and are subject to change without notice. Any mention of
third-party companies and products is for demonstration purposes only and constitutes neither an endorsement nor a
recommendation. DigitalPersona assumes no responsibility with regard to the performance or use of these third-party
products. DigitalPersona makes every effort to ensure the accuracy of its documentation and assumes no responsibility or
liability for any errors or inaccuracies that may appear in it.
Technical Support
Upon your purchase of a Developer Support package (available from http://buy.digitalpersona.com), you are entitled to a
specified number of hours of telephone and email support.
Feedback
Although the information in this guide has been thoroughly reviewed and tested, we welcome your feedback on any
errors, omissions, or suggestions for future improvements. Please contact us at
[email protected]
or
DigitalPersona, Inc.
720 Bay Road, Suite 100
Redwood City, California 94063
USA
(650) 474-4000
(650) 298-8313 Fax
1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
Target Audience . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
Chapter Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
Document Conventions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
Notational Conventions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
Typographical Conventions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
Additional Resources . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
Related Documentation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
Online Resources . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
System Requirements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
Supported DigitalPersona Products . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
Fingerprint Template Compatibility . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
2 Quick Start . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
Quick Concepts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
Install the Software . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
Insert the Fingerprint Reader . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
Using the Sample Application . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
3 Installation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
Installing the SDK . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
Installing the Runtime Environment (RTE) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
Installing and Uninstalling the RTE Silently . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
4 Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
Biometric System . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
Fingerprint . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
Fingerprint Recognition . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
Fingerprint Enrollment . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
Fingerprint Verification . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
False Positives and False Negatives . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
Operations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
Components of the SDK . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
Device Component . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
Initialization . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
Operation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
Clean-up . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
Fingerprint Recognition Component . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24
DigitalPersona One Touch for Windows SDK: C/C++ Edition | Developer Guide iii
Table of Contents
Fingerprint Enrollment . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24
Typical Fingerprint Enrollment Workflow . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25
Fingerprint Verification . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29
Typical Fingerprint Verification Workflow . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30
MC_generateRegFeatures . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 58
MC_verifyFeaturesEx . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 60
Data Structures . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 62
DP_DEVICE_INFO . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 62
DP_DEVICE_VERSION . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 62
DP_HW_INFO . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 63
DP_PRODUCT_VERSION . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 64
FT_VERSION_INFO . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 64
MC_SETTINGS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 65
Enumerations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 66
DP_ACQUISITION_PRIORITY . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 66
DP_DEVICE_MODALITY . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 66
DP_DEVICE_TECHNOLOGY . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 67
DP_DEVICE_UID_TYPE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 68
DP_SAMPLE_QUALITY . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 68
FT_IMG_QUALITY . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 70
FT_FTR_QUALITY . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 70
FT_FTR_TYPE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 71
Type Definitions and Constants . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 72
DFLT_FA_RATE MED_SEC_FA_RATE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 72
DP_SAMPLE_TYPE_IMAGE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 72
FT_FA_RATE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 72
HDPOPERATION . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 72
HIGH_SEC_FA_RATE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 72
LOW_SEC_FA_RATE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 73
MED_SEC_FA_RATE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 73
9 Redistribution . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 84
RTE\Install Folder . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 84
Redist Folder . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 84
Fingerprint Reader Documentation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 87
Hardware Warnings and Regulatory Information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 87
Fingerprint Reader Use and Maintenance Guide . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 88
Glossary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 94
Index . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 97
The One Touch® for Windows SDK is a software development tool that enables developers to integrate
fingerprint biometrics into a wide set of Microsoft® Windows®-based applications, services, and products. The
tool enables developers to perform basic fingerprint biometric operations: capturing a fingerprint from a
DigitalPersona fingerprint reader, extracting the distinctive features from the captured fingerprint sample, and
storing the resulting data in a template for later comparison of a submitted fingerprint with an existing
fingerprint template.
In addition, the One Touch for Windows SDK enables developers to use a variety of programming languages in
a number of development environments to create their applications. The product includes detailed
documentation and sample code that can be used to guide developers to quickly and efficiently produce
fingerprint biometric additions to their products.
The One Touch for Windows SDK builds on a decade-long legacy of fingerprint biometric technology, being
the most popular set of development tools with the largest set of enrolled users of any biometric product in the
world. Because of its popularity, the DigitalPersona® Fingerprint Recognition Engine software —with its high
level of accuracy—and award-winning U.are.U® Fingerprint Reader hardware have been used with the widest-
age, hardest-to-fingerprint demographic of users in the world.
The One Touch for Windows SDK has been designed to authenticate users on the Microsoft® Windows Vista®
and Microsoft® Windows® XP operating systems running on any of the x86-based platforms. The product is
used with DigitalPersona fingerprint readers in a variety of useful configurations: standalone USB peripherals,
modules that are built into customer platforms, and keyboards. The DigitalPersona One Touch I.D. SDK product
can also be implemented along with the One Touch for Windows SDK product to add fast fingerprint
identification capability to a developer’s design.
This SDK includes transparent support for fingerprint authentication through Windows Terminal Services
(including Remote Desktop Connection) and through a Citrix connection to Metaframe Presentation Server
using a client from the Citrix Presentation Server Client package.
Through Remote Desktop or a Citrix session, you can use a local fingerprint reader to log on to, and use other
installed features of, a remote machine running your fingerprint-enabled application.
• Program Neighborhood
• Program Neighborhood Agent
• Web Client
Note that to take advantage of this feature, your fingerprint-enabled application must run on the Terminal
Services or Citrix server, not on the client. If you are developing a Citrix-aware application, see additional
information in the Developing Citrix-aware applications chapter on page 83.
DigitalPersona One Touch for Windows SDK: C/C++ Edition | Developer Guide 1
Chapter 1: Introduction Target Audience
Target Audience
This guide is for developers who have a working knowledge of the C or C++ programming language.
Chapter Overview
Chapter 1, Introduction, this chapter, describes the audience for which this guide is written; defines the
typographical and notational conventions used throughout this guide; identifies a number of resources that
may assist you in using the One Touch for Windows SDK: C/C++ Edition; identifies the minimum system
requirements needed to run the One Touch for Windows SDK: C/C++ Edition; and lists the DigitalPersona
products and fingerprint templates supported by the One Touch for Windows SDK: C/C++ Edition.
Chapter 2, Quick Start, provides a quick introduction to the One Touch for Windows SDK: C/C++ Edition using
one of the sample applications provided as part of the SDK.
Chapter 3, Installation, contains instructions for installing the SDK and the RTE and identifies the files and
folders that are installed on your hard disk.
Chapter 4, Overview, introduces One Touch for Windows SDK: C/C++ Edition terminology and concepts, shows
how data flows among the various One Touch for Windows SDK: C/C++ Edition components, and includes
workflow diagrams and explanations of the One Touch for Windows: C/C++ Edition API functions used to
perform the operations in the workflows.
Chapter 5, Core API Reference, defines the functions, data structures, and type definitions that are part of the
One Touch for Windows: C/C++ Edition Core API.
Chapter 6, User Interface API Reference, defines the functions and enumerations of the User Interface API, a high-
level wrapper providing a premade user interface and access to the full functionality of the Core API through a
small number of simple functions.
Chapter 7, Events Notifications and Return Codes, defines the codes returned by the One Touch for Windows: C/
C++ Edition API functions.
Chapter 9, Redistribution, identifies the files that you may distribute according to the End User License
Agreement (EULA) and lists the functionalities that you need to provide to your end users when you develop
products based on the One Touch for Windows: C/C++ Edition API.
Appendix A, Setting the False Accept Rate, provides information about determining and using specific values for
the FAR and evaluating and testing achieved values.
Appendix B, Platinum SDK Registration Template Conversion, contains sample code for converting Platinum SDK
registration templates for use with the One Touch for Windows SDK: C/C++ Edition.
DigitalPersona One Touch for Windows SDK: C/C++ Edition | Developer Guide 2
Chapter 1: Introduction Document Conventions
Document Conventions
This section defines the notational and typographical conventions used in this guide.
Notational Conventions
The following notational conventions are used throughout this guide:
IMPORTANT: Important notations contain significant information about system behavior, including problems
or side effects that can occur in specific situations.
Typographical Conventions
The following typographical conventions are used in this guide:
Courier Used to indicate computer programming code The only valid value for this field is TRUE.
bold
Initialize the licensing library by calling the
DPFPInit function.
Italics Used for emphasis or to introduce new terms Duration is the period of time for which a template
certificate, once issued, is valid.
For developers who are viewing this document
online, text in italics may also indicate Call DPIDCreateIdentificationSet before
hypertext links to other areas in this guide. calling this function (page 20).
Bold Used for keystrokes and window and dialog Press Enter.
box elements Click the Info tab.
Additional Resources
You can refer to the resources in this section to assist you in using the One Touch for Windows SDK: C/C++
Edition.
DigitalPersona One Touch for Windows SDK: C/C++ Edition | Developer Guide 3
Chapter 1: Introduction Related Documentation
Related Documentation
Subject Document
Fingerprint recognition, including the history and basics The DigitalPersona White Paper: Guide to Fingerprint
of fingerprint identification and the advantages of Recognition. The file, Fingerprint Guide.pdf, is located in
DigitalPersona’s Fingerprint Recognition Engine the Docs folder in the One Touch for Java SDK software
package, and is not automatically installed on your
computer as part of the setup process.
Late-breaking news about the product The Readme.txt files provided in the root directory in the
SDK software package as well as in some subdirectories
Online Resources
System Requirements
This section lists the minimum software and hardware requirements needed to run the One Touch for
Windows SDK: C/C++ Edition.
x86-based processor or better
Microsoft® Windows® XP, 32-bit and 64-bit versions; Microsoft® Windows® XP Embedded, 32-bit version1;
or Microsoft® Windows Vista®, 32-bit and 64-bit versions
USB connector on the computer where the fingerprint reader is to be connected
DigitalPersona U.are.U 4000B or U.are.U 2500 fingerprint reader
1. A list of DLL dependencies for installation of your application on Microsoft Windows XP Embedded, One Touch for Windows XPE Dependencies.xls, is
located in the Docs folder in the SDK software package.
DigitalPersona One Touch for Windows SDK: C/C++ Edition | Developer Guide 4
Chapter 1: Introduction Fingerprint Template Compatibility
NOTE: Platinum SDK registration templates must be converted to a compatible format to work with these
SDKs. See Appendix B on page 91 for sample code that converts Platinum SDK templates to this format.
DigitalPersona One Touch for Windows SDK: C/C++ Edition | Developer Guide 5
Quick Start 2
This chapter provides a quick introduction to the One Touch for Windows SDK: C/C++ Edition using one of the
sample applications provided as part of the One Touch for Windows SDK.
The application is a sample Microsoft® Visual C++® project that demonstrates the functionality of the user
interfaces supported by the One Touch for Windows SDK: C/C++ Edition User Interface API.
Quick Concepts
The following definitions will assist you in understanding the purpose and functionality of the sample
application that is described in this section.
Enrollment—The process of capturing a person’s fingerprint four times, extracting the features from the
fingerprints, creating a fingerprint template, and storing the template for later comparison.
DigitalPersona One Touch for Windows SDK: C/C++ Edition | Developer Guide 6
Chapter 2: Quick Start Using the Sample Application
DigitalPersona One Touch for Windows SDK: C/C++ Edition | Developer Guide 7
Chapter 2: Quick Start Using the Sample Application
Enrolling a fingerprint consists of scanning your fingerprint four times using the fingerprint reader.
To enroll a fingerprint
1. In the DPFPUI Demo dialog box, click Enroll Fingerprints.
The Fingerprint Enrollment dialog box appears.
DigitalPersona One Touch for Windows SDK: C/C++ Edition | Developer Guide 8
Chapter 2: Quick Start Using the Sample Application
6. Click OK.
DigitalPersona One Touch for Windows SDK: C/C++ Edition | Developer Guide 9
Chapter 2: Quick Start Using the Sample Application
To verify a fingerprint
1. In the DPFPUI Demo dialog box, click Verify Fingerprint.
The Verify Your Identify dialog box appears.
6. Click Cancel.
DigitalPersona One Touch for Windows SDK: C/C++ Edition | Developer Guide 10
Chapter 2: Quick Start Using the Sample Application
DigitalPersona One Touch for Windows SDK: C/C++ Edition | Developer Guide 11
Chapter 2: Quick Start Using the Sample Application
The right index finger is no longer green, indicating that the fingerprint associated with that finger is not
enrolled (has been deleted).
DigitalPersona One Touch for Windows SDK: C/C++ Edition | Developer Guide 12
Installation 3
This chapter contains instructions for installing the various components of the One Touch for Windows SDK: C/
C++ Edition and identifies the files and folders that are installed on your hard disk.
The following two installations are located in the SDK software package:
SDK, which you use in developing your application. This installation is located in the SDK folder.
RTE (runtime environment), which you must provide to your end users to implement the One Touch for
Windows SDK: C/C++ Edition interfaces, objects, methods, and properties. This installation is located in
the RTE folder. (The RTE installation is also included in the SDK installation.)
Table 1 describes the files and folders that are installed in the <destination folder> folder on your hard disk. The
RTE files and folders, which are listed in Table 2 on page 15, are also installed on your hard disk.
NOTE: All installations share the DLLs and the DPHostW.exe file that are installed with the C/C++ edition.
Additional product-specific files are provided for other editions.
Table 1. One Touch for Windows SDK: C/C++ Edition installed files and folders
One Touch SDK\C-C++\Docs One Touch for Windows SDK DigitalPersona One Touch for Windows SDK:
C-C++ Developer Guide.pdf C/C++ Edition Developer Guide
One Touch SDK\C-C++\ dpDefs.h Header files used by all of the One Touch for
Include Windows SDK APIs
DPDevClt.h
dpFtrEx.h
dpMatch.h
dpRCodes.h
dpUIApi.h
DigitalPersona One Touch for Windows SDK: C/C++ Edition | Developer Guide 13
Chapter 3: Installation Installing the Runtime Environment (RTE)
Table 1. One Touch for Windows SDK: C/C++ Edition installed files and folders (continued)
One Touch SDK\C-C++\Lib DPFPApi.lib Import libraries used by the One Touch for
Windows SDK: C/C++ Edition API
DPFpUI.lib
dpHFtrEx.lib
dpHMatch.lib
One Touch SDK\C-C++\C++ This folder contains a sample Microsoft® Visual C++® project that demonstrates the
Samples\DPFP UI Demo functionality of the user interfaces supported by the One Touch for Windows SDK:
C/C++ Edition User Interface API.
One Touch SDK\C-C++\C++ This folder contains a sample Microsoft Visual C++ project that shows how to use the
Samples\Enrollment Sample One Touch for Windows: C/C++ Edition Core API for performing fingerprint enrollment
Code and fingerprint verification.
If you created an application based on the One Touch for Windows: C/C++ Edition APIs that does not include
an installer, your end users must install the One Touch for Windows: C/C++ Edition Runtime Environment to
run your application. The latest version of the RTE is available from the DigitalPersona Web site at http://
www.digitalpersona.com/support/downloads/software.php.
To install the One Touch for Windows: C/C++ Edition Runtime Environment for 32-bit operating systems
1. In the RTE folder in the SDK software package, open the Setup.exe file.
Table 2 identifies the files that are installed on your hard disk.
DigitalPersona One Touch for Windows SDK: C/C++ Edition | Developer Guide 14
Chapter 3: Installation Installing the Runtime Environment (RTE)
Table 2. One Touch for Windows: C/C++ Edition RTE installed files and folders, 32-bit installation
<destination folder>\Bin DPCOper2.dll DLLs and executable file used by the all of the
One Touch for Windows APIs
DPDevice2.dll
DPDevTS.dll
DpHostW.exe
DPmsg.dll
DPMux.dll
DpSvInfo2.dll
DPTSClnt.dll
DPCrStor.dll
<system folder> DPFPApi.dll DLLs used by all of the One Touch for Windows
SDK APIs
DpClback.dll
dpHFtrEx.dll
dpHMatch.dll
DPFpUI.dll
To install the One Touch for Windows: C/C++ Edition Runtime Environment for 64-bit operating systems
1. In the RTE\x64 folder in the SDK software package, open the Setup.exe file.
Table 3 identifies the files that are installed on your hard disk for 64-bit versions of the supported operating
systems.
DigitalPersona One Touch for Windows SDK: C/C++ Edition | Developer Guide 15
Chapter 3: Installation Installing and Uninstalling the RTE Silently
Table 3. One Touch for Windows: C/C++ Edition RTE installed files and folders, 64-bit installation
<destination folder>\Bin DPCOper2.dll DLLs and executable file used by the all of the
One Touch for Windows APIs
DPDevice2.dll
DPDevTS.dll
DpHostW.exe
DPMux.dll
DpSvInfo2.dll
DPTSClnt.dll
DPCrStor.dll
<destination folder>\Bin\x64 DPmsg.dll DLL used by the all of the One Touch for
Windows APIs
<system folder> DPFPApi.dll 32-bit DLLs used by all of the One Touch for
Windows APIs
DpClback.dll
dpHFtrEx.dll
dpHMatch.dll
DPFpUI.dll
<system64 folder> DPFPApi.dll 64-bit DLLs used by all of the One Touch for
Windows APIs
DpClback.dll
dpHFtrEx.dll
dpHMatch.dll
DPFpUI.dll
The SDK software package also contains a file, UninstallOnly.bat, that you can use to silently uninstall the RTE.
DigitalPersona One Touch for Windows SDK: C/C++ Edition | Developer Guide 16
Overview 4
This chapter introduces One Touch for Windows SDK: C/C++ Edition concepts and terminology. (For more
details on the subject of fingerprint biometrics, refer to the “DigitalPersona White Paper: Guide to Fingerprint
Recognition” included in the One Touch for Windows SDK software package.) This chapter also includes typical
workflow diagrams and explanations of the One Touch for Windows: C/C++ Edition API functions used to
perform the tasks in the workflows.
Biometric System
A biometric system is an automatic method of identifying a person based on the person’s unique physical and/
or behavioral traits, such as a fingerprint or an iris pattern, or a handwritten signature or voice. Biometric
identifiers are
Universal
Distinctive
Persistent (sufficiently unchangeable over time)
Collectable
Biometric systems have become an essential component of effective person recognition solutions because
biometric identifiers cannot be shared or misplaced and they naturally represent an individual’s bodily identity.
Substitute forms of identity, such as passwords (commonly used in logical access control) and identity cards
(frequently used for physical access control), do not provide this level of authentication that strongly validates
the link to the actual authorized user.
Fingerprint recognition is the most popular and mature biometric system used today. In addition to meeting
the four criteria above, fingerprint recognition systems perform well (that is, they are accurate, fast, and
robust), they are publicly acceptable, and they are hard to circumvent.
Fingerprint
A fingerprint is an impression of the ridges on the skin of a finger. A fingerprint recognition system uses the
distinctive and persistent characteristics from the ridges, also referred to as fingerprint features, to distinguish
one finger (or person) from another. The One Touch for Windows SDK: C/C++ Edition incorporates the
DigitalPersona Fingerprint Recognition Engine (Engine), which uses traditional as well as modern fingerprint
recognition methodologies to convert these fingerprint features into a format that is compact, distinguishing,
and persistent. The Engine then uses the converted, or extracted, fingerprint features in comparison and
decision-making to provide reliable personal recognition.
DigitalPersona One Touch for Windows SDK: C/C++ Edition | Developer Guide 17
Chapter 4: Overview Fingerprint Recognition
Fingerprint Recognition
The DigitalPersona fingerprint recognition system uses the processes of fingerprint enrollment and fingerprint
verification, which are illustrated in the block diagram in Figure 1 on page 19. Some of the tasks in these
processes are done by the fingerprint reader and its driver; some are accomplished using One Touch for
Windows: C/C++ Edition API functions, which use the Engine; and some are provided by your software
application and/or hardware.
Fingerprint Enrollment
Fingerprint enrollment is the initial process of collecting fingerprint data from a person (enrollee) and storing the
resulting data as a fingerprint template for later comparison. The following procedure describes typical
fingerprint enrollment. (Steps preceded by an asterisk are not performed by the One Touch for Windows SDK:
C/C++ Edition.)
3. Extract the fingerprint feature set for the purpose of enrollment from the fingerprint sample.
4. Repeat steps 2 and 3 until you have enough fingerprint feature sets to create a fingerprint template.
6. *Associate the fingerprint template with the enrollee through a Subject Identifier, such as a user name,
email address, or employee number.
7. *Store the fingerprint template, along with the Subject Identifier, for later comparison.
Fingerprint templates can be stored in any type of repository that you choose, such as a fingerprint
capture device, a smart card, or a local or central database.
Fingerprint Verification
Fingerprint verification is the process of comparing the fingerprint data to the fingerprint template produced at
enrollment and deciding if the two match. The following procedure describes typical fingerprint verification.
(Steps preceded by an asterisk are not performed by the One Touch for Windows SDK: C/C++ Edition.)
3. Extract a fingerprint feature set for the purpose of verification from the fingerprint sample.
4. *Retrieve the fingerprint template associated with the Subject Identifier from your repository.
DigitalPersona One Touch for Windows SDK: C/C++ Edition | Developer Guide 18
Chapter 4: Overview False Positives and False Negatives
5. Perform a one-to-one comparison between the fingerprint feature set and the fingerprint template, and
make a decision of match or non-match.
6. *Act on the decision accordingly, for example, unlock the door to a building for a match, or deny access to
the building for a non-match.
)LQJHUSULQW(QUROOPHQW
*HW6XEMHFW,GHQWLILHU
&UHDWHILQJHUSULQW 6WRUHWHPSODWHDQG
&DSWXUHILQJHUSULQWV &UHDWHWHPSODWH
IHDWXUHVHWV 6XEMHFW,GHQWLILHU
)LQJHUSULQW9HULILFDWLRQ
5HWULHYHWHPSODWHDQG
*HW6XEMHFW,GHQWLILHU
6XEMHFW,GHQWLILHU
/HJHQG
3HUIRUPHGE\2QH7RXFKIRU:LQGRZV6'.&&
1RWSHUIRUPHGE\2QH7RXFKIRU:LQGRZV6'.&&
The proportion of false positive decisions is known as the false accept rate (FAR), and the proportion of false
negative decisions is known as the false reject rate (FRR). In fingerprint recognition systems, the FAR and the FRR
are traded off against each other, that is, the lower the FAR, the higher the FRR, and the higher the FAR, the
lower the FRR.
A One Touch for Windows: C/C++ Edition API function enables you to set the value of the FAR, also referred to
as the security level, to accommodate the needs of your application. In some applications, such as an access
DigitalPersona One Touch for Windows SDK: C/C++ Edition | Developer Guide 19
Chapter 4: Overview False Positives and False Negatives
control system to a highly confidential site or database, a lower FAR is required. In other applications, such as
an entry system to an entertainment theme park, security (which reduces ticket fraud committed by a small
fraction of patrons by sharing their entry tickets) may not be as significant as accessibility for all of the patrons,
and it may be preferable to decrease the FRR at the expense of an increased FAR.
It is important to remember that the accuracy of the fingerprint recognition system is largely related to the
quality of the fingerprint. Testing with sizable groups of people over an extended period has shown that a
majority of people have feature-rich, high-quality fingerprints. These fingerprints will almost surely be
recognized accurately by the DigitalPersona Fingerprint Recognition Engine and practically never be falsely
accepted or falsely rejected. The DigitalPersona fingerprint recognition system is optimized to recognize
fingerprints of poor quality. However, a very small number of people may have to try a second or even a third
time to obtain an accurate reading. Their fingerprints may be difficult to verify because they are either worn
from manual labor or have unreadable ridges. Instruction in the proper use of the fingerprint reader will help
these people achieve the desired results.
DigitalPersona One Touch for Windows SDK: C/C++ Edition | Developer Guide 20
Chapter 4: Overview Operations
Operations
Each time the user puts a finger on the fingerprint reader, fingerprint-related data is sent to the Engine. When
the client application needs to perform some action requiring scanning a fingerprint, it should create an
operation.
There is only one type of operation supported: Fingerprint sample acquisition. Right now the Engine supports
only one type of fingerprint sample, which is a fingerprint image. During the creation of a fingerprint sample
acquisition operation, the client application may specify its priority level, which can be low, normal, or high.
Note that no more than one client application may obtain the results of a single fingerprint scan.
It is possible to create and register any number of operations with normal priority, but no more than one
operation for each of low and high priority at a time.
When the Engine is ready to dispatch the result of fingerprint scan, it processes operations using the following
rules in the sequence shown.
1. If there is a high-priority operation registered, the result is dispatched to the process that owns the
operation.
2. If there is no high-priority operation registered, the engine determines which process owns the
topmost window. If there is a normal-priority operation owned by this process, it will receive the
result.
3. If the above-mentioned steps do not allow the engine to dispatch the result, the process owning the low-
priority operation (if registered) will receive the result.
DigitalPersona One Touch for Windows SDK: C/C++ Edition | Developer Guide 21
Chapter 4: Overview Device Component
Device Component
The device component workflow is shown below and is followed by explanations of the One Touch for
Windows: C/C++ Edition Core API functions that are used to perform the tasks in the workflow.
,QLWLDOL]DWLRQ
,QLWLDOL]HWKH
GHYLFHFRPSRQHQW
'3)3,QLW
2SHUDWLRQ
(QXPHUDWHDYDLODEOH
ILQJHUSULQWUHDGHUVGHYLFHV
'3)3(QXPHUDWH'HYLFHV
&UHDWHDILQJHUSULQWVDPSOH
DFTXLVLWLRQRSHUDWLRQ
'3)3&UHDWH$FTXLVLWLRQ
6XEVFULEHFOLHQWIRUUHFHLYLQJ
RSHUDWLRQHYHQWVQRWLILFDWLRQV 3URFHVVWKHHYHQW
'3)36WDUW$FTXLVLWLRQ
8QVXEVFULEHFOLHQW
IURPUHFHLYLQJRSHUDWLRQ
HYHQWVQRWLILFDWLRQV
'3)36WRS$FTXLVLWLRQ
&OHDQXS
7HUPLQDWHWKH
GHYLFHFRPSRQHQW
'3)37HUP
/HJHQG
2SWLRQDOVWHS
DigitalPersona One Touch for Windows SDK: C/C++ Edition | Developer Guide 22
Chapter 4: Overview Initialization
Initialization
Initialize the device component by calling the DPFPInit function (page 42).
Operation
1. (Optional) If necessary, enumerate the available fingerprint readers (devices) connected to a computer by
calling the DPFPEnumerateDevices function (page 41).
2. Create a fingerprint sample acquisition operation by calling the DPFPCreateAcquisition (page 38)
and specifying the device’s UID. You can also subscribe to all available fingerprint readers by passing the
value GUID_NULL.
3. Subscribe the client application for receiving operation events notifications by calling
DPFPStartAcquisition and passing the operation handle.
Clean-up
Terminate the device component when your application no longer requires access to any fingerprint
readers by calling the DPFPTerm function (page 44).
DigitalPersona One Touch for Windows SDK: C/C++ Edition | Developer Guide 23
Chapter 4: Overview Fingerprint Recognition Component
Fingerprint Enrollment
A typical fingerprint enrollment application workflow is represented below. Each figure is followed by
explanations of the One Touch for Windows: C/C++ Edition Core API functions that are used to perform the
tasks in that part of the workflow. Both the fingerprint feature extraction and the fingerprint comparison
modules are used for performing enrollment.
DigitalPersona One Touch for Windows SDK: C/C++ Edition | Developer Guide 24
Chapter 4: Overview Typical Fingerprint Enrollment Workflow
,QLWLDOL]DWLRQ
,QLWLDOL]HWKHILQJHUSULQW ,QLWLDOL]HWKHILQJHUSULQW
FRPSDULVRQPRGXOH IHDWXUHH[WUDFWLRQPRGXOH
0&BLQLW );BLQLW
&UHDWHDFRPSDULVRQFRQWH[W &UHDWHDIHDWXUHH[WUDFWLRQFRQWH[W
0&BFUHDWH&RQWH[W );BFUHDWH&RQWH[W
5HWULHYHWKHVL]HRIWKH
ILQJHUSULQWWHPSODWH67SDVVLQJ
IHDWXUHVHWSXUSRVH)7B5(*B)75
0&BJHW)HDWXUHV/HQ
5HWULHYHWKHVL]HRIWKHILQJHUSULQW
5HWULHYHWKHUHTXLUHGQXPEHURI
IHDWXUHVHW)6(SDVVLQJIHDWXUH
ILQJHUSULQWIHDWXUHVHWV1
VHWSXUSRVH)7B35(B5(*B)75 0&BJHW6HWWLQJV
);BJHW)HDWXUHV/HQ
Initialization Tasks
Steps 3 and 4 can be done before steps 1 and 2.
1. Initialize the fingerprint feature extraction module by calling the FX_init function (page 45).
2. Create a feature extraction context by calling the FX_createContext function (page 46)
3. Initialize the fingerprint comparison module by calling the MC_init function (page 53).
DigitalPersona One Touch for Windows SDK: C/C++ Edition | Developer Guide 25
Chapter 4: Overview Typical Fingerprint Enrollment Workflow
5. Retrieve the size of the fingerprint feature set (FSE) by calling the FX_getFeaturesLen function and
passing feature set purpose FT_PRE_REG_FTR (page 48).
6. Retrieve the size of the fingerprint template (ST) by calling the MC_getFeaturesLen function and
passing feature set purpose FT_REG_FTR (page 57).
7. Retrieve the number (N) of fingerprint feature sets required to create the fingerprint template by calling
the MC_getSettings function (page 54).
)LQJHUSULQWIHDWXUHVHWFUHDWLRQ
3UHSDUHWKHILQJHUSULQW &DSWXUHDILQJHUSULQW
VDPSOHIRUGLVSOD\ VDPSOHIURPWKH
);BJHW'LVSOD\,PDJH ILQJHUSULQWUHDGHU
&UHDWHDILQJHUSULQWIHDWXUH
'LVSOD\WKHLPDJH VHWSDVVLQJ)6(DQGIHDWXUH
VHWSXUSRVH)7B35(B5(*B)75
);BH[WUDFW)HDWXUHV
6WRUHWKHILQJHUSULQWIHDWXUH
VHWLQYRODWLOHPHPRU\
5HTXLUHGQXPEHU 1R
RIILQJHUSULQW
IHDWXUHVHWV"
<HV
/HJHQG %
2QH7RXFKIRU:LQGRZV6'.&&
2SWLRQDOVWHS
$SSOLFDWLRQQRWSDUWRI6'.
)LQJHUSULQWUHDGHU
DigitalPersona One Touch for Windows SDK: C/C++ Edition | Developer Guide 26
Chapter 4: Overview Typical Fingerprint Enrollment Workflow
2. Create a fingerprint feature set by calling the FX_extractFeatures function and passing FSE and
feature set purpose FT_PRE_REG_FTR (page 49).
3. Prepare the fingerprint image captured by the fingerprint reader for display by calling the
FX_getDisplayImage function (page 51).
5. *If the FX_extractFeatures function succeeds, store the resulting fingerprint feature set in volatile
memory.
DigitalPersona One Touch for Windows SDK: C/C++ Edition | Developer Guide 27
Chapter 4: Overview Typical Fingerprint Enrollment Workflow
)LQJHUSULQWWHPSODWHFUHDWLRQ
&UHDWHDILQJHUSULQWWHPSODWH
SDVVLQJ67DQG1QXPEHURI
ILQJHUSULQWIHDWXUHVHWV
0&BJHQHUDWH5HJ)HDWXUHV
6WRUHWKHILQJHUSULQWWHPSODWH
DQGDVVRFLDWHLWZLWKDXVHU,'
&OHDQXS
'HVWUR\WKH 'HVWUR\WKHIHDWXUH
FRPSDULVRQFRQWH[W H[WUDFWLRQFRQWH[W
0&BFORVH&RQWH[W );BFORVH&RQWH[W
7HUPLQDWHWKHILQJHUSULQW 7HUPLQDWHWKHILQJHUSULQW
FRPSDULVRQPRGXOH IHDWXUHH[WUDFWLRQPRGXOH
0&BWHUPLQDWH );BWHUPLQDWH
(QG
/HJHQG
2QH7RXFKIRU:LQGRZV6'.&&
$SSOLFDWLRQQRWSDUWRI6'.
Figure 5. Typical fingerprint enrollment workflow: Fingerprint template creation and clean-up
DigitalPersona One Touch for Windows SDK: C/C++ Edition | Developer Guide 28
Chapter 4: Overview Fingerprint Verification
Step 2 is not accomplished using One Touch for Windows: C/C++ Edition Core API functions.
2. Store the fingerprint template in your repository and associate it with a user ID.
Clean-up Tasks
Steps 3 and 4 can be done before steps 1 and 2; however, during clean-up, you should always terminate
modules in the reverse order of their initialization. In other words, if you initialize the fingerprint feature
extraction module first, you should terminate that module last, and if you initialize the comparison module
first, you should terminate that module last.
1. Destroy the comparison context by calling the MC_closeContext function (page 55)
2. Terminate the fingerprint comparison module by calling the MC_terminate function (page 57).
3. Destroy the feature extraction context by calling the FX_closeContext function (page 47)
4. Terminate the fingerprint feature extraction module by calling the FX_terminate function (page 47).
Fingerprint Verification
A typical fingerprint verification application workflow is represented in the following three illustrations. Each
figure is followed by explanations of the One Touch for Windows: C/C++ Edition Core API functions that are
used to perform the tasks in that part of the workflow. Both the fingerprint feature extraction and the
fingerprint comparison modules are used for performing verification.
DigitalPersona One Touch for Windows SDK: C/C++ Edition | Developer Guide 29
Chapter 4: Overview Typical Fingerprint Verification Workflow
,QLWLDOL]DWLRQ
,QLWLDOL]HWKHILQJHUSULQW ,QLWLDOL]HWKHILQJHUSULQW
FRPSDULVRQPRGXOH IHDWXUHH[WUDFWLRQPRGXOH
0&BLQLW );BLQLW
&UHDWHDFRPSDULVRQFRQWH[W &UHDWHDIHDWXUHH[WUDFWLRQFRQWH[W
0&BFUHDWH&RQWH[W );BFUHDWH&RQWH[W
5HWULHYHVL]HRIWKHILQJHUSULQW
6HWWKHVHFXULW\OHYHORIWKH
IHDWXUHVHW)69SDVVLQJIHDWXUH
FRPSDULVRQFRQWH[W
0&BVHW6HFXULW\/HYHO
VHWSXUSRVH)7B9(5B)75
);BJHW)HDWXUHV/HQ
/HJHQG
$
2SWLRQDOVWHS
Initialization Tasks
Steps 3 and 4 can be done before steps 1 and 2.
1. Initialize the fingerprint feature extraction module by calling the FX_init function (page 45).
2. Create a feature extraction context by calling the FX_createContext function (page 46)
3. Initialize the fingerprint comparison module by calling the MC_init function (page 53).
5. Optionally, set the security level of the comparison context by calling the MC_setSecurityLevel
function (page 55). If you do not call this function, the default security level will be used.
6. Retrieve the size of the fingerprint feature set (FSV) by calling the FX_getFeaturesLen function and
passing feature set purpose FT_VER_FTR (page 48).
DigitalPersona One Touch for Windows SDK: C/C++ Edition | Developer Guide 30
Chapter 4: Overview Typical Fingerprint Verification Workflow
)LQJHUSULQWIHDWXUHVHWFUHDWLRQ
$FTXLUHDXVHU,'
3UHSDUHWKHILQJHUSULQW &DSWXUHDILQJHUSULQW
VDPSOHIRUGLVSOD\ VDPSOHIURPWKH
);BJHW'LVSOD\,PDJH ILQJHUSULQWUHDGHU
&UHDWHDILQJHUSULQWIHDWXUHVHW
'LVSOD\WKHLPDJH SDVVLQJ)69DQGIHDWXUHVHW
SXUSRVH)7B9(5B)75
);BH[WUDFW)HDWXUHV
6WRUHWKHILQJHUSULQWIHDWXUH
VHWLQYRODWLOHPHPRU\
/HJHQG %
2QH7RXFKIRU:LQGRZV6'.&&
2SWLRQDOVWHS
$SSOLFDWLRQQRWSDUWRI6'.
)LQJHUSULQWUHDGHU
DigitalPersona One Touch for Windows SDK: C/C++ Edition | Developer Guide 31
Chapter 4: Overview Typical Fingerprint Verification Workflow
1. *Acquire the user ID that was used to associate the fingerprint template with the person to be verified.
2. *Capture a fingerprint image from the person via the fingerprint reader.
3. Create a fingerprint feature set by calling the FX_extractFeatures function and passing FSV and
feature set purpose FT_VER_FTR (page 49).
4. Prepare the fingerprint image captured by the fingerprint reader for display by calling the
FX_getDisplayImage function (page 51).
6. *If the FX_extractFeatures function succeeds, store the resulting fingerprint feature set in volatile
memory.
DigitalPersona One Touch for Windows SDK: C/C++ Edition | Developer Guide 32
Chapter 4: Overview Typical Fingerprint Verification Workflow
&RPSDULVRQDQG'HFLVLRQ
5HWULHYHWKHSUHYLRXVO\VWRUHG
ILQJHUSULQWWHPSODWHDVVRFLDWHGZLWK
WKHXVHU,'DQGLWVVL]H67
3HUIRUPILQJHUSULQWYHULILFDWLRQ
SDVVLQJWKHWHPSODWHDQG67DQG
WKHVWRUHGIHDWXUHVHWDQG)69
0&BYHULI\)HDWXUHV([
&OHDQXS
'HVWUR\WKH 'HVWUR\WKHIHDWXUH
FRPSDULVRQFRQWH[W H[WUDFWLRQFRQWH[W
0&BFORVH&RQWH[W );BFORVH&RQWH[W
7HUPLQDWHWKHILQJHUSULQW 7HUPLQDWHWKHILQJHUSULQW
FRPSDULVRQPRGXOH IHDWXUHH[WUDFWLRQPRGXOH
0&BWHUPLQDWH );BWHUPLQDWH
/HJHQG (QG
$SSOLFDWLRQQRWSDUWRI6'.
Figure 8. Typical fingerprint verification workflow: Comparison and decision and clean-up
DigitalPersona One Touch for Windows SDK: C/C++ Edition | Developer Guide 33
Chapter 4: Overview Typical Fingerprint Verification Workflow
Comparison-and-Decision Tasks
Step 1 is not accomplished using One Touch for Windows: C/C++ Edition Core API functions.
1. *Retrieve the fingerprint template associated with the user ID and size ST from your repository.
2. Perform fingerprint verification by calling the MC_verifyFeaturesEx function and passing the
stored fingerprint feature set together with FSV, and the fingerprint template together with ST (page 60).
Clean-up Tasks
Steps 3 and 4 can be done before steps 1 and 2; however, during clean-up, you should always terminate
modules in the reverse order of their initialization. In other words, if you initialize the fingerprint feature
extraction module first, you should terminate that module last, and if you initialize the comparison module
first, you should terminate that module last.
1. Destroy the comparison context by calling the MC_closeContext function (page 55)
2. Terminate the fingerprint comparison module by calling the MC_terminate function (page 57).
3. Destroy the feature extraction context by calling the FX_closeContext function (page 47)
4. Terminate the fingerprint feature extraction module by calling the FX_terminate function (page 47).
DigitalPersona One Touch for Windows SDK: C/C++ Edition | Developer Guide 34
Core API Reference 5
This chapter provides a reference to the One Touch for Windows: C/C++ Edition Core API, including
information about its
Functions on page 35
Data Structures on page 62
Enumerations on page 66
Type Definitions and Constants on page 72
The next chapter, User Interface API Reference, describes the DPUIAPI wrapper that simplifies access to the entire
functionality available in the Core API described in this chapter. The wrapper provides a premade user interface
that handles device component, fingerprint enrollment, and fingerprint verification tasks through only two
functions and two callbacks.
This chapter defines the One Touch for Windows: C/C++ Edition Core API functions. Use the three categorized
lists in this section to quickly find the functions contained in the following pages by function name or by
description.
Functions
The functions are arranged for convenience into these three categories.
Device functions - are used to communicate with the U.are.U fingerprint reader.
Extraction functions - are used for performing feature extraction, which is the system function that is
applied to a fingerprint sample to compute repeatable and distinctive information to be used for
fingerprint verification or fingerprint enrollment.
Matching - compares a fingerprint template and a feature set and calculates a score that indicates how
likely it is that they come from the same finger.
DigitalPersona One Touch for Windows SDK: C/C++ Edition | Developer Guide 35
Chapter 5: Core API Reference Extraction Functions List
DPFPStartAcquisition 43 Subscribes the client application for receiving operation events notifications.
- Feature Manipulation -
DigitalPersona One Touch for Windows SDK: C/C++ Edition | Developer Guide 36
Chapter 5: Core API Reference Matching Functions List
DigitalPersona One Touch for Windows SDK: C/C++ Edition | Developer Guide 37
Chapter 5: Core API Reference Device Functions Reference
DPFPBufferFree
Frees memory previously allocated by a DPFP function call.
Syntax
void DPFPBufferFree (PVOID p);
Parameter Names
Library
DPFPApi.lib
DPFPCreateAcquisition
Creates a fingerprint sample acquisition operation.
Syntax
HRESULT DPFPCreateAcquisition(
DP_ACQUISITION_PRIORITY eAcquisitionPriority,
REFGUID DevUID,
ULONG uSampleType,
HWND hWnd,
ULONG uMsg,
HDPOPERATION * phOperation
);
DigitalPersona One Touch for Windows SDK: C/C++ Edition | Developer Guide 38
Chapter 5: Core API Reference Device Functions Reference
Parameters
eAcquisitionPriority [in] Acquisition priority needed. Must be one of the following values:
DigitalPersona One Touch for Windows SDK: C/C++ Edition | Developer Guide 39
Chapter 5: Core API Reference Device Functions Reference
Return Values
Remarks
In order to free memory allocated for the operation created, the client application must call
DPFPDestroyAcquisition for the handle returned in phOperation.
Library
DPFPApi.lib
DPFPDestroyAcquisition
Destroys the operation previously created by DPFPCreateAcquisition and deallocates all resources
associated with that operation.
Syntax
HRESULT DPFPDestroyAcquisition (HDPOPERATION hOperation);
Parameter Names
Return Values
Library
DPFPApi.lib
DigitalPersona One Touch for Windows SDK: C/C++ Edition | Developer Guide 40
Chapter 5: Core API Reference Device Functions Reference
DPFPEnumerateDevices
Enumerates the device UIDs of available fingerprint readers (devices) connected to this computer.
Syntax
HRESULT DPFPEnumerateDevices (
ULONG * puDevCount,
GUID ** ppDevUID
);
Parameters
puDevCount [out] Number of readers available. If no readers are found, this number is 0.
puDevUID [out] Pointer to be filled with the pointer to the array of device UIDs for available
fingerprint readers. If NULL, only the number of available readers will be
returned.
Return Values
Remarks
Caller must release returned memory by calling DPFPBufferFree.
Library
DPFPApi.lib
DPFPGetDeviceInfo
Retrieves information about a particular reader.
Syntax
HRESULT DPFPGetDeviceInfo (
REFGUID DevUID,
DP_DEVICE_INFO * pDevInfo
);
DigitalPersona One Touch for Windows SDK: C/C++ Edition | Developer Guide 41
Chapter 5: Core API Reference Device Functions Reference
Parameters
DevUID [in] Pointer to the UID of the fingerprint reader to retrieve information about.
Return Values
Library
DPFPApi.lib
DPFPGetVersion
Gets the API version information.
Syntax
HRESULT DPFPGetVersion (
DP_PRODUCT_VERSION * pVersion
);
Parameters
Return Values
Library
DPFPApi.lib
DPFPInit
Allocates and initializes necessary resources. It MUST be called before any other DPFPApi calls except for
DPFPBufferFree.
Syntax
HRESULT DPFPInit ();
DigitalPersona One Touch for Windows SDK: C/C++ Edition | Developer Guide 42
Chapter 5: Core API Reference Device Functions Reference
Return Values
0x800706B3 The RPC server is not listening, which means that the Biometric Authentication
Service has not been started.
Remarks
Every successful (that is, FAILED() == FALSE) call of DPFPInit must have a corresponding call of
the DPFPTerm function.
Library
DPFPApi.lib
DPFPStartAcquisition
Subscribes the client application for receiving operation events notifications.
Syntax
HRESULT DPFPStartAcquisition (
HDPOPERATION hOperation
);
Parameters
Return Values
Remarks
Each process can have no more than one active subscription for each operation priority level.
Library
DPFPApi.lib
DigitalPersona One Touch for Windows SDK: C/C++ Edition | Developer Guide 43
Chapter 5: Core API Reference Device Functions Reference
DPFPStopAcquisition
Unsubscribes the client application from receiving operation events notifications.
Syntax
HRESULT DPFPStopAcquisition (
HDPOPERATION hOperation
);
Parameters
Return Values
Library
DPFPApi.lib
DPFPTerm
Deallocates resources allocated by DPFPInit.
Syntax
Void DPFPTerm ();
Library
DPFPApi.lib
DigitalPersona One Touch for Windows SDK: C/C++ Edition | Developer Guide 44
Chapter 5: Core API Reference Extraction Functions Reference
The feature extraction modules maintain one or more contexts for each caller. A context can be created by
calling FX_createContext, and is released with FX_closeContext.
Extraction functions are used to create feature extraction contexts, extract features, and prepare an image for
display.
FX_extractFeatures is the function that extracts the features from the image, which is passed as one of
the arguments. A handle to the context has to be passed to FX_extractFeatures and
FX_getDisplayImage.
FX_init
Initializes the fingerprint extraction module. It reads various internal settings from the registry, initializes the
MC_SETTINGS structure and initializes the lookup tables used for matching.
This function must be called before any other function in the module is called.
Syntax
FX_DLL_INTERFACE FT_RETCODE fx_init(void);
Return Values
FT_ERR_NO_MEMORY There was not enough memory to initialize the feature extraction
module.
Library
dpHFtrEx.lib
DigitalPersona One Touch for Windows SDK: C/C++ Edition | Developer Guide 45
Chapter 5: Core API Reference Extraction Functions Reference
FX_getVersionInfo
Retrieves the software version of the feature extraction module in the structure of type FT_VERSION_INFO.
Syntax
FX_DLL_INTERFACE void FX_getVersionInfo(
OUT FT_VERSION_INFO_PT fxModuleVersionPt
);
Parameters
fxModuleVersionPt [out] Pointer to the buffer containing the software version of the fingerprint
feature extraction module.
Return Values
Library
dpHFtrEx.lib
FX_createContext
Creates a feature extraction context. If this function succeeds, it returns the handle to the context that is
created. All of the operations in this context require this handle.
Syntax
FX_DLL_INTERFACE FT_RETCODE FX_createContext(
OUT FT_HANDLE *fxContext
);
Parameters
fxContext [out] Pointer to the memory location where the context handle will be placed.
Return Values
DigitalPersona One Touch for Windows SDK: C/C++ Edition | Developer Guide 46
Chapter 5: Core API Reference Extraction Functions Reference
Library
dpHFtrEx.lib
FX_closeContext
Destroys a feature extraction context created by FX_createContext and releases the allocated resources.
Syntax
FX_DLL_INTERFACE FT_RETCODE FX_closeContext(
IN FT_HANDLE fxContext
);
Parameters
Return Values
FT_ERR_NO_INIT FX_init not yet been successfully called. The feature extraction
module has not been initialized.
Library
dpHFtrEx.lib
FX_terminate
Terminates the fingerprint extraction module and releases all resources associated with it.
Syntax
FX_DLL_INTERFACE FT_RETCODE FX_terminate (void);
Return Values
Library
dplibrary.dll
DigitalPersona One Touch for Windows SDK: C/C++ Edition | Developer Guide 47
Chapter 5: Core API Reference Extraction Functions Reference
FX_getFeaturesLen
Retrieves the size of the buffer for the fingerprint feature set. This function returns either the minimum or the
recommended size that provides the best recognition accuracy, or both.
Syntax
FX_DLL_INTERFACE FT_RETCODE FX_getFeaturesLen(
IN FT_FTR_TYPE featureSetPurpose,
OUT int* recommendedFeatureSetSize,
OUT int* minimumFeatureSetSize
);
Parameters
featureSetPurpose [in] Feature set purpose. Specifies the purpose for which the
fingerprint feature set is to be created. For a fingerprint feature
set to be used for enrollment, use the value
FT_PRE_REG_FTR; for verification, use FT_VER_FTR.
FT_REG_FTR is not a valid value for this function.
recommendedFeatureSetSize Pointer to the memory receiving the size of the buffer for the
fingerprint feature set recommended for best recognition
accuracy, or NULL.
If NULL is passed, minimumFeatureSetSize must not be
NULL.
minimumFeatureSetSize Pointer to the memory receiving the minimum size of the buffer
for the fingerprint feature set, or NULL.
If NULL is passed, recommendedFeatureSet must not be
NULL.
Return Values
Library
dpHFtrEx.lib
DigitalPersona One Touch for Windows SDK: C/C++ Edition | Developer Guide 48
Chapter 5: Core API Reference Extraction Functions Reference
FX_extractFeatures
Creates a fingerprint feature set by applying fingerprint feature extraction to the fingerprint image obtained
from the fingerprint reader to compute repeatable and distinctive information. Depending on the specified
feature set purpose, this information can be used for either fingerprint enrollment or verification.
Syntax
FX_DLL_INTERFACE FT_RETCODE FX_extractFeatures(
IN FT_HANDLE fxContext,
IN int imageSize,
IN const FT_IMAGE_PTC imagePt,
IN FT_FTR_TYPE featureSetPurpose,
IN int featureSetSize,
OUT FT_BYTE* featureSet,
OUT FT_IMG_QUALITY_PT imageQualityPt,
OUT FT_FTR_QUALITY_PT featuresQualityPt,
OUT FT_BOOL* featureSetCreated
);
Parameter Names
featureSetPurpose [in] Feature set purpose. Specifies the purpose for which the fingerprint
feature set is to be created. For a fingerprint feature set to be used for
enrollment, use the value FT_PRE_REG_FTR; for verification, use
FT_VER_FTR. FT_REG_FTR is not a valid value for this function.
featureSetSize [in] Fingerprint feature set size. This parameter is the size, in bytes, of the
fingerprint feature set. Use the FX_getFeaturesLen function (page 48)
to obtain information about which fingerprint feature set size to use.
featureSet [out] Pointer to the buffer location receiving the fingerprint feature set
DigitalPersona One Touch for Windows SDK: C/C++ Edition | Developer Guide 49
Chapter 5: Core API Reference Extraction Functions Reference
imageQualityPt [out] Pointer to the buffer containing information about the quality of the
fingerprint image. Image quality is represented by one of the following
values:
FT_GOOD_IMG. The fingerprint image quality is good.
FT_IMG_TOO_LIGHT. The fingerprint image is too light.
FT_IMG_TOO_DARK. The fingerprint image is too dark.
FT_IMG_TOO_NOISY. The fingerprint image is too blurred.
FT_LOW_CONTRAST. The fingerprint image contrast is too low.
FT_UNKNOWN_IMG_QUALITY. The fingerprint image quality is
undetermined.
featuresQualityPt [out] Pointer to the buffer containing information about the quality of the
fingerprint features. If the fingerprint image quality (imageQualityPt)
is not equal to the value FT_GOOD_IMG, extraction is not attempted, and
the parameter is set to FT_UNKNOWN_FTR_QUALITY.
Fingerprint features quality is represented by one of the following values:
FT_GOOD_FTR. The fingerprint features quality is good.
FT_NOT_ENOUGH_FTR. There are not enough fingerprint features.
FT_NO_CENTRAL_REGION. The fingerprint image does not contain the
central portion of the finger.
FT_AREA_TOO_SMALL. The fingerprint image area is too small.
FT_UNKNOWN_FTR_QUALITY. Quality cannot be determined.
featureSetCreated [out] Pointer to the memory receiving the value of whether the fingerprint
feature set is created. If the value of this parameter is FT_TRUE, the
fingerprint feature set was written to featureSet. If the value is
FT_FALSE, a fingerprint feature set was not created.
Return Values
DigitalPersona One Touch for Windows SDK: C/C++ Edition | Developer Guide 50
Chapter 5: Core API Reference Extraction Functions Reference
Library
dpHFtrEx.lib
FX_getDisplayImage
Prepares the fingerprint image obtained from the fingerprint reader for display. This may involve resizing,
changing the number of grayscale intensity levels, rotating, and otherwise processing the fingerprint image to
ensure that it displays well. The fingerprint image passed to the FX_getDisplayImage function is the
same fingerprint image used by the FX_extractFeatures function (page 49).
Syntax
FX_DLL_INTERFACE FT_RETCODE FX_getDisplayImage(
IN FT_HANDLE fxContext,
IN const FT_IMAGE_PTC imagePt,
IN const FT_IMAGE_SIZE_PT pImageSize,
IN const FT_BOOL imageRotation,
IN const int numIntensityLevels,
OUT FT_IMAGE_PT pImageBuffer
);
Parameter Names
imagePt [in] Pointer to the buffer containing the fingerprint image obtained from
the fingerprint reader
pImageSize [in] Pointer to the buffer containing the requested dimensions (width and
height) of the fingerprint image
imageRotation [in] Indicates whether the fingerprint image is to be rotated. If the value of
this parameter is equal to FT_TRUE, the fingerprint image is rotated. If
the value is FT_FALSE, the fingerprint image is not rotated.
numIntensityLevels [in] Requested number of grayscale intensity levels. Valid values are
integers between 1 and 256.
pImageBuffer [out] Pointer to the buffer which will be filled with display image bytes.
Buffer must be large enough to hold the image information that will be
returned, i.e. width times height of the image.
DigitalPersona One Touch for Windows SDK: C/C++ Edition | Developer Guide 51
Chapter 5: Core API Reference Extraction Functions Reference
Return Values
Library
dpHFtrEx.lib
DigitalPersona One Touch for Windows SDK: C/C++ Edition | Developer Guide 52
Chapter 5: Core API Reference Matching Functions Reference
The dpMatch module has a structure of type MC_SETTINGS, which is initialized by MC_init.
Most of the functions must be called in a particular context, which is specified by passing a context handle as
the first argument.
MC_init
Initializes the fingerprint comparison module. This function must be called before any other functions in the
module are called.
Syntax
MC_DLL_INTERFACE FT_RETCODE MC_init(void);
Return Values
Library
dpHMatch.lib
MC_getVersionInfo
Retrieves the software version information of the fingerprint comparison module.
Syntax
MC_DLL_INTERFACE void MC_getVersionInfo(
OUT FT_VERSION_INFO_PT mcModuleVersionPt
);
Parameters
DigitalPersona One Touch for Windows SDK: C/C++ Edition | Developer Guide 53
Chapter 5: Core API Reference Matching Functions Reference
Return Values
Library
dpHMatch.lib
MC_getSettings
Retrieves the current fingerprint comparison module settings in the structure of type MC_SETTINGS. This
function provides the number of fingerprint feature sets required for the purpose of fingerprint enrollment.
This setting is read-only.
Syntax
MC_DLL_INTERFACE FT_RETCODE MC_getSettings(
OUT MC_SETTINGS_PT mcSettingsPt
);
Parameters
mcSettingsPt [out] Pointer to the structure of the fingerprint comparison module settings
Return Values
Library
dpHMatch.lib
MC_createContext
Creates a context for the fingerprint comparison module. If this function succeeds, it returns the handle to the
context that is created. All of the operations in this context require this handle.
Syntax
MC_DLL_INTERFACE FT_RETCODE MC_createContext(
OUT FT_HANDLE* mcContext
);
Parameters
mcContext [out] Pointer to the memory receiving the handle to the comparison context
DigitalPersona One Touch for Windows SDK: C/C++ Edition | Developer Guide 54
Chapter 5: Core API Reference Matching Functions Reference
Return Values
Library
dpHMatch.lib
MC_closeContext
Destroys a comparison context and releases the resources associated with it.
Syntax
MC_DLL_INTERFACE FT_RETCODE MC_closeContext(
IN FT_HANDLE mcContext
);
Parameters
Return Values
Library
dpHMatch.lib
MC_getSecurityLevel
Retrieves the current security level of the specified comparison context in terms of the false accept rate (FAR).
Syntax
MC_DLL_INTERFACE FT_RETCODE MC_getSecurityLevel(
IN FT_HANDLE mcContext,
OUT FT_FA_RATE* targetFar
);
Parameters
targetFar [out] Pointer to the memory receiving the target FAR for the comparison context
DigitalPersona One Touch for Windows SDK: C/C++ Edition | Developer Guide 55
Chapter 5: Core API Reference Matching Functions Reference
Return Values
Library
dpHMatch.lib
MC_setSecurityLevel
Sets the security level of a comparison context by specifying a target false accept rate (FAR). The lower the
value of the FAR, the higher the security level and the higher the target false reject rate (FRR). (See False Positives
and False Negatives on page 19 for more information about FAR and FRR.)
IMPORTANT: This function is to be used for comparison contexts only. Do not specify a security level for a
feature extraction context.
IMPORTANT: Although the default value of MED_SEC_FA_RATE is adequate for most applications, you
might require a lower or higher value to meet your needs. If you decide to use a value other than
the default, be sure that you understand the consequences of doing so. Refer to Appendix A on
page 89 for more information about setting the value of the FAR.
Syntax
MC_DLL_INTERFACE FT_RETCODE MC_setSecurityLevel(
IN FT_HANDLE mcContext,
IN FT_FA_RATE targetFar
);
Parameters
targetFar [in] Target FAR. For high security, use the low value of FAR defined in
HIGH_SEC_FA_RATE; for mid-range security, use the mid-range value of FAR
defined in MED_SEC_FA_RATE (the default); and for low security, use the high
value of FAR defined in LOW_SEC_FA_RATE.
Return Values
DigitalPersona One Touch for Windows SDK: C/C++ Edition | Developer Guide 56
Chapter 5: Core API Reference Matching Functions Reference
Library
dpHMatch.lib
MC_terminate
Terminates the fingerprint comparison module and releases the resources associated with it.
Syntax
MC_DLL_INTERFACE FT_RETCODE MC_terminate(void);
Return Values
Library
dpHMatch.lib
MC_getFeaturesLen
Retrieves the size of the buffer for the fingerprint template. This function returns either the minimum or the
recommended size that provides the best recognition accuracy, or both.
Syntax
MC_DLL_INTERFACE FT_RETCODE MC_getFeaturesLen(
IN FT_FTR_TYPE featureSetPurpose,
IN int reserved,
OUT int* recommendedTemplateSize,
OUT int* minimumTemplateSize
);
DigitalPersona One Touch for Windows SDK: C/C++ Edition | Developer Guide 57
Chapter 5: Core API Reference Matching Functions Reference
Parameters
featureSetPurpose [in] Feature set purpose. Specifies the purpose for which the
fingerprint feature set is to be created. For a feature set to be used
for enrollment, use the value FT_PRE_REG_FTR; for verification,
use FT_VER_FTR; and for a fingerprint template, use
FT_REG_FTR.
recommendedTemplateSize [out] Pointer to the memory receiving the size of the buffer for the
fingerprint template recommended for best recognition accuracy, or
NULL. If NULL is passed, minimumTemplateSize must not
be NULL.
minimumTemplateSize [out] Pointer to the memory receiving the minimum size of the
buffer for the fingerprint template, or NULL. If NULL is passed,
recommendedTemplateSize must not be NULL.
Return Values
Library
dpHMatch.lib
MC_generateRegFeatures
Creates a fingerprint template to be used for later comparison with a fingerprint feature set. This function,
known as fingerprint enrollment, computes the fingerprint template using the specified number of fingerprint
feature sets (numFeatureSets) successfully returned by the FX_extractFeatures function
(page 49).
DigitalPersona One Touch for Windows SDK: C/C++ Edition | Developer Guide 58
Chapter 5: Core API Reference Matching Functions Reference
Syntax
MC_DLL_INTERFACE FT_RETCODE MC_generateRegFeatures(
IN FT_HANDLE mcContext,
IN int reserved0,
IN int numFeatureSets,
IN int featureSetSize,
IN FT_BYTE* featureSet[],
IN int templateSize,
OUT FT_BYTE* template,
OUT FT_BYTE reserved1[],
OUT FT_BOOL* templateCreated
);
Parameters
mcContext [in] Handle to the comparison context
numFeatureSets [in] Number of input fingerprint feature sets, which is the number specified in
the numFeatureSets field of the structure of type MC_SETTINGS.
featureSetSize [in] Size of the buffer for the fingerprint feature set (assuming that the size of
each fingerprint feature set is the same)
featureSet[] [in] Array of pointers to the locations of the buffers for each fingerprint feature
set
template [out] Pointer to the location of the buffer receiving the fingerprint template
templateCreated [out] Pointer to the memory that will receive the value of whether the
template is created. If the value of this parameter is FT_TRUE, the
fingerprint template was written to template. If the value is FT_FALSE,
a template was not created.
DigitalPersona One Touch for Windows SDK: C/C++ Edition | Developer Guide 59
Chapter 5: Core API Reference Matching Functions Reference
Return Values
Library
dpHMatch.lib
MC_verifyFeaturesEx
Performs a one-to-one comparison of a fingerprint feature set with a fingerprint template produced at
enrollment and makes a decision of match or non-match. This function is known as fingerprint verification. The
function succeeds if the comparison score is high enough given the security level of the specified comparison
context.
Syntax
MC_DLL_INTERFACE FT_RETCODE MC_verifyFeaturesEx(
IN FT_HANDLE mcContext,
IN int templateSize,
IN OUT FT_BYTE* template,
IN int featureSetSize,
IN FT_BYTE* featureSet,
IN int reserved0,
OUT void* reserved1,
OUT int reserved2[],
OUT FT_VER_SCORE_PT reserved3,
OUT double* achievedFar,
OUT FT_BOOL* comparisonDecision
);
DigitalPersona One Touch for Windows SDK: C/C++ Edition | Developer Guide 60
Chapter 5: Core API Reference Matching Functions Reference
Parameters
achievedFar [out] Pointer to the value of the achieved FAR for this comparison. If the
achieved FAR is not required, a NULL pointer can be passed.
comparisonDecision [out] Pointer to the memory that will receive the comparison decision. This
parameter indicates whether the comparison of the fingerprint feature set
and the fingerprint template resulted in a decision of match (FT_TRUE)
or non-match (FT_FALSE) at the security level of the specified
comparison context.
Return Values
Library
dpHMatch.lib
DigitalPersona One Touch for Windows SDK: C/C++ Edition | Developer Guide 61
Chapter 5: Core API Reference Data Structures
Data Structures
This section defines the One Touch for Windows: C/C++ Edition Core API data structures.
DP_DEVICE_INFO
Device information structure.
Syntax
typedef struct DP_DEVICE_INFO
{
GUID DeviceUid;
DP_DEVICE_UID_TYPE eUidType;
DP_DEVICE_MODALITY eDeviceModality;
DP_DEVICE_TECHNOLOGY eDeviceTech;
DP_HW_INFO HwInfo;
} DP_DEVICE_INFO, * PDP_DEVICE_INFO;
Data Fields
DP_DEVICE_VERSION
Device hardware/firmware version number structure.
Syntax
typedef struct DP_DEVICE_VERSION
{
ULONG uMajor;
ULONG uMinor;
ULONG uBuild;
} DP_DEVICE_VERSION;
DigitalPersona One Touch for Windows SDK: C/C++ Edition | Developer Guide 62
Chapter 5: Core API Reference DP_HW_INFO
Data Fields
DP_HW_INFO
Device hardware information structure.
Syntax
typedef struct DP_HW_INF
{
unsigned int uLanguageId;
wchar_t szVendor[DP_MAX_USB_STRING_SIZE];
wchar_t szProduct[DP_MAX_USB_STRING_SIZE];
wchar_t szSerialNb[DP_MAX_USB_STRING_SIZE];
DP_DEVICE_VERSION HardwareRevision
DP_DEVICE_VERSION FirmwareRevision;
} DP_HW_INFO, * PDP_HW_INFO;
Data Fields
DigitalPersona One Touch for Windows SDK: C/C++ Edition | Developer Guide 63
Chapter 5: Core API Reference DP_PRODUCT_VERSION
DP_PRODUCT_VERSION
DigitalPersona product version structure.
Syntax
typedef struct DP_PRODUCT_VERSION
{
WORD wMajor;
WORD wMinor;
WORD wRevision;
WORD wBuild;
} DP_PRODUCT_VERSION, * PDP_PRODUCT_VERSION;
Data Fields
FT_VERSION_INFO
Fingerprint feature extraction or fingerprint comparison module version information structure.
Syntax
typedef struct
{
unsigned major;
unsigned minor;
unsigned revision;
unsigned build;
} FT_VERSION_INFO, * FT_VERSION_INFO_PT;
DigitalPersona One Touch for Windows SDK: C/C++ Edition | Developer Guide 64
Chapter 5: Core API Reference MC_SETTINGS
Data Fields
MC_SETTINGS
Fingerprint comparison module settings structure.
Syntax
typedef struct{
int numPreRegFeatures;
} MC_SETTINGS, * MC_SETTINGS_PT;
Data Fields
DigitalPersona One Touch for Windows SDK: C/C++ Edition | Developer Guide 65
Chapter 5: Core API Reference Enumerations
Enumerations
This section defines the One Touch for Windows: C/C++ Edition Core API enumerations.
DP_ACQUISITION_PRIORITY
Defines the priority of a fingerprint sample capture operation performed by a fingerprint reader.
Syntax
typedef enum DP_ACQUISITION_PRIORITY
{
DP_PRIORITY_HIGH= 1,
DP_PRIORITY_NORMAL= 2,
DP_PRIORITY_LOW = 3
} DP_ACQUISITION_PRIORITY;
Values
DP_DEVICE_MODALITY
Defines the modality that a fingerprint reader uses to capture fingerprint samples.
Syntax
typedef enum DP_DEVICE_MODALITY
{
DP_UNKNOWN_DEVICE_MODALITY = 0,
DP_SWIPE_DEVICE,
DP_AREA_DEVICE,
DP_DEVICE_MODALITY_NUM,
} DP_DEVICE_MODALITY;
DigitalPersona One Touch for Windows SDK: C/C++ Edition | Developer Guide 66
Chapter 5: Core API Reference DP_DEVICE_TECHNOLOGY
Values
DP_DEVICE_TECHNOLOGY
Defines the fingerprint reader technology.
Syntax
typedef enum DP_DEVICE_TECHNOLOGY
{
DP_UNKNOWN_DEVICE_TECHNOLOGY = 0,
DP_OPTICAL_DEVICE,
DP_CAPACITIVE_DEVICE,
DP_THERMAL_DEVICE,
DP_PRESSURE_DEVICE,
DP_DEVICE_TECHNOLOGY_NUM,
} DP_DEVICE_TECHNOLOGY;
Values
DigitalPersona One Touch for Windows SDK: C/C++ Edition | Developer Guide 67
Chapter 5: Core API Reference DP_DEVICE_UID_TYPE
DP_DEVICE_UID_TYPE
Defines the type of UUID identifying the device.
Syntax
typedef enum DP_DEVICE_UID_TYPE
{
DP_PERSISTENT_DEVICE_UID = 0,
DP_VOLATILE_DEVICE_UID,
} DP_DEVICE_UID_TYPE;
Values
DP_SAMPLE_QUALITY
Defines the quality of the fingerprint sample.
Syntax
typedef enum DP_SAMPLE_QUALITY {
DP_QUALITY_GOOD = 0,
DP_QUALITY_NONE = 1,
DP_QUALITY_TOOLIGHT = 2,
DP_QUALITY_TOODARK = 3,
DP_QUALITY_TOONOISY = 4,
DP_QUALITY_LOWCONTR = 5,
DP_QUALITY_FTRNOTENOUGH = 6,
DP_QUALITY_NOCENTRAL = 7,
DP_QUALITY_NOFINGER = 8,
DP_QUALITY_TOOHIGH = 9,
DP_QUALITY_TOOLOW = 10,
DP_QUALITY_TOOLEFT = 11,
DP_QUALITY_TOORIGHT = 12,
DP_QUALITY_TOOSTRANGE = 13,
DP_QUALITY_TOOFAST = 14,
DP_QUALITY_TOOSKEWED = 15,
DP_QUALITY_TOOSHORT = 16,
DP_QUALITY_TOOSLOW = 17,
} DP_SAMPLE_QUALITY;
DigitalPersona One Touch for Windows SDK: C/C++ Edition | Developer Guide 68
Chapter 5: Core API Reference DP_SAMPLE_QUALITY
Values
DP_QUALITY_TOOLEFT The finger was too close to left border of the swipe sensor.
DP_QUALITY_TOORIGHT The finger was too close to right border of the swipe sensor.
DigitalPersona One Touch for Windows SDK: C/C++ Edition | Developer Guide 69
Chapter 5: Core API Reference FT_IMG_QUALITY
FT_IMG_QUALITY
Defines the image quality.
typedef enum
{
FT_GOOD_IMG,
FT_IMG_TOO_LIGHT,
FT_IMG_TOO_DARK,
FT_IMG_TOO_NOISY,
FT_LOW_CONTRAST,
FT_UNKNOWN_IMG_QUALITY
} FT_IMG_QUALITY, *FT_IMG_QUALITY_PT;
Values
FT_FTR_QUALITY
Defines the fingerprint features quality.
typedef enum
{
FT_GOOD_FTR,
FT_NOT_ENOUGH_FTR,
FT_NO_CENTRAL_REGION,
FT_UNKNOWN_FTR_QUALITY,
FT_AREA_TOO_SMALL
} FT_FTR_QUALITY, * FT_FTR_QUALITY_PT;
DigitalPersona One Touch for Windows SDK: C/C++ Edition | Developer Guide 70
Chapter 5: Core API Reference FT_FTR_TYPE
Values
FT_NO_CENTRAL_REGION The fingerprint image does not contain the central portion of the
finger.
FT_UNKNOWN_FTR_QUALITY The fingerprint features quality is undetermined.
FT_FTR_TYPE
Defines the feature set purpose.
Syntax
typedef enum
{
FT_PRE_REG_FTR,
FT_REG_FTR,
} FT_FTR_TYPE;
Values
DigitalPersona One Touch for Windows SDK: C/C++ Edition | Developer Guide 71
Chapter 5: Core API Reference Type Definitions and Constants
DFLT_FA_RATE MED_SEC_FA_RATE
Default value for target FAR.
Syntax
#define DFLT_FA_RATE MED_SEC_FA_RATE
DP_SAMPLE_TYPE_IMAGE
Type of fingerprint sample needed. This value is used in the uSampleType parameter of the
DPFPCreateAcquisition function (page 38).
Syntax
#define DP_SAMPLE_TYPE_IMAGE 4
FT_FA_RATE
Target false accept rate (FAR). These are percentages, that is, a value of 0.1 means 0.1% = 1/1000. */
Syntax
typedef double FT_FA_RATE;
HDPOPERATION
Operation handle.
Syntax
typedef unsigned long HDPOPERATION
HIGH_SEC_FA_RATE
High security/low value for target FAR.
Syntax
#define HIGH_SEC_FA_RATE 0.0001f
DigitalPersona One Touch for Windows SDK: C/C++ Edition | Developer Guide 72
Chapter 5: Core API Reference LOW_SEC_FA_RATE
LOW_SEC_FA_RATE
Low security/high value for target FAR.
Syntax
#define LOW_SEC_FA_RATE 0.0100f
MED_SEC_FA_RATE
Mid-range security/mid-range value for target FAR.
Syntax
#define MED_SEC_FA_RATE 0.0010f
DigitalPersona One Touch for Windows SDK: C/C++ Edition | Developer Guide 73
User Interface API Reference 6
This chapter provides a reference to the User Interface API (DPUIAPI) wrapper that simplifies access to the
entire functionality available in the Core API described in the previous chapter. The wrapper provides a
premade user interface that handles device component, fingerprint enrollment, and fingerprint verification
tasks through a few simple functions and two callbacks.
Functions
DPEnrollUI
This function displays the user interface for enrolling the fingerprints and returns after closing of user interface.
It does not store the fingerprint template; instead, it calls the application-defined function
DPENROLLMENTPROC for each enrollment or deletion of a fingerprint.
Syntax
DPFPUI_STDAPI DPEnrollUI(HWND hParentWnd,
USHORT usMaxEnrollFingerCount,
PULONGpulEnrolledFingersMask,
DPENROLLMENTPROC dpEnrollmentProc,
LPVOID pUserData
);
Parameters
pulEnrolledFingersMask [in, out] Bitwise mask that specifies the fingers enrolled. For possible
values, see Table 4.
DigitalPersona One Touch for Windows SDK: C/C++ Edition | Developer Guide 74
Chapter 6: User Interface API Reference DPEnrollUI
Return Values
Library
DPFPUI.dll
DigitalPersona One Touch for Windows SDK: C/C++ Edition | Developer Guide 75
Chapter 6: User Interface API Reference DPVerifyUI
DPVerifyUI
Displays the fingerprint verification user interface. The title, text, and banner image of the fingerprint
verification user interface can be customized.
Syntax
DPFPUI_STDAPI DPVerifyUI(
HWND hParentWnd,
DPVERIFYPROC dpVerifyProc,
LPCWSTR lpszCaption,
LPCWSTR lpszText,
HBITMAP hBanner,
LPVOID pUserData
);
Parameters
Return Values
Library
DPFPUI.dll
DigitalPersona One Touch for Windows SDK: C/C++ Edition | Developer Guide 76
Chapter 6: User Interface API Reference Callbacks
Callbacks
A callback is executable code that is passed as an argument to other code. It allows a lower-level software layer
to call a subroutine (or function) defined in a higher-level layer.
DPENROLLMENTPROC
This is the application-provided callback function. This function is called while enrolling a new fingerprint or
deleting an enrolled fingerprint. The application should handle the storing of new fingerprint templates for
comparison or deleting of an enrolled fingerprint template in this callback. The application can display its own
success or error messages.
Parameters
The uiFingerIndex parameter contains the index value of the finger associated with a fingerprint
template to be enrolled or with a fingerprint template to be deleted, as defined in ANSI/NIST-ITL 1. The
index values are assigned to the graphical representation of the fingers on the hands in the user interface.
All possible values are listed in Table 5.
DigitalPersona One Touch for Windows SDK: C/C++ Edition | Developer Guide 77
Chapter 6: User Interface API Reference DPVERIFYPROC
Return Values
Library
DPFPUI.dll
DPVERIFYPROC
This is an application-provided callback function. It is called when a fingerprint feature set is ready for
comparison. The application should handle the comparison of this fingerprint feature set against the
fingerprint templates.
Syntax
typedef HRESULT (CALLBACK *DPVERIFYPROC)(
HWND hParentWnd,
PDATA_BLOB pVerificationFeatureSet,
LPVOID pUserData
);
Parameters
DigitalPersona One Touch for Windows SDK: C/C++ Edition | Developer Guide 78
Chapter 6: User Interface API Reference DPVERIFYPROC
Return Values
S_OK The fingerprint feature set to be verified matches one of the fingerprint templates.
0x800704c7 The fingerprint feature set to be verified did not match any of the fingerprint
templates. A retry should be performed.
Library
DPFPUI.dll
DigitalPersona One Touch for Windows SDK: C/C++ Edition | Developer Guide 79
Chapter 6: User Interface API Reference Enumerations
Enumerations
DP_ENROLLMENT_ACTION
Defines the requested fingerprint enrollment action.
Syntax
typedef enum
{
DP_ENROLLMENT_ADD,
DP_ENROLLMENT_DELETE
} DP_ENROLLMENT_ACTION;
Values
DigitalPersona One Touch for Windows SDK: C/C++ Edition | Developer Guide 80
Events Notifications and Return Codes 7
This chapter defines the notification events and return codes used within the One Touch for Windows: C/C++
Edition SDK.
Events Notifications
During the creation of an operation, the client application specifies the handle of the window to be notified on
operation-related events as well as the window message to be sent as a notification. The wParam of the
message specifies the event type. The value of lParam is event-specific.
2 WN_DISCONNECT The device has been disconnected. The pointer to device UID is returned
in lParam.
3 WN_RECONNECT The device has been reconnected. The pointer to device UID is returned
in lParam.
4 WN_SAMPLEQUALITY Provides information about the quality of the fingerprint image. lParam
contains the fingerprint image quality listed in the enum of type
DP_SAMPLE_QUALITY.
7 WN_IMAGE_READY An image is ready from the device. The pointer to device UID is returned
in lParam.
DigitalPersona One Touch for Windows SDK: C/C++ Edition | Developer Guide 81
Chapter 7: Events Notifications and Return Codes Return Codes
Return Codes
Value Return Code Description
-16 FT_ERR_FEAT_LEN_TOO_SHORT The specified fingerprint feature set or fingerprint template buffer
size is too small.
-32 FT_ERR_FTRS_INVALID Decrypted fingerprint features are not valid. Decryption may have
failed.
DigitalPersona One Touch for Windows SDK: C/C++ Edition | Developer Guide 82
Developing Citrix-aware applications 8
This SDK includes support for fingerprint authentication through Windows Terminal Services (including
Remote Desktop Connection) and through a Citrix connection to Metaframe Presentation Server using a client
from the Citrix Presentation Server Client package.
The following types of Citrix clients are supported for fingerprint authentication:
Program Neighborhood
Program Neighborhood Agent
Web Client
In order to utilize this support, your application (or the end-user) will need to copy a file to the client computer
and register it. The name of the file is DPICACnt.dl, and it is located in the "Misc\Citrix Support" folder in the
product package.
1. - Locate the DPICACnt.dll file on the DP Product CD in the "Misc\Citrix Support" folder.
2. Copy the file to the folder on the client computer where the Citrix client components are located (i.e. for
the Program Neighborhood client it might be the "Program Files\Citrix\ICA Client" folder).
3. Using the regsvr32.exe program, register the DPICACnt.dll library.
If you have several Citrix clients installed on a computer, deploy the DPICACnt.dll library to the Citrix client
folder for each client.
If your application will also be working with Pro Workstation 4.2.0 and later or Pro Kiosk 4.2.0 and later, you will
need to inform the end-user’s administrator that they will need to enable two Group Policy Objects (GPOs),
"Use DigitalPersona Pro Server for authentication" and "Allow Fingerprint Data Redirection". For information on
how to enable these policies, see the "DigitalPersona Pro for AD Guide.pdf" located on the DigitalPersona Pro
Server installation CD.
DigitalPersona One Touch for Windows SDK: C/C++ Edition | Developer Guide 83
Redistribution 9
You may redistribute the files in the RTE\Install and the Redist folders in the One Touch for Windows SDK
software package to your end users pursuant to the terms of the end user license agreement (EULA), attendant
to the software and located in the Docs folder in the SDK software package.
When you develop a product based on the One Touch for Windows SDK, you need to provide the
redistributables to your end users. These files are designed and licensed for use with your application. You may
include the installation files located in the RTE\Install folder in your application, or you may incorporate the
redistributables directly into your installer. You may also use the merge modules located in the Redist folder in
the SDK software package to create your own MSI installer.
Per the terms of the EULA, DigitalPersona grants you a non-transferable, non-exclusive, worldwide license to
redistribute, either directly or via the respective merge modules, the following files contained in the RTE\Install
and Redist folders in the One Touch for Windows SDK software package to your end users and to incorporate
these files into derivative works for sale and distribution:
RTE\Install Folder
InstallOnly.bat
Setup.exe
Setup.msi
UninstallOnly.bat
Redist Folder
DpCore.msm
This merge module contains the following files:
Dpcoper2.dll
Dpdevice2.dll
Dpfpapi.dll
Dphostw.exe
Dpmux.dll
Dpmsg.dll
Dpclback.dll
DPCrStor.dll
DigitalPersona One Touch for Windows SDK: C/C++ Edition | Developer Guide 84
Chapter 9: Redistribution Redist Folder
DpCore_x64.msm
This merge module contains the following files:
Dpcoper2.dll
Dpdevice2.dll
Dpfpapi.dll
Dphostw.exe
Dpmux.dll
Dpclback.dll
DPCrStor.dll
x64\Dpmsg.dll
DpDrivers.msm
This merge module contains the following files:
Dpd00701x64.dll
Dpdevctlx64.dll
Dpdevdatx64.dll
Dpersona_x64.cat
Dpersona_x64.inf
Dpi00701x64.dll
Dpinst32.exe
Dpinst64.exe
Usbdpfp.sys
Dpersona.cat
Dpersona.inf
Dpdevctl.dll
Dpdevdat.dll
Dpk00701.sys
Dpk00303.sys
Dpd00303.dll
Dpd00701.dll
Dpi00701.dll
DigitalPersona One Touch for Windows SDK: C/C++ Edition | Developer Guide 85
Chapter 9: Redistribution Redist Folder
DpFpRec.msm
This merge module contains the following files:
Dphftrex.dll
Dphmatch.dll
DpFpRec_x64.msm
This merge module contains the following files:
<system folder>\Dphftrex.dll
<system folder>\Dphmatch.dll
<system64 folder>\Dphftrex.dll
<system64 folder>\Dphmatch.dll
DPFpUI.msm
This merge module contains the following file:
Dpfpui.dll
DPFpUI_x64.msm
This merge module contains the following file:
<system folder>\Dpfpui.dll
<system64 folder>\Dpfpui.dll
DpProCore.msm
This merge module contains the following files:
Dpdevts.dll
Dpsvinfo2.dll
Dptsclnt.dll
•DpOTCOMActX.msm
This merge module contains the following files:
„ DPFPShrX.dll
„ DPFPDevX.dll
„ DPFPEngX.dll
„ DPFPCtlX.dll
•DpOTCOMActX_x64.msm
This merge module contains the following files:
DigitalPersona One Touch for Windows SDK: C/C++ Edition | Developer Guide 86
Chapter 9: Redistribution Fingerprint Reader Documentation
DPFPShrX.dll
DPFPDevX.dll
DPFPEngX.dll
DPFPCtlX.dll
x64\DpFpCtlX.dll
x64\DpFpDevX.dll
x64\DpFpEngX.dll
x64\DpFpShrX.dll
•DpOTDotNET.msm
This merge module contains the following files:
DPFPShrNET.dll
DPFPDevNET.dll
DPFPEngNET.dll
DPFPVerNET.dll
DPFPGuiNET.dll
DPFPCtlXLib.dll
DPFPCtlXTypeLibNET.dll
DPFPCtlXWrapperNET.dll
DPFPShrXTypeLibNET.dll
DigitalPersona One Touch for Windows SDK: C/C++ Edition | Developer Guide 87
Chapter 9: Redistribution Fingerprint Reader Use and Maintenance Guide
DigitalPersona One Touch for Windows SDK: C/C++ Edition | Developer Guide 88
Setting the False Accept Rate A
This appendix is for developers who want to specify a false accept rate (FAR) other than the default used by the
DigitalPersona Fingerprint Recognition Engine.
Increasing or decreasing the FAR has the opposite effect on the false reject rate (FRR), that is, decreasing the
rate of false accepts increases the rate of false rejects and vice versa. Therefore, a high security level may be
appropriate for an access system to a secured area, but may not be acceptable for a system where convenience
or easy access is more significant than security.
Representation of Probability
Probability should always be in the range from 0 to 1. Some common representations of probability are listed
in column one of Table 2. The value in the third row represents the current default value used by the
DigitalPersona Fingerprint Recognition Engine, which offers a mid-range security level. The value in the second
row represents a typical high FAR/low security level, and the value in the fourth row represents a typical low
FAR/high security level.
DigitalPersona One Touch for Windows SDK: C/C++ Edition | Developer Guide 89
Appendix A: Setting the False Accept Rate
Requested FAR
You specify the value of the FAR using the targetFar parameter of the MC_setSecurityLevel
function. While you can request any value from 0 to 100%, it is not guaranteed that the Engine will fulfill the
request exactly. The Engine implementation makes the best effort to accommodate the request by internally
setting the value closest to that requested within the restrictions it imposes for security.
...
Achieved FAR
The actual value of the FAR achieved for a particular verification operation is returned in the achievedFar
parameter of MC_verifyFeaturesEx function as a probability value between 0 and 1. This value is
typically much smaller than the requested FAR due to the accuracy of the DigitalPersona Fingerprint
Recognition Engine. The requested FAR specifies the maximum value of the FAR to be used by the Engine in
making the verification decision. The actual FAR achieved by the Engine when conducting a legitimate
comparison is usually a much lower value. The Engine implementation may choose the range and granularity
for the achieved FAR. If you make use of this value in your application, for example, by combining it with other
achieved FARs, you should use it with caution, as the granularity and range may change between versions of
DigitalPersona SDKs without notice.
Testing
Although you may achieve the desired values of the FAR in your development environment, it is not
guaranteed that your application will achieve the required security level in real-world situations. Even though
the Engine is designed to make its best effort to accurately implement the probability estimates, it is
recommended that you conduct system-level testing to determine the actual operating point and accuracy in a
given scenario. This is even more important in systems where multiple biometric factors are used for
identification.
DigitalPersona One Touch for Windows SDK: C/C++ Edition | Developer Guide 90
Platinum SDK Registration Template Conversion B
This appendix is for Platinum SDK users who need to convert their Platinum SDK registration templates to a
format that is compatible with the SDKs that are listed in Fingerprint Template Compatibility on page 5. You can
use the following sample codes for this purpose.
Code Sample 1. Platinum SDK Template Conversion for Microsoft Visual C++ Applications
#import "DpSdkEng.tlb" no_namespace, named_guids, raw_interfaces_only
#include <atlbase.h>
CComVariant varVal;
varVal.vt = VT_ARRAY | VT_UI1;
varVal.parray = SafeArrayCreate(VT_UI1, 1, &rgsabound);
IFPTemplatePtr pIFPTemplate(__uuidof(FPTemplate));
if (pIFPTemplate == NULL)
return false;
DigitalPersona One Touch for Windows SDK: C/C++ Edition | Developer Guide 91
Appendix B: Platinum SDK Registration Template Conversion
Code Sample 1. Platinum SDK Template Conversion for Microsoft Visual C++ Applications (continued)
AIErrors error;
if (FAILED(pIFPTemplate->Import(varVal, &error)))
return false;
if (error != Er_OK)
return false;
if (FAILED(pIFPTemplate->get_TemplData(&varValGold)))
return false;
SafeArrayUnaccessData(varValGold.parray);
return true;
DigitalPersona One Touch for Windows SDK: C/C++ Edition | Developer Guide 92
Appendix B: Platinum SDK Registration Template Conversion
Code Sample 2. Platinum SDK Template Conversion for Visual Basic 6.0 Applications
Public Function PlatinumToGold(platinumTemplate As Variant) As Byte()
Dim pTemplate As New FPTemplate
Dim vGold As Variant
Dim bGold() As Byte
Dim er As DpSdkEngLib.AIErrors
er = pTemplate.Import(platinumTemplate)
If er <> Er_OK Then PlatinumToGold = "": Exit Function
vGold = pTemplate.TemplData
bGold = vGold
PlatinumToGold = bGold
End Function
DigitalPersona One Touch for Windows SDK: C/C++ Edition | Developer Guide 93
Glossary
comparison fingerprint
The estimation, calculation, or measurement of An impression of the ridges on the skin of a finger.
similarity or dissimilarity between fingerprint
fingerprint capture device
feature set(s) and fingerprint template(s).
A device that collects a signal of a fingerprint data
comparison score subject’s fingerprint characteristics and converts it to a
The numerical value resulting from a comparison of fingerprint sample. A device can be any piece of
fingerprint feature set(s) with fingerprint hardware (and supporting software and firmware). In
template(s). Comparison scores can be of two some systems, converting a signal from fingerprint
types: similarity scores or dissimilarity scores. characteristics to a fingerprint sample may include
multiple components such as a camera, photographic
context paper, printer, digital scanner, or ink and paper.
A temporary object used for passing data between
fingerprint characteristic
the steps of multi-step programming operations.
Biological finger surface details that can be detected
DigitalPersona Fingerprint Recognition Engine and from which distinguishing and repeatable
A set of mathematical algorithms formalized to fingerprint feature set(s) can be extracted for the
determine whether a fingerprint feature set purpose of fingerprint verification or fingerprint
matches a fingerprint template according to a enrollment.
specified security level in terms of the false accept
fingerprint data
rate (FAR).
Either the fingerprint feature set, the fingerprint
enrollee template, or the fingerprint sample.
See fingerprint data subject.
fingerprint data storage subsystem
enrollment A storage medium where fingerprint templates are
See fingerprint enrollment. stored for reference. Each fingerprint template is
associated with a fingerprint enrollment subject.
false accept rate (FAR) Fingerprint templates can be stored within a
The proportion of fingerprint verification fingerprint capture device; on a portable medium such
transactions by fingerprint data subjects not as a smart card; locally, such as on a personal computer
enrolled in the system where an incorrect decision or a local server; or in a central database.
of match is returned.
fingerprint data subject
false reject rate (FRR) A person whose fingerprint sample(s), fingerprint
The proportion of fingerprint verification feature set(s), or fingerprint template(s) are present
transactions by fingerprint enrollment subjects within the fingerprint recognition system at any time.
DigitalPersona One Touch for Windows SDK: C/C++ Edition | Developer Guide 94
Glossary
DigitalPersona One Touch for Windows SDK: C/C++ Edition | Developer Guide 95
Glossary
one-to-one comparison
The process in which recognition fingerprint
feature set(s) from one or more fingers of one
fingerprint data subject are compared with
fingerprint template(s) from one or more fingers of
one fingerprint data subject.
repository
See fingerprint data storage subsystem.
security level
The target false accept rate for a comparison
context. See also FAR.
verification
See fingerprint verification.
DigitalPersona One Touch for Windows SDK: C/C++ Edition | Developer Guide 96
Index
DigitalPersona One Touch for Windows SDK: C/C++ Edition | Developer Guide 97
Index E
DigitalPersona One Touch for Windows SDK: C/C++ Edition | Developer Guide 98
Index F
defined 95 performing
performing function for 60
function for 49 in typical verification workflow 34
in typical enrollment workflow 27, 32 typical workflow 29–34
fingerprint feature extraction module clean-up 34
See feature extraction module comparison and decision 34
fingerprint feature set 18 fingerprint feature set creation 32
creating initialization 30
function for 49 folders and files
in typical enrollment workflow 27 installed for RTE
in typical verification workflow 32 32-bit installation 15
defined 95 64-bit installation 16
retrieving number required for fingerprint template installed for SDK 13
creation FRR
function for 54 See false reject rate
in typical enrollment workflow 26 FT_FA_RATE data type, defined 72
retrieving size of FT_FTR_QUALITY enumeration, defined 70
in typical enrollment workflow 26 FT_FTR_TYPE enumeration, defined 71
in typical verification workflow 30 FT_IMG_QUALITY enumeration, defined 70
fingerprint features, defined 95 FT_PRE_REG_FTR value
fingerprint image defined 49
preparing for display using in typical enrollment workflow 26, 27
function for 51 FT_REG_FTR value
in typical enrollment workflow 27 defined 58
in typical verification workflow 32 using in typical enrollment workflow 26
fingerprint image, defined 95 FT_VER_FTR value
fingerprint reader 18 defined 49
defined 95 using in typical verification workflow 30, 32
redistributing documentation for 87 FT_VERSION_INFO data structure, defined 64
use and maintenance guides, redistributing 88 FX_closeContext function
fingerprint recognition 18 defined 47
fingerprint recognition component 24 using
purpose of 21 in typical enrollment workflow 29
fingerprint recognition system 17 in typical verification workflow 34
defined 95 FX_createContext function
See also DigitalPersona fingerprint recognition system defined 46
fingerprint recognition, guide to 4 using
fingerprint sample, defined 95 in typical enrollment workflow 25
See fingerprint image in typical verification workflow 30
fingerprint template 18 FX_extractFeatures function
creating defined 49
function for 58 using
in typical enrollment workflow 29 in typical enrollment workflow 27
defined 95 in typical verification workflow 32
retrieving size of FX_getDisplayImage function
function for 57 defined 51
in typical enrollment workflow 26 using
fingerprint template compatibility 5 in typical enrollment workflow 27
fingerprint verification 18 in typical verification workflow 32
defined 95 FX_getFeaturesLen function
DigitalPersona One Touch for Windows SDK: C/C++ Edition | Developer Guide 99
Index G
DigitalPersona One Touch for Windows SDK: C/C++ Edition | Developer Guide 100
Index N
N function for 54
non-match 19 in typical enrollment workflow 26
defined 95 security level of comparison context, function for 55
notational conventions 3 size of fingerprint feature set
note notation, defined 3 in typical enrollment workflow 26
number of required fingerprint feature sets for in typical verification workflow 30
fingerprint template creation, retrieving size of fingerprint template
function for 54 function for 57
in typical enrollment workflow 26 in typical enrollment workflow 26
software version information
O comparison module, function for 53
one-to-one comparison 19 RTE
defined 96 installing 14
online resources 4 installing/uninstalling silently 16
overview redistributing 84
of chapters 2 RTE\Install folder, redistributing contents of 84
of concepts and terminology 17 runtime environment
P See RTE
Platinum SDK registration template conversion 91 S
product compatibility sample code for converting Platinum SDK registration
See fingerprint template compatibility templates
Program Neighborhood 1 for Microsoft Visual Basic 6.0 applications 93
Program Neighborhood Agent 1 for Microsoft Visual C++ applications 91
R SDK
Redist folder, redistributing contents of 84 components of 21
redistributables, redistributing 84 files and folders installed 13
redistribution of files 84 security level 19
regulatory information, requirement to advise end users retrieving for comparison context, function for 55
of 87 setting for comparison context
releasing function for 56
resources associated with comparison module in typical verification workflow 30
function for 57 silently installing RTE 16
in typical enrollment workflow 29 size of fingerprint feature set, retrieving
in typical verification workflow 34 in typical enrollment workflow 26
resources associated with feature extraction module in typical verification workflow 30
in typical enrollment workflow 29 size of fingerprint template, retrieving
in typical verification workflow 34 function for 57
remote authentication 1 in typical enrollment workflow 26
Remote Desktop Connection 1 software version information
repository 18 retrieving for comparison module, function for 53
requirements, system supported DigitalPersona products 4
See system requirements system requirements 4
resources, additional T
See additional resources target audience for this guide 2
resources, online target false accept rate for comparison context
See online resources retrieving, function for 55
retrieving setting
number of required fingerprint feature sets for function for 56
fingerprint template creation in typical verification workflow 30
DigitalPersona One Touch for Windows SDK: C/C++ Edition | Developer Guide 101
Index U
targetFar parameter
defined 55
important notice to read Appendix A before setting 56
template compatibility
See fingerprint template compatibility
terminating
comparison module
function for 57
in typical enrollment workflow 29
in typical verification workflow 34
feature extraction module
in typical enrollment workflow 29
in typical verification workflow 34
typefaces, uses of
bold 3
Courier bold 3
italics 3
typographical conventions 3
U
uninstalling RTE silently 16
updates for DigitalPersona software products, URL for
downloading 4
URLs
DigitalPersona Developer Connection Forum 4
Updates for DigitalPersona Software Products 4
use and maintenance guides for fingerprint readers,
redistributing 88
Use DigitalPersona Pro Server for authentication 83
using
device component API functions 23
fingerprint recognition component API functions 24–
34
V
verification
See fingerprint verification
W
Windows Terminal Services 1
DigitalPersona One Touch for Windows SDK: C/C++ Edition | Developer Guide 102