Ejemplo n.º 1
0
        public FingerHelper()
        {
            var dir  = AppDomain.CurrentDomain.BaseDirectory;
            var dir2 = System.IO.Directory.GetCurrentDirectory();

            var rootApplicationPath = AppDomain.CurrentDomain.BaseDirectory;
            var nativeBinaryPath    = is64Bit
                ? Path.Combine(rootApplicationPath, @"SecuGen\x64\")
                : Path.Combine(rootApplicationPath, @"SecuGen\x86\");

            var files = System.IO.Directory.GetFiles(nativeBinaryPath);

            foreach (var file in files)
            {
                var filename = Path.GetFileName(file);
                var nfile    = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, filename);
                if (!File.Exists(nfile))
                {
                    File.Copy(file, nfile);
                }
                var hLib = FingerHelper.LoadLibrary(file);
            }

            InitFingerPrint();
            InitSecuSearch();
            //SecuGen.FDxSDKPro.Windows.SGFingerPrintManager
        }
Ejemplo n.º 2
0
 public LocalService()
 {
     _finger = new Helpers.FingerHelper();
 }