GetACFun

Definition

Usage

Obtain whether the device has the access control function.

Parameter

Flag of the access control function of the device. 0: no access control, 1: simple access control, 2: middle-level access control, 6: high-level access control, 14: high-level access control + always open, 15: access control available

Return Value

Return True if it is successful, or return False.

Related Function

None

 

Ejemplo

C#

//Create Standalone SDK class dynamicly.
zkemkeeper.CZKEMClass axCZKEM1 = new zkemkeeper.CZKEMClass();

int idwErrorCode = 0;
int iACFun = 0;

if (axCZKEM1.GetACFun(ref iACFun))
{
    MessageBox.Show("GetACFun, ACFun:" + iACFun.ToString(), "Success");
}
else
{
    axCZKEM1.GetLastError(ref idwErrorCode);
    MessageBox.Show("Operation failed,ErrorCode=" + idwErrorCode.ToString(), "Error");
}

VB

'Create Standalone SDK class dynamicly.
Dim axCZKEM1 As New zkemkeeper.CZKEM
Dim idwErrorCode As Integer

Dim iACFun As Integer

If AxCZKEM1.GetACFun(iACFun) = True Then
    MsgBox("GetACFun, ACFun:" + iACFun.ToString(), MsgBoxStyle.Information, "Success")
Else
    AxCZKEM1.GetLastError(idwErrorCode)
    MsgBox("Operation failed,ErrorCode=" & idwErrorCode.ToString(), MsgBoxStyle.Exclamation, "Error")
End If