简体   繁体   中英

Fingerprint scanner in C# UWP application

Background

I want to make my question as specific as possible but still give a broad background of why I'm asking... My goal is to create a brand new cross platform application which incorporates fingerprint recognition via the use of a reasonably high quality / accurate scanner. The requirements state that the application must allow lots of people to quickly be identified in quick succession (eg a line at a checkout). As well as do other stuff like communicate with a cloud based app etc...

I acquired a reasonably priced scanner (USB Hamster Pro 20 - Secugen) and obtained the .NET SDK and device drivers from the hardware vendor.

Initially I had imagined a Xamarin app but since device drivers are only available for Windows, Linux and Android I thought I would just settle for Windows. And as its a brand new app why not use UWP and take the benefits of UWP and Windows Store etc... . I want to develop this application in C#.NET and ideally target something like a surface pro tablet.

Upon inspection of the 3rd party dll provided with the SDK, I noticed that to enable Auto-On (event based scanning), a method signature requires the handle of the window which will receive the message of the event from the device driver. The docs say to override WndProc of the receiving "window" to handle the events.

Question

With this SDK(dll) am I forced to use WinForms or WPF? Is there something fancy I can do to capture these events from within a UWP or Console app?

Similar Questions

During my research, I found these similar questions on SO and (I think) they suggest that UWP is out of the question.

Message pump in .NET Windows service

How to receive simplest Windows message on UWP XAML MVVM app?

UWP cannot receive window event messages, request your vendor to provide a library targeting UWP.

Or, more practical, I would suggest doing this in two steps,

First write a WinForm/WPF app that handles the scanner messages (by overriding WndProc ), the window can be hidden so user won't even know there is another desktop app running.

After the WinForm/WPF is finished, wire it up with the UWP app, using various communication channels between a classic desktop application and a UWP app.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM