Obtain the parameters from the device. Note: This function can be used to obtain the algorithm version used by the device.
Device number
Parameter name. When the parameter is the character string "~ZKFPVersion", if the returned Value is 10, the current device uses IntercorpFinger10.0; if the returned Value is null or 9, the current device uses IntercorpFinger9.0.
Value of the parameter described by Option
Return True if it is successful, or return False.
SetSysOption
/// <summary> /// Get the parameters of the device's options. /// </summary> /// <param name="IP"> Ip of device </param> /// <param name="Port"> Port of Device </param> /// <param name="MachineNumber"> Device Number </param> private void GetSysOption(string IP = "10.0.0.44", int Port = 4370, int MachineNumber = 1) { //Create Standalone SDK class dynamicly. zkemkeeper.CZKEMClass axCZKEM1 = new zkemkeeper.CZKEMClass(); axCZKEM1.Connect_Net(IP, Port); int idwErrorCode = 0; string sOption = "~PIN2Width";//You should input this parameter by yourself . string Value = ""; if (axCZKEM1.GetSysOption(MachineNumber, sOption, out Value)) { MessageBox.Show("The system option is=" + Value, "Success"); } else { axCZKEM1.GetLastError(ref idwErrorCode); MessageBox.Show("Operation failed,ErrorCode=" + idwErrorCode.ToString(), "Error"); } }
''' <summary> ''' Get the parameters of the device's options. ''' </summary> ''' <param name="IP"> Ip of device </param> ''' <param name="Port"> Port of Device </param> ''' <param name="MachineNumber"> Device Number </param> Private Sub GetSysOption(Optional IP As String = "10.0.0.44", Optional Port As Integer = 4370, Optional MachineNumber As Integer = 1) Dim idwErrorCode As Integer = 0 'Create Standalone SDK class dynamicly. Dim axCZKEM1 As New zkemkeeper.CZKEM axCZKEM1.Connect_Net(IP, Convert.ToInt32(Port)) Dim sOption As String = "~PIN2Width" 'You should input this parameter by yourself. Dim Value As String = "" If axCZKEM1.GetSysOption(MachineNumber, sOption, Value) = True Then MsgBox("The system option is=" & Value, MsgBoxStyle.Information, "Success") Else axCZKEM1.GetLastError(idwErrorCode) MsgBox("Operation failed,ErrorCode=" & idwErrorCode.ToString(), MsgBoxStyle.Exclamation, "Error") End If End Sub