question

Saaj-1592 avatar image
0 Votes"
Saaj-1592 asked DanielZhang-MSFT commented

delete user from zk/ESSL attendance device using c# api

I'm enrolling users to this machines using zkmkeeper.dll in C#. now i want to delete some users from these machines (X990) using system. I can't find the function to delete users, but there is function to disable. I want to delete that users permanently from devices.


if (axCZKEM1.SSR_DeleteEnrollData(iMachineNumber, sUserID, iBackupNumber))
{
axCZKEM1.RefreshData(iMachineNumber);//the data in the device should be refreshed
MessageBox.Show("DeleteEnrollData,UserID=" + sUserID + " BackupNumber=" + iBackupNumber.ToString(), "Success");
}
else
{
axCZKEM1.GetLastError(ref idwErrorCode);
MessageBox.Show("Operation failed,ErrorCode=" + idwErrorCode.ToString(), "Error");
}
Cursor = Cursors.Default;

Always error code idwErrorCode =0;

Kindly help as soon as possible.


I try

https://stackoverflow.com/questions/58297268/delete-user-from-zk-attendance-device-using-c-sharp-api

but it's not a relevant answer

dotnet-csharp
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi @Saaj-1592,
In first, I suggest you follow the code in this document to check if the device is connected successfully via zkmkeeper.dll
Best Regards,
Daniel Zhang


0 Votes 0 ·

0 Answers