GetUserTmpEx

Definition

Usage

Download ordinary fingerprint templates or threatened fingerprint templates of a user in binary mode. The only difference between this function and GetUserTmpExStr is the

fingerprint template format. Note: TFT devices supporting threatened fingerprints (with firmware version 6.60 or later) can support this function.

Parameter

Device number

User ID

Index of the fingerprint. The value ranges from 0 to 9.

Flag used to indicate whether the fingerprint template is valid or is a threatened

fingerprint template. 0: Invalid; 1: Valid; 3: Threatened fingerprint template.

Fingerprint template data

Fingerprint template length

Return Value

Return True if it is successful, or return False.

Related Function

SetUserTmpEx, SSR_GetUserInfo

 

Ejemplo

C#

        /// <summary>
/// Download ordinary fingerprint templates or threatened fingerprint templates of a user in binary mode. The only difference 
/// between this function and GetUserTmpExStr is the fingerprint template format. Note: TFT devices supporting threatened 
/// fingerprints (with firmware version 6.60 or later) can support this function. 
/// </summary>
/// <param name="dwEnrollNumber"></param>
/// <param name="dwFingerIndex"></param>
/// <param name="IP"></param>
/// <param name="Port"></param>
/// <param name="MachineNumber"></param>
private void GetUserTmpEx(string dwEnrollNumber, int dwFingerIndex, 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;
        byte TmpData = 0;
        int TmpLength = 0;
        int Flag = 0;
        if (axCZKEM1.GetUserTmpEx(MachineNumber, dwEnrollNumber, dwFingerIndex, out Flag, out TmpData, out TmpLength))
	{
		MessageBox.Show("User Id:" + dwEnrollNumber + ", dwFingerIndex: " + dwFingerIndex.ToString() + ", Flag: " + Flag.ToString() + ", TmpData: " + TmpData.ToString() + ", TmpLength: " + TmpLength.ToString(), "Success");
	}
        else
	{
		axCZKEM1.GetLastError(ref idwErrorCode);
		MessageBox.Show("Operation failed,ErrorCode=" + idwErrorCode.ToString(), "Error");
	}
}

VB

        ''' <summary>
''' Download ordinary fingerprint templates or threatened fingerprint templates of a user in binary mode. The only difference 
''' between this function and GetUserTmpExStr is the fingerprint template format. Note: TFT devices supporting threatened 
''' fingerprints (with firmware version 6.60 or later) can support this function. 
''' </summary>
''' <param name="dwEnrollNumber"></param>
''' <param name="dwFingerIndex"></param>
''' <param name="IP"></param>
''' <param name="Port"></param>
''' <param name="MachineNumber"></param>
Private Sub GetUserTmpEx(ByVal dwEnrollNumber As String, ByVal dwFingerIndex As Integer, Optional IP As String = "10.0.0.44", Optional Port As Integer = 4370, Optional MachineNumber As Integer = 1)
        'Create Standalone SDK class dynamicly.
        Dim axCZKEM1 As zkemkeeper.CZKEMClass = New zkemkeeper.CZKEMClass()
	axCZKEM1.Connect_Net(IP, Port)
        Dim idwErrorCode As Integer = 0
        Dim TmpData As Byte = 0
        Dim TmpLength As Integer = 0
        Dim Flag As Integer = 0
        If axCZKEM1.GetUserTmpEx(MachineNumber, dwEnrollNumber, dwFingerIndex, Flag, TmpData, TmpLength) Then
		MessageBox.Show("User Id:" + dwEnrollNumber + ", dwFingerIndex: " + dwFingerIndex.ToString() + ", Flag: " + Flag.ToString() + ", TmpData: " + TmpData.ToString() + ", TmpLength: " + TmpLength.ToString(), "Success")
        Else
		axCZKEM1.GetLastError(idwErrorCode)
		MessageBox.Show("Operation failed,ErrorCode=" + idwErrorCode.ToString(), "Error")
        End If
End Sub