Obtain the information of the specified user.


Device number

User ID

User name corresponding to the user ID described by dwEnrollNumber

User password. If the value is null, the user does not use a password.

User privilege. 0: common user, 1: enroller, 2: administrator, 3: super administrator

User enable flag. 1: Enabled. 0: Disabled

Return Value

Return True if it is successful, or return False.

Related Function





	private   void GetUserInfo(string sIp = "", int iPort = 4370, int iMachineNumber = 1)
		//Create Standalone SDK class dynamicly.
		zkemkeeper.CZKEMClass axCZKEM1 = new zkemkeeper.CZKEMClass();
		axCZKEM1.Connect_Net(sIp, iPort);

		int idwEnrollNumber = 0;
		string sName = "";
		int iPrivilege = 0;
		string sPassword = "";
		bool bEnabled = false;

		axCZKEM1.EnableDevice(iMachineNumber, false);
		idwEnrollNumber = 1;

		if (axCZKEM1.GetUserInfo(iMachineNumber, idwEnrollNumber,ref sName, ref sPassword,ref iPrivilege,ref bEnabled))
			MessageBox.Show(" Success");
			MessageBox.Show(" UnSuccess");

		axCZKEM1.EnableDevice(iMachineNumber, true);


Private Shared Sub GetUserInfo(Optional ByVal sIp As String = "", Optional ByVal iPort As Integer = 4370, Optional ByVal iMachineNumber As Integer = 1)
	'Create Standalone SDK class dynamicly.
	Dim axCZKEM1 As New zkemkeeper.CZKEM
	axCZKEM1.Connect_Net(sIp, iPort)

	Dim sName As String = ""
	Dim iPrivilege As Integer = 0
	Dim sPassword As String = ""
	Dim bEnabled As Boolean = False
	Dim idwEnrollNumber As Integer = 1

	axCZKEM1.EnableDevice(iMachineNumber, False)

	If axCZKEM1.GetUserInfo(iMachineNumber, idwEnrollNumber, sName, sPassword, iPrivilege, bEnabled) = True Then
		MsgBox(" Success")
		MsgBox(" UnSuccess")
	End If
	axCZKEM1.EnableDevice(iMachineNumber, True)
End Sub