[Windows Seven] How to use biometric authentication in your .NET applications ?

Currently, most of the laptops have a lot of features (SmartCard reader, etc.) that are not used.

But, with Windows Seven, one of this feature appears more useful: biometric authentication. Indeed, for the moment, this authentication must be done with tiers softwares, developed by constructors.

But now, Windows Seven get a new API allowing the programmation/manipulation of biometric readers. So it's now possible, by playing with some PInvoke, to create a wrapper for the API.

To help you, I've managed to create this wrapper. For now, only the method WinBioIdentifyWithCallback is implemented but it should be quite easy to implement other. This method allows to check, asynchronously, that the user who have swipe his finger on the sensor is effectively a know user: 

image

image

In case of the user is unknow, the application receive an event which indicate the problem:

image

 

 

To use it, it's quite simple:

image

It's important to note that this wrapper is composed by 3 DLLs:

  • Biometric.Wrapper.dll: It's the managed DLL calling the unmanaged methods
  • Interop.WinBio.dll: This DLL contains the definition of the unmanaged methods (PInvoke). Instead of creating this DLL by hand, I've prefered to generate it by using the tool PInvoker. It's quick, workfs fine and, in case of any issue, tool's creator is really active so don't hesitate to give it a try !
  • PInvoker.Marshal.dll: DLL generated by the tool PInvoker and which contains the definition of thetypes that are used in Interop.WinBio.dll

To give a try to this, just follow this link : http://morpheus.developpez.com/blog/BiometricWrapper/BiometricWrapper.zip

 

 

Have fun !

 

Bye

 

5 Comments

  • Thanks for this mate, i'm trying to make a project to capture XX number of fingerprints and store them on a SQL Database,do you think i can do this and then afterwards compare a new fingerprint with the ones already stored on the DataBase?

    I'm not sure if this framework is the best solution for me so i would appreciate your input on this if possible. Thank you

    emanuelluis87@gmail.com

  • Hi there, simply changed into aware of your blog through Google, and
    found that it is truly informative. I am gonna watch out for brussels.
    I will appreciate if you proceed this in future. Numerous people
    can be benefited from your writing. Cheers!

  • I am unable to download from the url you have submitted. kindly provide the alternative url or activate the same one

  • Kindly re upload the biometric project. Its not working right now.

  • Kindly reupload file as it is currently down, thanks.

Comments have been disabled for this content.