SSR_SetUserTmpStr

Definition

Usage

Upload the fingerprint templates of a user in binary mode. The only difference between this function and SetUserTmpStr is the fingerprint template format. Caution: The user

must have been created on the device. If the same index is already registered by the user, the fingerprint template will be overwritten.

Parameter

Device number

User ID

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

Fingerprint template data

Fingerprint template length

Return Value

Return True if it is successful, or return False.

Related Function

GetUserTmp

 

Ejemplo

C#

        /// <summary>
/// Set the fingerprint templates of a user in string form. The only difference between this function and SetUserTmp 
/// is the fingerprint template format. Caution:The user must have been created on the device. If the same index is already 
/// registered by the same user, the fingerprint template will be overwritten. 
/// </summary>
/// <param name="dwEnrollNumber">User ID </param>
/// <param name="dwFingerIndex">Index of the fingerprint.The value ranges from 0 to 9. </param>
/// <param name="IP"> Ip of device </param>
/// <param name="Port"> Port of Device </param>
/// <param name="MachineNumber"> Device Number </param>
private void SSR_SetUserTmpStr(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;
        string TmpData = "";
        if (axCZKEM1.SSR_SetUserTmpStr(MachineNumber, dwEnrollNumber, dwFingerIndex, TmpData))
	{
		MessageBox.Show("SSR_SetUserTmpStr! ", "Success");
	}
        else
	{
		axCZKEM1.GetLastError(ref idwErrorCode);
		MessageBox.Show("Operation failed,ErrorCode=" + idwErrorCode.ToString(), "Error");
	}
}

VB

        /// <summary>
/// Set the fingerprint templates of a user in string form. The only difference between this function and SetUserTmp 
/// is the fingerprint template format. Caution:The user must have been created on the device. If the same index is already 
/// registered by the same user, the fingerprint template will be overwritten. 
/// </summary>
/// <param name="dwEnrollNumber">User ID </param>
/// <param name="dwFingerIndex">Index of the fingerprint.The value ranges from 0 to 9. </param>
/// <param name="IP"> Ip of device </param>
/// <param name="Port"> Port of Device </param>
/// <param name="MachineNumber"> Device Number </param>
private void SSR_SetUserTmpStr(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;
        string TmpData = "";
        if (axCZKEM1.SSR_SetUserTmpStr(MachineNumber, dwEnrollNumber, dwFingerIndex, TmpData))
	{
		MessageBox.Show("SSR_SetUserTmpStr! ", "Success");
	}
        else
	{
		axCZKEM1.GetLastError(ref idwErrorCode);
		MessageBox.Show("Operation failed,ErrorCode=" + idwErrorCode.ToString(), "Error");
	}
}