P. 1
matching

matching

|Views: 356|Likes:
Published by Muhsin Hoosen

More info:

Published by: Muhsin Hoosen on Jan 26, 2011
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as DOC, PDF, TXT or read online from Scribd
See more
See less

06/26/2014

pdf

text

original

using System; using System.Drawing; using System.Collections; using System.ComponentModel; using System.Windows.

Forms; using System.Data; using System.Text; using SecuGen.FDxSDKPro.Windows; namespace sgdm { /// <summary> /// Summary description for Form1. /// </summary> public class MainForm : System.Windows.Forms.Form { /// <summary> /// Required designer variable. /// </summary> private SGFingerPrintManager m_FPM; private bool m_LedOn = false; private Int32 m_ImageWidth; private Int32 m_ImageHeight; private Byte[] m_RegMin1; private Byte[] m_RegMin2; private Byte[] m_VrfMin; private SGFPMDeviceList[] m_DevList; // Used for EnumerateDevice private System.ComponentModel.Container components = null; private System.Windows.Forms.TabControl tabControl1; private System.Windows.Forms.TabPage tabPage1; private System.Windows.Forms.TabPage tabPage2; private System.Windows.Forms.TabPage tabPage3; private System.Windows.Forms.PictureBox pictureBox1; private System.Windows.Forms.Label label1; private System.Windows.Forms.ComboBox comboBoxDeviceName; private System.Windows.Forms.GroupBox groupBox1; private System.Windows.Forms.GroupBox groupBox2; private System.Windows.Forms.Button BtnCapture1; private System.Windows.Forms.Button BtnCapture2; private System.Windows.Forms.Button BtnCapture3; private System.Windows.Forms.PictureBox pictureBoxR2; private System.Windows.Forms.PictureBox pictureBoxV1; private System.Windows.Forms.PictureBox pictureBoxR1; private System.Windows.Forms.GroupBox groupBox3; private System.Windows.Forms.TextBox textBrightness; private System.Windows.Forms.TextBox textGain; private System.Windows.Forms.TextBox textContrast; private System.Windows.Forms.Label label12; private System.Windows.Forms.Label label11; private System.Windows.Forms.Label label10; private System.Windows.Forms.Label label9; private System.Windows.Forms.Label label8; private System.Windows.Forms.Label label7; private System.Windows.Forms.Label label6; private System.Windows.Forms.Label label5; private System.Windows.Forms.Label label13; private System.Windows.Forms.GroupBox groupBox4; private System.Windows.Forms.Button ConfigBtn; private System.Windows.Forms.TextBox textImgQuality; private System.Windows.Forms.ComboBox comboBox1;

private System.Windows.Forms.GroupBox groupBox6; private System.Windows.Forms.Label label4; private System.Windows.Forms.Label label14; private System.Windows.Forms.ComboBox comboBoxSecuLevel_V; private System.Windows.Forms.ComboBox comboBoxSecuLevel_R; private System.Windows.Forms.Button GetBtn; private System.Windows.Forms.TextBox textDeviceID; private System.Windows.Forms.TextBox textSerialNum; private System.Windows.Forms.TextBox textImageWidth; private System.Windows.Forms.TextBox textImageHeight; private System.Windows.Forms.TextBox textImageDPI; private System.Windows.Forms.ProgressBar progressBar_R1; private System.Windows.Forms.ProgressBar progressBar_R2; private System.Windows.Forms.ProgressBar progressBar_V1; private System.Windows.Forms.Label label15; private System.Windows.Forms.Label label16; private System.Windows.Forms.TextBox textTimeout; private System.Windows.Forms.Button BtnRegister; private System.Windows.Forms.Button BtnVerify; internal System.Windows.Forms.GroupBox GroupBox8; internal System.Windows.Forms.Button SetBrightnessBtn; private System.Windows.Forms.TextBox textFWVersion; private System.Windows.Forms.Button GetLiveImageBtn; private System.Windows.Forms.Button GetImageBtn; internal System.Windows.Forms.NumericUpDown BrightnessUpDown; private System.Windows.Forms.CheckBox CheckBoxAutoOn; private System.Windows.Forms.Button EnumerateBtn; private System.Windows.Forms.Button OpenDeviceBtn; private System.Windows.Forms.Label StatusBar; public MainForm() { InitializeComponent(); } /// <summary> /// Clean up any resources being used. /// </summary> protected override void Dispose( bool disposing ) { if( disposing ) { if (components != null) { components.Dispose(); } } base.Dispose( disposing ); } #region Windows Form Designer generated code /// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { this.tabControl1 = new System.Windows.Forms.TabControl(); this.tabPage2 = new System.Windows.Forms.TabPage(); this.CheckBoxAutoOn = new System.Windows.Forms.CheckBox(); this.GroupBox8 = new System.Windows.Forms.GroupBox(); this.BrightnessUpDown = new System.Windows.Forms.NumericUpDown();

Forms.Windows.Windows. this.Forms.GroupBox(). this.Label().Windows. this.Button().textTimeout = new System.Windows.GetLiveImageBtn = new System.Windows.Label().Windows.PictureBox(). this.textImageDPI = new System.Windows.Forms.Forms. this.Forms.SuspendLayout().tabPage3 = new System.TextBox().label1 = new System. this.Forms.tabPage2.Windows.Forms. this.textSerialNum = new System.GroupBox().Forms.Forms.Windows.Windows.textDeviceID = new System. this.label9 = new System. this.Label().PictureBox().Windows.BtnCapture1 = new System.Windows.TextBox().Forms.GroupBox8.label7 = new System. this. this.Windows.TextBox().groupBox4.ProgressBar(). this.Windows.Windows.SetBrightnessBtn = new System.textImageHeight = new System.Forms.label4 = new System.Forms. this. this.Forms.Button().groupBox6.Windows. this. this.Forms.Label().Forms.Forms.Forms. this.textGain = new System.BtnRegister = new System.BtnVerify = new System.Windows.Forms.GroupBox().Forms.Windows.Forms.PictureBox().Label().label12 = new System.Forms.Forms.comboBoxSecuLevel_R = new System.SuspendLayout(). this.Forms.ComboBox().Windows.pictureBox1 = new System.tabPage3. this. this.TextBox().Forms.Forms. ((System.Windows. this.Forms.Windows.pictureBoxV1 = new System.TextBox().TextBox().Windows.Windows. this.Windows. this.Forms.progressBar_R2 = new System.TextBox(). this. this.TabPage().groupBox6 = new System.BeginInit().textContrast = new System. this.Windows.PictureBox().Forms.Label().Windows.Forms.Forms.Windows.Forms. this.label14 = new System.TextBox().Windows.Button().textImgQuality = new System.GetImageBtn = new System.GroupBox(). this.ComboBox().EnumerateBtn = new System.Label().Forms. this. this.BtnCapture3 = new System.Forms.textImageWidth = new System. this.Windows. this. . this.groupBox3 = new System.label15 = new System.Button().GroupBox().Windows.TabPage(). this.label10 = new System.comboBox1 = new System. this.Forms.label11 = new System. this.pictureBoxR2 = new System.Forms.ComboBox().Label().TextBox().Button().Windows.progressBar_R1 = new System.progressBar_V1 = new System. this.Windows.Forms. this.this.Windows. this.GetBtn = new System.Forms. this.Forms.Windows. this. this. this.Forms.Forms.Windows.groupBox4 = new System.BtnCapture2 = new System.ProgressBar().TextBox().Windows. this.Label().Button().Windows. this.Windows.Windows.textBrightness = new System.Forms.Forms. this.Windows. this. this.ISupportInitialize)(this. this.Button().Forms.Forms.Label().Forms. this.label16 = new System. this.Forms.label6 = new System.Label().textFWVersion = new System.Windows. this.Forms.tabControl1.SuspendLayout().Button().Windows.Windows.Forms.tabPage1 = new System.OpenDeviceBtn = new System.Windows.label8 = new System.Forms.Windows.SuspendLayout().groupBox2 = new System.Windows.Forms.Forms.Button().Forms.Windows.Windows.label5 = new System.label13 = new System.BrightnessUpDown)). this.Label(). this. this.Forms.ConfigBtn = new System.Forms.Windows.comboBoxSecuLevel_V = new System.StatusBar = new System.TextBox(). this.Windows.Button().Button(). this. this.Forms.Windows.ComponentModel.Windows.Label().Windows.Button().Label(). this.Windows. this.ProgressBar().Forms.Windows.SuspendLayout().pictureBoxR1 = new System.Windows.SuspendLayout(). this.groupBox1 = new System.ComboBox().comboBoxDeviceName = new System.Label().

tabPage2. this. // // tabControl1 // this.Drawing.Add(this.tabPage2. this.tabPage2.groupBox3.tabPage2.Location = new System.Increment = new System.Controls.Add(this.Name = "tabPage2". this.Point(12.CheckBoxAutoOn_CheckedChanged).Size(416. 40).Point(4.tabControl1.Controls.Name = "GroupBox8". this.Location = new System.Size(120. this. this.tabPage2).Add(this.Location = new System.Drawing.GroupBox8.Controls.tabPage2.Controls.Text = "Enable AutoOn Event (FDU03. this.Enabled = false. 404).Drawing. 22). this.TabIndex = 0.TabIndex = 19.CheckBoxAutoOn. 16). this. 0. // // GroupBox8 // this.Size(248. this.CheckBoxAutoOn.Controls.TabIndex = 1.tabPage2.Add(this.tabPage2.SuspendLayout(). this. this.GetLiveImageBtn).BrightnessUpDown. this.Text = " Image ".Point(280. this.Size = new System.tabControl1.CheckBoxAutoOn.groupBox4). this.GroupBox8.Size = new System.SuspendLayout().GroupBox8. this.Add(this.CheckBoxAutoOn. // // tabPage2 // this. 356).SetBrightnessBtn). this.tabControl1.CheckBoxAutoOn. this. this. 200).tabPage1).tabControl1. this. this.Controls.Controls.Name = "CheckBoxAutoOn". this. // // BrightnessUpDown // this.Size = new System.Size(408. // // CheckBoxAutoOn // this.this.tabPage2.Add(this.SuspendLayout().GroupBox8.EventHandler(this.groupBox1.tabPage2. .Add(this. this.tabControl1.groupBox2.Add(this.Drawing.Point(0.tabPage2. this. FDU04)".CheckBoxAutoOn.tabPage1.tabControl1.Size = new System. this.Add(this.GroupBox8.Controls.tabControl1.GetImageBtn). this.Add(this. this.tabPage2.CheckBoxAutoOn).SelectedIndex = 0. this.TabStop = false.Decimal(new int[] { 10.tabPage2.GroupBox8.Drawing.GroupBox8).SuspendLayout().pictureBox1). this.Controls.CheckedChanged += new System.Text = "Brightness".ConfigBtn). this.Controls.tabControl1.Drawing. this.Controls.BrightnessUpDown).tabPage3). 378). 0.Controls.Add(this. this.GroupBox8.Drawing. this.Name = "tabControl1". this. this.Location = new System. 148).Add(this.TabIndex = 18.GroupBox8.Drawing.CheckBoxAutoOn.SuspendLayout().

Drawing. 24). this.Name = "SetBrightnessBtn".Drawing. this.Drawing.Point(8.BackColor = System.groupBox4. this.Name = "textTimeout".Size = new System.groupBox4. this. this.SystemColors.Drawing. 20).ConfigBtn.Drawing.ConfigBtn.Text = "LiveCapture". // // label16 // this. this.groupBox4.TabIndex = 12.Size = new System.Drawing.textTimeout.Text = "10000".Drawing.Name = "BrightnessUpDown".. this.EventHandler(this.Add(this.textImgQuality).Click += new System.SetBrightnessBtn.TabIndex = 11.Decimal(new int[] { 70.textTimeout).EventHandler(this.Size(76. this.SetBrightnessBtn. this.label15).Size(44.Point(8.Name = "groupBox4". 64).Text = "Capture Timeout".SetBrightnessBtn_Click). this.Size(88.SetBrightnessBtn.SetBrightnessBtn. this.Add(this. 0. . 24). 52).Size = new System.Drawing.0}). 24).TabStop = false.Location = new System.Add(this.Name = "ConfigBtn".".TabIndex = 18. // // ConfigBtn // this.Location = new System. this. // // SetBrightnessBtn // this. this.ConfigBtn_Click). this.BrightnessUpDown.Size(56. this.Text = "Apply". this.ConfigBtn.SetBrightnessBtn.Drawing.Value = new System. this. this.ConfigBtn. this.Drawing.Text = "Config.label16.groupBox4. this.ActiveBorder. 140). this.BrightnessUpDown. // // groupBox4 // this. this. this.Location = new System. 80).Add(this. this.label16). this.Point(8.textTimeout. 0.Size = new System.label16.label16.groupBox4.textTimeout.Point(324. this.Point(280.ConfigBtn.ConfigBtn. this.Drawing. 24).Controls. this. this.Point(56..groupBox4.Location = new System.textTimeout.Controls. this.BrightnessUpDown.Size(96.Click += new System. 20). this.Location = new System.BrightnessUpDown.groupBox4. // // textTimeout // this. 12).SetBrightnessBtn.label16.TabIndex = 19.textTimeout. 20).Name = "label16".Drawing.TabIndex = 20.Drawing.label16.BrightnessUpDown.groupBox4.Size = new System.ConfigBtn. this.TabIndex = 17. 0}).groupBox4.Size = new System.Controls.Size(120.Location = new System. this.groupBox4.Controls.

