SetDeviceParam

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

[in]: The handle that is returned when the connection is successful.

[in]: The device parameter value to be set; the multiple parameter values can be separated by commas; you can set at most 20 parameters at a time (Attached table 2 lists the parameter value attributes).

Return Value

When the returned value is 0 , it indicates that the operation is successful. When the returned value is a negative value, it indicates an error. Attached table 5 lists the information about the error codes.

Related Function

GetDeviceParam

 

Ejemplo

C#

        
[DllImport("plcommpro.dll", EntryPoint = "SetDeviceParam")]
public static extern int SetDeviceParam(IntPtr h, string itemvalues);
private void SetDeviceParam_Pull()
{
	Connect_Pull();
        // Upgrade GATEIPAddress and NetMask values
        string valuesToSet = "GATEIPAddress = 10.0.0.1,NetMask = 255.255.255.0";
        int ret = 0;
	ret = SetDeviceParam(h, valuesToSet);    //set the select params values to device
        if (ret >= 0)
		MessageBox.Show("SetDeviceParam successfu!");
        else
		PullLastError();
	Disconnect_pull();
}

VB

        
<DllImport("plcommpro.dll", EntryPoint:="SetDeviceParam")>
Public Shared Function SetDeviceParam(h As IntPtr, itemvalues As String) As Integer
End Function
Private Sub SetDeviceParam_Pull()
	Connect_Pull()
        ' Upgrade GATEIPAddress and NetMask values
        Dim valuesToSet As String = "GATEIPAddress = 10.0.0.1,NetMask = 255.255.255.0"
        Dim ret As Integer = 0
	ret = SetDeviceParam(h, valuesToSet)
        'set the select params values to device
        If ret >= 0 Then
		MessageBox.Show("SetDeviceParam successfu!")
        Else
		PullLastError()
        End If
	Disconnect_pull()
End Sub
<DllImport("plcommpro.dll", EntryPoint:="GetDeviceParam")>
Public Shared Function GetDeviceParam(h As IntPtr, ByRef buffer As Byte, buffersize As Integer, itemvalues As String) As Integer
End Function