Obtain all user information. Before executing this function, you can use ReadAllUserID to read out all user information and write it into the memory. Each time GetAllUserInfo is executed, the pointer points to the next user information. After all user information is read, False is returned. The difference between this function and GetAllUserID is that this function can obtain more information.


Device number

User ID

User name

User password

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

Whether the user is enabled. 1: Enabled. 0: Disabled.

Return Value

Return True if it is successful, or return False.

Related Function

ReadAllUserID, GetAllUserID




private void GetAllUserInfo(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 iEnrollNumber = 0;
	string sname=String.Empty ;
	string sPass = String.Empty;
	int iPrivilege = 0;
	bool ienabled = false;

	axCZKEM1.EnableDevice(iMachineNumber, false);
	axCZKEM1.ReadAllUserID(iMachineNumber);//read all the user information to the memory
	while (axCZKEM1.GetAllUserInfo(iMachineNumber, ref iEnrollNumber, ref sname, ref sPass, ref iPrivilege,ref  ienabled))
		MessageBox.Show("iEnrollNumber :"+iEnrollNumber.ToString()+
			"sname: "+ sname+
			"sPass :"+ sPass+
			"iPrivilege :"+ iPrivilege+
			"ienabled :"+ ienabled


	axCZKEM1.EnableDevice(iMachineNumber, true);


Private Shared Sub GetAllUserInfo(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 iEnrollNumber As Integer
	Dim sname As String = ""
	Dim sPass As String = ""
	Dim iPrivilege As Integer
	Dim ienabled As Boolean

	axCZKEM1.EnableDevice(iMachineNumber, False)
	axCZKEM1.ReadAllUserID(iMachineNumber) 'read all the user information To the memory
	While axCZKEM1.GetAllUserInfo(iMachineNumber, iEnrollNumber, sname, sPass, iPrivilege, ienabled) = True

		MsgBox("iEnrollNumber :" + iEnrollNumber.ToString() +
				"sname: " + sname +
				"sPass :" + sPass +
				"iPrivilege :" + iPrivilege +
				"ienabled :" + ienabled)
	End While

	axCZKEM1.EnableDevice(iMachineNumber, True)
End Sub