Size(96.GetLiveImageBtn_Click).MaxLength = 3.Size(76.pictureBox1.Drawing.textImgQuality.label15.Add(this.Controls.Forms.GetImageBtn.GetLiveImageBtn.Size = new System.pictureBox1.Name = "GetLiveImageBtn".Name = "tabPage3".BackColor = System.Text = "LiveCapture". this.groupBox6).BorderStyle = System.Add(this. this.tabPage3.Point(12.Point(4. this.tabPage3.TabIndex = 16.Controls. // // GetLiveImageBtn // this.label15. this.Click += new System.tabPage3.Point(8. this.Location = new System. this.Drawing. this.tabPage3. 16).Location = new System. this.Size(76. this.pictureBox1.Controls. 300). this. // // textImgQuality // this.TabIndex = 7. this.GetLiveImageBtn.Size = new System.GetImageBtn_Click). this.Drawing. this.tabPage3.label15.GetImageBtn.SystemColors.BackColor = System.Drawing. this.ActiveBorder.TabStop = false. // // BtnVerify // . 36).BtnRegister).EventHandler(this.ActiveBorder.Drawing.pictureBox1. this.GetImageBtn.GetLiveImageBtn. this.// // label15 // this. this.Drawing. this.Text = "50".BorderStyle.Drawing.Drawing.Click += new System. this.Name = "GetImageBtn". this.label15.pictureBox1.Drawing. // // tabPage3 // this. this.BackColor = System. this.Size = new System.textImgQuality. 20).TabIndex = 15.Add(this.Size = new System.Location = new System. 24). 20).Text = "Image Quality:". this.Location = new System.groupBox1).Text = "Register/Verify".Point(8.Windows.Drawing.tabPage3. this.GetLiveImageBtn.TabIndex = 8.Point(8. this.Name = "label15".Drawing. this. this.textImgQuality.SystemColors.Name = "pictureBox1".Name = "textImgQuality".groupBox2).Controls.Size = new System.Point(100. this.TabIndex = 2. this. // // GetImageBtn // this. this. 12).Text = "Capture".tabPage3.Add(this.textImgQuality.pictureBox1.GetImageBtn.Drawing.GetImageBtn.GetImageBtn.Drawing.label15.tabPage3. this. 22).TabIndex = 5.Drawing.textImgQuality. this. 12).BtnVerify).Location = new System.Add(this.Controls.tabPage3. 378). this.Location = new System.Size = new System.ControlLight.SystemColors.EventHandler(this.Drawing. this.GetLiveImageBtn.Size(408.Size(88. 24). // // pictureBox1 // this.Size(260.Fixed3D.pictureBox1.GetLiveImageBtn. this.textImgQuality.GetImageBtn. 48). this.GetLiveImageBtn.tabPage3.

HighlightText.TabIndex = 34.Drawing.Point(8.Location = new System.Text = "Security Level".comboBoxSecuLevel_V.Drawing.groupBox6.comboBoxSecuLevel_V.Drawing.SystemColors. this.groupBox6. this.SystemColors. this.groupBox6.BtnVerify_Click).BackColor = System.BtnRegister.Drawing.Name = "BtnVerify".groupBox6.Size = new System.TabIndex = 30.Drawing. this.BtnVerify.BtnVerify.comboBoxSecuLevel_V.comboBoxSecuLevel_V. this.Point(52. this.Drawing. this. 8).Text = "Verify". "NORMAL". "ABOVE_NORMAL". this. "BELOW_NORMAL".HighlightText.BtnVerify.Controls.Drawing.Location = new System.Controls.Click += new System.Drawing.Name = "BtnRegister".BtnRegister_Click).AddRange(new object[] { "LOWEST".groupBox6. // // BtnRegister // this.Drawing. this.Name = "comboBoxSecuLevel_V".EventHandler(this.ImageAlign = System.groupBox6. this. this. this.BtnRegister. this. "HIGHEST"}). this.label14).groupBox6.Size(392. this.label4).ContentAlignment. this.comboBoxSecuLevel_V.Controls.Name = "groupBox6".Location = new System.Text = "Register".Size(108.Controls.Add(this.Size(112.Size = new System. 56).Desktop.Point(272.MiddleLeft.Items. // .ForeColor = System. "LOW".groupBox6.BtnVerify.Add(this. this. 23).BtnRegister.BtnRegister. // // comboBoxSecuLevel_V // this.Point(280. this.BtnVerify.groupBox6.Desktop.Size = new System.Text = "NORMAL".TabIndex = 33.Drawing. 21).BtnRegister. this.Location = new System.TabStop = false.groupBox6.Add(this. this.SystemColors.EventHandler(this. "HIGHER".comboBoxSecuLevel_V. this.Size = new System. this.comboBoxSecuLevel_R).BtnVerify.Click += new System.BtnVerify.BtnRegister.Size(132.BtnRegister.Drawing. this.BtnRegister.TabIndex = 24. 23).BtnVerify.BtnVerify.Drawing. this. 24).Add(this. this. // // groupBox6 // this. this.this. this.Drawing. 308).ForeColor = System. this.SystemColors.comboBoxSecuLevel_V).BackColor = System. "HIGH". this. 308). "LOWER".

Point(8. "NORMAL". this.Size(104. 24). this.Size(64. this.Location = new System.Point(16. 21).comboBoxSecuLevel_R.comboBoxSecuLevel_R.pictureBoxV1).Location = new System.comboBox1).groupBox2. 24).Size(72.progressBar_V1.label4.Drawing.progressBar_V1).Size = new System.comboBoxSecuLevel_R.Controls. this.TabIndex = 21.progressBar_V1.label14.label14.Name = "label4".comboBoxSecuLevel_R.groupBox2.// label14 // this.Drawing.Name = "label14". this.groupBox2. this.groupBox2.label4.label4.BtnCapture3).Add(this.groupBox2.Size(136. this. this.Location = new System. this. this. this.Drawing.Controls.label14.groupBox2. 24).Text = "Registration".groupBox2.Drawing.TabIndex = 29. "BELOW_NORMAL".comboBoxSecuLevel_R.Drawing.TabIndex = 22. 12).Add(this.Name = "progressBar_V1".TabStop = false. 24).Size(112. this.Location = new System.Location = new System.comboBoxSecuLevel_R. // // progressBar_V1 // this.Size = new System.Name = "groupBox2". "ABOVE_NORMAL".Size = new System.Drawing.Drawing.label4. // // comboBoxSecuLevel_R // this.Size = new System.Controls. 152). this. // // label4 // this. this. // // groupBox2 // this. this. this.Text = "NORMAL". this.Drawing.TabIndex = 23. 220).groupBox2.Add(this.Drawing.Controls. this.Add(this. this. this. this. this.Items. .label14. "HIGHER". "HIGHEST"}). "LOW".label4.Name = "comboBoxSecuLevel_R".Drawing. "LOWER".Text = "Verification".groupBox2.groupBox2. this. "HIGH". this.Size = new System.label14.progressBar_V1.Text = "Verification".Point(208.AddRange(new object[] { "LOWEST". 76). 24).Point(264.Point(80.

Controls. this.Drawing.TabIndex = 29.Size(104.BtnCapture3.Add(this.TabIndex = 31.Size = new System. this.Size(88.Controls. 176). this. this.BackColor = System.Point(16. this.Location = new System.BtnCapture3.Location = new System.Drawing.TabIndex = 27.Drawing.groupBox1.Items.EventHandler(this.pictureBoxV1.Drawing.BtnCapture3.pictureBoxV1.Controls. 20).Text = "NORMAL".TabStop = false. this. this.Name = "groupBox1". "BELOW_NORMAL".SystemColors.comboBox1. -40).StretchImage.comboBox1.BackColor = System.Drawing.Add(this.BtnCapture3.Add(this. this.Name = "comboBox1".ControlLight. this. 76).Add(this.groupBox1.pictureBoxV1.TabIndex = 30. "NORMAL". this.Point(16.Drawing.Add(this.Add(this. this. this.Location = new System.Name = "pictureBoxV1".groupBox1.BtnCapture3.comboBox1.Drawing.Drawing.progressBar_V1. "HIGHEST"}).BackColor = System.ActiveBorder. this. this. this. "ABOVE_NORMAL".BtnCapture3. this. this. this.PictureBoxSizeMode.Size(104.pictureBoxR1).comboBox1.Drawing. this.this.SystemColors.SizeMode = System.Size = new System.groupBox1.BtnCapture2).groupBox1.Forms.Point(8. 24).pictureBoxV1. this. // // BtnCapture3 // this.pictureBoxV1.Windows.Forms.groupBox1.Drawing.groupBox1.pictureBoxV1.pictureBoxR2). .Click += new System.BtnCapture3_Click). this.Fixed3D. // // groupBox1 // this.Windows.progressBar_R2).comboBox1. 128).BorderStyle.Controls.Name = "BtnCapture3".BorderStyle = System.Controls.BtnCapture3. this.Size = new System.Location = new System. this. // // pictureBoxV1 // this.groupBox1.Text = "Capture V1".pictureBoxV1. this.SystemColors. 23).BtnCapture1).Window.groupBox1. this.Point(48.progressBar_R1). // // comboBox1 // this. "LOW".AddRange(new object[] { "LOWEST".comboBox1. "LOWER".Controls. "HIGHER". "HIGH".pictureBoxV1. this.

Windows.BtnCapture1.Text = "Registration".BtnCapture1.pictureBoxR1.pictureBoxR1. this.Point(8.Window. // // BtnCapture1 // this.Point(8.Size(104.BtnCapture1. this. this.TabStop = false.Click += new System.progressBar_R2.pictureBoxR2. this.BtnCapture1. 23).progressBar_R1.PictureBoxSizeMode. this.Drawing.Drawing.TabIndex = 28.BackColor = System. 176). this.BtnCapture1. this.BorderStyle. // // pictureBoxR2 // this.Point(8.Drawing.BackColor = System. this.pictureBoxR2. 128).BorderStyle = System. this. this.Drawing. this. this. 12).BtnCapture2.pictureBoxR2.Click += new System.TabStop = false.Name = "progressBar_R1". this. this.Size(104.Windows.Drawing.Name = "BtnCapture2".Size = new System.this.progressBar_R2.progressBar_R1.Location = new System. this.TabIndex = 24.Location = new System.Size = new System.Drawing.Windows. this. this.Size = new System.Size = new System. this. 23).Forms.Size = new System.progressBar_R1.groupBox1. this. // // progressBar_R2 // this.groupBox1. 176).pictureBoxR1.BtnCapture2.Location = new System. this.Name = "pictureBoxR1".pictureBoxR1.TabIndex = 26.groupBox1. this.Forms.Drawing.groupBox1.SizeMode = System.BtnCapture1_Click). this.Window. this.Point(128.StretchImage.TabIndex = 27.BtnCapture2. this.progressBar_R1. this. 152).pictureBoxR2.pictureBoxR2.Drawing.Drawing.Name = "progressBar_R2".Point(128.BorderStyle = System.Drawing.pictureBoxR2. this. this. 12).Size(104.progressBar_R2.Fixed3D.BackColor = System.SizeMode = System. this.Forms.pictureBoxR2.SystemColors. 24). this.Drawing.EventHandler(this. // // pictureBoxR1 // this.TabIndex = 23.Drawing.Size(104. // // tabPage1 // .BtnCapture2.pictureBoxR2.BtnCapture2.progressBar_R2. 128).pictureBoxR1.Forms.TabIndex = 29.pictureBoxR1.BtnCapture1.Size(104.Size(104.ActiveBorder.Text = "Capture R1".pictureBoxR1.Drawing.Name = "pictureBoxR2".Drawing.Drawing.Location = new System.BackColor = System. this.Text = "Capture R2". // // progressBar_R1 // this.Windows.TabIndex = 28.Size = new System.Name = "BtnCapture1".SystemColors.Drawing.Fixed3D. this.BtnCapture2_Click). this.ActiveBorder.BtnCapture2.Point(128. this.pictureBoxR1.Location = new System. // // BtnCapture2 // this.BorderStyle. this.BtnCapture1. 152).SystemColors.SystemColors.TabStop = false.Size(244.Location = new System.Drawing.BtnCapture2.StretchImage.EventHandler(this. this. 24).PictureBoxSizeMode.Size = new System. 220).

label6).GetBtn).Add(this. this. this.groupBox3. 24).textImageHeight.Controls.groupBox3. this.TabStop = false.textImageHeight).TabIndex = 43.Point(288.textSerialNum). this.Add(this. this.textImageDPI.Controls. 120).Add(this.GetBtn.Text = "Get".Add(this. 20).Controls.Drawing.Add(this.Add(this.Location = new System.Name = "tabPage1".textContrast).Controls. // .Add(this.groupBox3. this.GetBtn.Drawing. this.groupBox3.Add(this. this. this.GetBtn.groupBox3.textImageHeight.Enabled = false.Drawing.Controls.tabPage1.groupBox3.tabPage1. this. // // groupBox3 // this.Drawing.textImageHeight.TabIndex = 0.textImageDPI).Text = "DeviceInfo".TabIndex = 41. this.textImageHeight.Text = "".Point(4.label12).Text = "DeviceInfo". // // textImageDPI // this.groupBox3.Point(96.textImageDPI.BackColor = System.GetBtn_Click).Controls.Add(this.groupBox3.tabPage1. this.Location = new System.tabPage1. this.EventHandler(this.Size = new System. this. this.Size = new System.groupBox3. this.textImageHeight. this.groupBox3.Name = "textImageHeight".this.Add(this.ActiveBorder.Location = new System.SystemColors. this. // // GetBtn // this.Drawing. this.Size = new System.Add(this.label9).Add(this. this.GetBtn.textBrightness).Controls.groupBox3. this.Add(this.Location = new System.Controls. this.groupBox3. this.groupBox3.Size(408. this.textImageWidth).GetBtn.Controls. this. this. this. this.groupBox3.groupBox3).textImageDPI.textImageDPI.Controls.groupBox3.textImageHeight.textImageDPI. this.groupBox3.TabIndex = 65.Drawing. this.Drawing. 248). this.GetBtn.Controls.label11).GetBtn. this. 144).Drawing.tabPage1. 378).textImageDPI. this. this. this.groupBox3. 16). this.Size = new System.Size = new System.tabPage1.Controls.Controls.Add(this.Add(this.Add(this. this.Size(152.Name = "textImageDPI". this.tabPage1.groupBox3. // // textImageHeight // this.Controls.Drawing.Drawing.Controls.label13). this. 8).Controls.Controls.groupBox3. 22).groupBox3.textDeviceID).textFWVersion).Controls.Location = new System.Text = "". 20).Drawing.groupBox3.label8).Click += new System.groupBox3.Controls.Name = "GetBtn".Enabled = false.Point(96.groupBox3.TabIndex = 66.label7).Add(this.Size(264. this. this.Name = "groupBox3". this.label5). this.Add(this.textGain).groupBox3. this.Point(8.Add(this. this.Controls.label10).Size(96.Size(152.Add(this.

textImageWidth.textBrightness.Point(96.Size = new System.Drawing.Size = new System. // // textGain // this.Size(152.TabIndex = 64.textBrightness. this. this.Location = new System.textContrast.textSerialNum.textSerialNum.Text = "". this.textContrast.Size = new System.Point(96.textDeviceID.textFWVersion.Enabled = false. 192).Name = "textSerialNum".Name = "textGain".Point(96. this.Size(152.TabIndex = 57.Enabled = false.textSerialNum.TabIndex = 56. this.textSerialNum.Drawing. this.textGain.Point(96. 20).Drawing.Text = "". this.textGain. this.Text = "".textSerialNum. this.Size = new System. this. this.textFWVersion.Text = "".Enabled = false. // // textSerialNum // this.textSerialNum. 20).textImageWidth.Text = "".Size(152.textImageWidth.Text = "". 24). this.textBrightness.Point(96. this.Size = new System. 20). 20).textFWVersion. this.textImageWidth.Size(152.Enabled = false.textDeviceID.Drawing.textContrast.Location = new System. this.Point(96. 72). this. this. // // textFWVersion // this.Name = "textDeviceID". this. 20). this. 168).Drawing.Size(152. // // textBrightness // this.Drawing.Drawing. this. this. 20).Text = "". this.Drawing.Size = new System. this.Drawing.Name = "textContrast".textBrightness.Size = new System.textFWVersion.TabIndex = 61.textBrightness.TabIndex = 58. 48).Name = "textBrightness".textGain.Location = new System.Enabled = false. this.textFWVersion.textGain. this.Location = new System. // // textContrast // this.Location = new System. this.Name = "textFWVersion".Drawing.Name = "textImageWidth".textDeviceID.Drawing.TabIndex = 63. this.textContrast. // . 216).Location = new System.textImageWidth. this.Size(152.Size(152.Location = new System.textFWVersion. this.Point(96.textGain. this. this.Enabled = false.textContrast. 96).TabIndex = 62. // // textDeviceID // this.textBrightness. 20).Drawing. this.textGain.textImageWidth.textDeviceID.textDeviceID.Drawing. this. this.Enabled = false.// textImageWidth // this.Drawing. this.textContrast.textDeviceID.

label6.Drawing.Location = new System.Name = "label9".Drawing.label11.label6.ContentAlignment.Drawing.TabIndex = 49.Name = "label8".Drawing.label12.label8.Point(16. 48). this.ContentAlignment. this.MiddleLeft.Text = "Image DPI".Size = new System.Size = new System.Size(72.Drawing. 16).Name = "label7". // // label11 // this. 16). this. this.ContentAlignment.MiddleLeft. this.label11.label6.label9. // // label10 // this.Text = "Serial #".label8.label10.Size = new System.label10.Size = new System.Drawing.Point(16. this.Size(72. this.Name = "label6".label8.MiddleLeft.TabIndex = 51.label11.Name = "label11". this.Drawing.Text = "Gain".label10. this.Size(72. 168). // // label9 // this.label7.TabIndex = 55.TextAlign = System.TabIndex = 45. this.Name = "label12".// label12 // this.ContentAlignment. 16).ContentAlignment.label9. this.label11.Location = new System.Size = new System. this. this. this.TabIndex = 47.label9.TabIndex = 54.Text = "Brightness". 16). // .Drawing. 120). this.Drawing.Location = new System.label6. 192).label10. this.TextAlign = System.Point(16. 72).ContentAlignment.label8. 216). // // label7 // this.Drawing.Text = "Contrast".Drawing.Drawing. this.label7. this.label11. this.Name = "label10". 144).label8.label12.Drawing.label7.Drawing.Size(72.Size = new System.label7. this.ContentAlignment. this. this. this.label12.TextAlign = System.Drawing.Text = "F/W Version". this.label12.label9.label12.label7.label6. this. 16).TextAlign = System.label9.Drawing.Point(16. // // label6 // this.Drawing.label9.Location = new System.MiddleLeft.Point(16. 16).label11.Location = new System.TabIndex = 53.label8.MiddleLeft. this.Location = new System.Point(16.label10.Point(16. this. 16). this.Size(72.label7.label10.Drawing. this.Location = new System.MiddleLeft. this.TextAlign = System.label6.label12.MiddleLeft.Drawing.TextAlign = System. this.Size(72. this. this.TextAlign = System. this.Size = new System.Text = "Image Height". // // label8 // this. this.Size(72.Drawing.Drawing.

Dock = System.StatusBar. 24). this.Point(16. this. // // OpenDeviceBtn // this.OpenDeviceBtn.Size(416.Size = new System.EnumerateBtn_Click).// label5 // this.Drawing.Forms. // // EnumerateBtn // this.SystemColors.DockStyle. 24).Drawing.Size(72.Name = "label13".Drawing.label13.SystemColors.Point(8.Size = new System.StatusBar.Text = "Image Width". 21).EnumerateBtn. this.MiddleLeft.Point(16.OpenDeviceBtn.Drawing.StatusBar.OpenDeviceBtn.Name = "OpenDeviceBtn".Size = new System.MiddleLeft.Location = new System.Size = new System.comboBoxDeviceName. 96).BackColor = System. 8).Highlight.ContentAlignment. // // label1 // this.StatusBar.Size(72. this.Text = "Init".SystemColors.Location = new System.TextAlign = System. this.EnumerateBtn.Location = new System.OpenDeviceBtn.Name = "label5". this.Drawing.Drawing.Text = "Enumerate". this. this.TextAlign = System. 16).comboBoxDeviceName.Drawing.label5. 24).TabIndex = 3.label13. this.label5.label5.Size = new System.ForeColor = System. this.label13. 8).Point(332. this. this.Forms.StatusBar. 24).EnumerateBtn.OpenDeviceBtn_Click).Size(72. this. this.Windows. this.OpenDeviceBtn.EnumerateBtn.label13. this. this.StatusBar.Size(72.label5.Text = "Click Init Button". this. 24).Point(248.TabIndex = 1.Drawing. this. this.TabIndex = 7. this.Size(152.comboBoxDeviceName. this.Size = new System. 8). this.Location = new System.Drawing.BorderStyle.Click += new System.Drawing.TabIndex = 43.Name = "comboBoxDeviceName".StatusBar.Drawing.ActiveBorder.Drawing.TabIndex = 8.label1. this.Name = "StatusBar". this.BorderStyle = System.Drawing.label1. this. this.Location = new System.EventHandler(this.Drawing.TabIndex = 9.Size = new System.Click += new System. this.Point(84. // // StatusBar // this.Name = "EnumerateBtn".ContentAlignment. . this. this.OpenDeviceBtn.Drawing.TabIndex = 41.comboBoxDeviceName. this. 16).Windows. this.EnumerateBtn.Drawing.EnumerateBtn.Drawing.Size(72.label1.Drawing.Point(0.label13.StatusBar. 8). this.BackColor = System.Text = "Device ID".OpenDeviceBtn. this.label1.Name = "label1".label1. this.Drawing.Fixed3D. this.Bottom.ActiveBorder.Text = "Device Name".label5. 457). // // label13 // this.EnumerateBtn.EventHandler(this.Location = new System.label13.label5.Location = new System. // // comboBoxDeviceName // this.

this. this.Controls. /// </summary> [STAThread] static void Main() { Application. } /////////////////////// /// Create SGFingerPrintManager Object /// new SGFingerPrintManager() private void MainForm_Load(object sender. this.groupBox6.Text = "Matching C# Sample".ComponentModel.Size(416.Name = "MainForm".tabControl1.groupBox3. this.// // MainForm // this. GetEnumDeviceInfo() /// EnumerateDevice() can be called before Initializing SGFingerPrintManager private void EnumerateBtn_Click(object sender.AutoScaleBaseSize = new System. EnumerateBtn_Click(sender.tabPage1.ResumeLayout(false). this. } /////////////////////// /// EnumerateDevice().Drawing.Add(this.tabPage2.ISupportInitialize)(this. this. this.EventArgs e) { m_LedOn = false. EnableButtons(false). System.ResumeLayout(false). this. e). m_RegMin2 = new Byte[400]. this.groupBox2.Size(5.Load += new System.ResumeLayout(false). this. m_VrfMin = new Byte[400].Controls. this.groupBox1.ResumeLayout(false).groupBox4.SelectedIndex = 4.Add(this. this.Controls. this.EnumerateBtn).Add(this.Controls. m_FPM = new SGFingerPrintManager().OpenDeviceBtn).ResumeLayout(false).EndInit().ResumeLayout(false).tabControl1).BrightnessUpDown)). } #endregion /// <summary> /// The main entry point for the application. comboBoxSecuLevel_V. 13).comboBoxDeviceName).Add(this.ClientSize = new System. this. ((System.Add(this.EventArgs e) { .GroupBox8. this.Controls.ResumeLayout(false).Run(new MainForm()).ResumeLayout(false).StatusBar).label1). this.tabPage3.EventHandler(this.ResumeLayout(false).MainForm_Load).Add(this. m_RegMin1 = new Byte[400]. 481).SelectedIndex = 3. this. this. this. comboBoxSecuLevel_R. System.Drawing.Controls. this.ResumeLayout(false).ResumeLayout(false). this.

EventArgs e) { if (m_FPM.Clear(). device_id = m_DevList[deviceSelected]. // Enumerate Device iError = m_FPM. device_id = (Int32)(SGFPMPortAddr. System. i++) { m_DevList[i] = new SGFPMDeviceList(). string enum_device. } if (comboBoxDeviceName.Items. Int32 numberOfDevices = comboBoxDeviceName.Items.NumberOfDevice. comboBoxDeviceName.DevName. Int32 deviceSelected = comboBoxDeviceName. } iError = m_FPM. i < m_FPM.DevName. comboBoxDeviceName.Items.Items.Count > 0) { // Add Auto Selection enum_device = "Auto Selection". m_FPM.SelectedIndex.NumberOfDevice]. OpenDeice() private void OpenDeviceBtn_Click(object sender.USB_AUTO_DETECT).DevID.DevID. //First selected one } } /////////////////////// // Initialize SGFingerprint manage with device name // Init(). for (int i = 0. SGFPMDeviceName device_name.NumberOfDevice == 0) return. } else { device_name = m_DevList[deviceSelected]. Boolean autoSelection = (deviceSelected == (numberOfDevices . iError = m_FPM. comboBoxDeviceName. Int32 device_id.SelectedIndex = 0.1)). m_DevList[i]).ToString() +" : " + m_DevList[i].Int32 iError.Count.Items.GetEnumDeviceInfo(i.Add(enum_device).DEV_AUTO. // Last index if (autoSelection) { // Order of search: Hamster IV(HFDU04) -> Plus(HFDU03) -> III (HFDU02) device_name = SGFPMDeviceName. Int32 iError. .Init(device_name).OpenDevice(device_id).Add(enum_device). comboBoxDeviceName. // Get enumeration info into SGFPMDeviceList m_DevList = new SGFPMDeviceList[m_FPM.EnumerateDevice(). enum_device = m_DevList[i].

Enabled = true. // FDU03.EventArgs e) { m_FPM. Int32 elap_time.SetLedOn(m_LedOn).TickCount.CheckBoxAutoOn. iError = m_FPM. iError). Int32 timeout.DEV_FDU03) || (device_name == SGFPMDeviceName.Configure((int)this. } /////////////////////// /// GetImageEx() private void GetLiveImageBtn_Click(object sender. } else DisplayError("OpenDevice()". e).ERROR_NONE) { elap_time = Environment. StatusBar. StatusBar. Byte[] fp_image. if (iError == (Int32)SGFPMError.ERROR_NONE) { GetBtn_Click(sender.EventArgs e) { m_LedOn = !m_LedOn. System. } /////////////////////// /// SetLedOn() private void LedBtn_Click(object sender.Text = "Initialization Success". if (iError == (Int32)SGFPMError. .DEV_FDU04)) CheckBoxAutoOn. System. } else DisplayError("GetImage()".Handle). } /////////////////////// /// Configure() private void ConfigBtn_Click(object sender.elap_time. System.EventArgs e) { Int32 iError. } /////////////////////// /// GetImage() private void GetImageBtn_Click(object sender. EnableButtons(true).GetImage(fp_image).Enabled = false.TickCount . DrawImage(fp_image.EventArgs e) { Int32 iError. pictureBox1 ). Byte[] fp_image. FDU04 only if ((device_name == SGFPMDeviceName. elap_time = Environment. iError). Int32 quality. m_FPM. fp_image = new Byte[m_ImageWidth*m_ImageHeight].Text = "Capture Time : " + elap_time + " ms". System.

m_ImageHeight.TickCount. iError = m_FPM. System. CreateTemplate private void BtnCapture2_Click(object sender.ToInt32(textTimeout.Text).TickCount .elap_time. m_RegMin1). timeout. quality = Convert. quality).Text). progressBar_R1.Int32 elap_time. fp_image = new Byte[m_ImageWidth*m_ImageHeight]. Byte[] fp_image. this. Int32 img_qlty. m_FPM. if (iError == 0) { elap_time = Environment.EventArgs e) { Int32 iError. m_ImageHeight. iError =m_FPM. iError = m_FPM. iError).Handle.Value = img_qlty.GetImageQuality(m_ImageWidth.GetImageQuality(m_ImageWidth.Text = "First image is captured". } /////////////////////// /// GetImage(). ref img_qlty). iError). } else DisplayError("GetLiveImageEx()".CreateTemplate(fp_image. } /////////////////////// /// GetImage(). fp_image. GetImageQuality(). ref img_qlty). fp_image = new Byte[m_ImageWidth*m_ImageHeight]. if (iError == (Int32)SGFPMError.ERROR_NONE) { DrawImage(fp_image.ERROR_NONE) StatusBar. timeout = Convert. m_FPM. iError =m_FPM. else DisplayError("CreateTemplate()".Text = "Capture Time : " + elap_time + "millisec".EventArgs e) { Int32 iError. elap_time = Environment. pictureBoxR1).ToInt32(). fp_image = new Byte[m_ImageWidth*m_ImageHeight].GetImageEx(fp_image. img_qlty = 0. iError). } else DisplayError("GetImage()". System.Value = img_qlty.GetImage(fp_image). CreateTemplate private void BtnCapture1_Click(object sender.pictureBox1. img_qlty = 0. . if (iError == (Int32)SGFPMError. Int32 img_qlty.GetImage(fp_image). Byte[] fp_image. GetImageQuality().ToInt32(textImgQuality. fp_image. StatusBar. progressBar_R2.

if (iError == (Int32)SGFPMError. SGFPMSecurityLevel secu_level.EventArgs e) { Int32 iError. GetImageQuality().ERROR_NONE) StatusBar.GetImage(fp_image).SelectedIndex. iError). if (iError == (Int32)SGFPMError.ERROR_NONE) { DrawImage(fp_image. m_VrfMin). iError). Int32 img_qlty. } /////////////////////// /// GetImage().Value = img_qlty. img_qlty = 0. m_RegMin2. CreateTemplate private void BtnCapture3_Click(object sender. iError = m_FPM. else DisplayError("CreateTemplate()". progressBar_V1.CreateTemplate(null. ref matched). System. iError). m_ImageHeight. m_RegMin2). } else DisplayError("GetImage()". fp_image. fp_image. iError =m_FPM.Text = "Image for verification is captured".EventArgs e) { Int32 iError. ref img_qlty).CreateTemplate(fp_image. fp_image = new Byte[m_ImageWidth*m_ImageHeight]. } else DisplayError("GetImage()".Text = "Second image is captured".ERROR_NONE) { DrawImage(fp_image. bool matched = false. pictureBoxR2). m_FPM. if (iError == (Int32)SGFPMError. pictureBoxV1 ). iError = m_FPM.MatchTemplate(m_RegMin1.ERROR_NONE) { .GetImageQuality(m_ImageWidth. m_RegMin2. ref match_score). if (iError == (Int32)SGFPMError. else DisplayError("CreateTemplate()". iError). } /////////////////////// /// MatchTemplate(). iError = m_FPM.ERROR_NONE) StatusBar. if (iError == (Int32)SGFPMError.GetMatchingScore(m_RegMin1. // secu_level = (SGFPMSecurityLevel)comboBoxSecuLevel_R. GetMatchingScore() private void BtnRegister_Click(object sender. System. secu_level. iError = m_FPM. Int32 match_score = 0. Byte[] fp_image.

SGFPMSecurityLevel secu_level.GetDeviceInfo(pInfo).Brightness). Matching Score: " + match_score. } /////////////////////// /// GetDeviceInfo() private void GetBtn_Click(object sender. textFWVersion.ToString(pInfo.Text = "Registration Success.EventArgs e) { SGFPMDeviceInfoParam pInfo = new SGFPMDeviceInfoParam().ImageDPI).Text = encoding. textDeviceID. iError = m_FPM.Value = pInfo.Gain). m_VrfMin.ToString(pInfo.ImageHeight).Brightness. else StatusBar.MatchTemplate(m_RegMin2.Text = Convert. bool matched2 = false.Text = Convert. } else DisplayError("MatchTemplate()". textImageWidth.Text = Convert.SelectedIndex. ASCIIEncoding encoding = new ASCIIEncoding().Text = "Verification Success". textImageHeight.DeviceSN). m_ImageHeight = pInfo.Text = Convert.ImageWidth).ImageHeight. secu_level. textImageDPI. textContrast.ERROR_NONE) { m_ImageWidth = pInfo.MatchTemplate(m_RegMin1.if (matched) StatusBar. m_VrfMin. 16). iError). if (iError == (Int32)SGFPMError. Int32 iError = m_FPM.ToString(pInfo.Text = Convert. System.DeviceID). iError). System.Contrast).EventArgs e) { Int32 iError. BrightnessUpDown. bool matched1 = false. textGain.ToString(pInfo. } else DisplayError("GetMatchingScore()".ToString(pInfo.ToString(pInfo. ref matched2).ToString(pInfo.FWVersion.GetString(pInfo.ERROR_NONE) { if (matched1 & matched2) StatusBar.Text = Convert. textSerialNum. } /////////////////////// /// MatchTemplate(). GetMatchingScore() private void BtnVerify_Click(object sender.ImageWidth. if (iError == (Int32)SGFPMError. secu_level = (SGFPMSecurityLevel)comboBoxSecuLevel_V.Text = Convert. textBrightness.Text = "Verification Failed".Text = "Registration Failed". ref matched1).Text = Convert. secu_level.ToString(pInfo. iError = m_FPM. } . else StatusBar.

picBox. else if (message. iError).ToInt32() == (Int32)SGFPMAutoOnEvent.Value. i<bmp. } /////////////////////// private void DrawImage(Byte[] imgData. } /////////////////////// private void CheckBoxAutoOn_CheckedChanged(object sender. colorval)).Width.} /////////////////////// private void SetBrightnessBtn_Click(object sender. PictureBox picBox) { int colorval.EnableAutoOnEvent(false. i++) { for (int j=0.FromArgb(colorval.Text = "SetBrightness success". System.WndProc(ref message). m_ImageHeight). brightness = (int)BrightnessUpDown. (int)this.ToInt32() == (Int32)SGFPMAutoOnEvent.WParam.EventArgs e) { if (CheckBoxAutoOn.Refresh().Handle).SetPixel(i.ERROR_NONE) { StatusBar.Checked) m_FPM.WParam. } base.Text = "Device Message: Finger On".Text = "Device Message: Finger Off". else m_FPM. System.Height. j++) { colorval = (int)imgData[(j*m_ImageWidth)+ i].FINGER_OFF) StatusBar. e). for (int i=0.Image = (Image)bmp.EnableAutoOnEvent(true.DEV_AUTOONEVENT) { if (message. if (iError == (Int32)SGFPMError.Msg == (int)SGFPMMessages. 0).colorval. Int32 brightness. GetBtn_Click(sender. bmp. } } picBox. } /////////////////////// private void EnableButtons(bool enable) .FINGER_ON) StatusBar.SetBrightness(brightness).Color. } /////////////////////// protected override void WndProc(ref Message message) { if (message.EventArgs e) { Int32 iError. Bitmap bmp = new Bitmap(m_ImageWidth. } else DisplayError("SetBrightness()".j. iError = m_FPM. j<bmp.

} /////////////////////// void DisplayError(string funcName.Enabled = enable. // image data drop . break. case 6: //SGFDX_ERROR_DLLLOAD_FAILED_DRV = 6. BtnRegister. break.Enabled = enable. BtnCapture2.Enabled = enable. text = "Function Failed".{ ConfigBtn. text = "Can not load sgfpamx. = 51. text = "Can not load device driver". GetImageBtn. case 3: // SGFDX_ERROR_INVALID_PARAM text = "Invalid Parameter". break.Enabled = enable. switch (iError) { case 0: text = "Error none".Enabled = enable.Enabled = enable.Enabled = enable. BtnCapture3. BtnCapture1.Enabled = enable. break. // chip initialize fail text = "Failed to initialize the device". SetBrightnessBtn. case 7: //SGFDX_ERROR_DLLLOAD_FAILED_ALGO = 7. break. case 4: // SGFDX_ERROR_NOT_USED text = "Not used function". break. break. case 1: //SGFDX_ERROR_CREATION_FAILED text = "Can not create object". break. = 53.Enabled = enable. break. = 4. //SGFDX_ERROR_NONE = 0. case 2: // SGFDX_ERROR_FUNCTION_FAILED = 2. break. // system file load fail case 52: //SGFDX_ERROR_INITIALIZE_FAILED = 52. case 51: //SGFDX_ERROR_SYSLOAD_FAILED text = "Can not load driver kernel file". = 1. GetBtn.dll". = 5. case 53: //SGFDX_ERROR_LINE_DROPPED text = "Data transmission is not good". case 5: //SGFDX_ERROR_DLLLOAD_FAILED text = "Can not create object".Enabled = enable. int iError) { string text ="". BtnVerify. GetLiveImageBtn. = 3. break.

// getliveimage timeout error = 55. // utoo small number of minutiae = 102. // vwrong template type = 105. break. // matching fail . StatusBar. case 105: //SGFDX_ERROR_EXTRACT_FAIL text = "Minutiae extraction failed". break. break. } text = funcName + " Error # " + iError + " :" + text. break. break. // wrong image case 58: //SGFDX_ERROR_LACK_OF_BANDWIDTH = 58. } = 59. case 106: //SGFDX_ERROR_MATCH_FAIL text = "Matching failed". // device not found = 56. // USB Bandwith Lack Error text = "Lack of USB Bandwith". break. break. break. case 102: //SGFDX_ERROR_INVALID_TEMPLATE_TYPE text = "Template is invalid". break. break. case 61: //SGFDX_ERROR_UNSUPPORTED_DEV text = "Unsupported device". // wrong template type = 103. break. case 103: //SGFDX_ERROR_INVALID_TEMPLATE1 text = "1st template is invalid". // Device Exclusive access Error = 60. // extraction fail = 106. case 104: //SGFDX_ERROR_INVALID_TEMPLATE2 text = "2nd template is invalid". = 54. // Extract & Verification error case 101: //SGFDX_ERROR_FEAT_NUMBER text = "The number of minutiae is too small". case 59: //SGFDX_ERROR_DEV_ALREADY_OPEN text = "Device is already opened". case 60: //SGFDX_ERROR_GETSN_FAILED Number text = "Device serial number error". case 55: //SGFDX_ERROR_DEVICE_NOT_FOUND text = "Device not found". // dll file load fail = 57.Text = text.case 54: //SGFDX_ERROR_TIME_OUT text = "Time out". break. // Fail to get Device Serial = 61. case 56: //SGFDX_ERROR_DRVLOAD_FAILED text = "Can not load driver file". case 57: //SGFDX_ERROR_WRONG_IMAGE text = "Wrong Image". break. // Unsupported device = 101. break. // wrong template type = 104.

} } .

You're Reading a Free Preview

Download
scribd
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->