GetFPTempLength

Definition

Usage

Calculate the length of a specified fingerprint template.

Parameter

Pointer pointing at the fingerprint template

Length of the fingerprint template described by dwEnrollDat

Return Value

Return True if it is successful, or return False.

Related Function

GetFPTempLengthStr

 

Ejemplo

C#

        /// <summary>
        /// Calculate the length of a specified fingerprint template. 
        /// </summary>
        /// <param name="dwEnrollData">Pointer pointing at the fingerprint template </param>
        /// <param name="IP"> Ip of device </param>
        /// <param name="Port"> Port of Device </param>
        private void GetFPTempLength(byte dwEnrollData, string IP = "10.0.0.44", int Port = 4370)
        {
        //Create Standalone SDK class dynamicly.
            zkemkeeper.CZKEMClass axCZKEM1 = new zkemkeeper.CZKEMClass();
            axCZKEM1.Connect_Net(IP, Port);
        int idwErrorCode = 0;
        int Len = axCZKEM1.GetFPTempLength(ref dwEnrollData);
        if (Len > 0)
            {
                MessageBox.Show("Length: " + Len.ToString(), "Success");
            }
        else
            {
                axCZKEM1.GetLastError(ref idwErrorCode);
                MessageBox.Show("Operation failed,ErrorCode=" + idwErrorCode.ToString(), "Error");
            }
        }

VB

        ''' <summary>
        ''' Calculate the length of a specified fingerprint template. 
        ''' </summary>
        ''' <param name="dwEnrollData">Pointer pointing at the fingerprint template </param>
        ''' <param name="IP"> Ip of device </param>
        ''' <param name="Port"> Port of Device </param>
        Private Sub GetFPTempLength(ByVal dwEnrollData As Byte, Optional IP As String = "10.0.0.44", Optional Port As Integer = 4370)
        'Create Standalone SDK class dynamicly.
        Dim axCZKEM1 As zkemkeeper.CZKEMClass = New zkemkeeper.CZKEMClass()
        axCZKEM1.Connect_Net(IP, Port)
        Dim idwErrorCode As Integer = 0
        Dim Len As Integer = axCZKEM1.GetFPTempLength(dwEnrollData)
        If Len > 0 Then
            MessageBox.Show("Length: " + Len.ToString(), "Success")
        Else
            axCZKEM1.GetLastError(idwErrorCode)
            MessageBox.Show("Operation failed,ErrorCode=" + idwErrorCode.ToString(), "Error")
        End If
        End Sub