c# - 使用 zk api (zkemkeeper/Interop.zkemkeeper) 在 MultiBio 800-H 设备中禁用用户

标签 c# winforms rfid biometrics

我正在开发一个访问控制并能够在其他 zk 设备中禁用用户。使用以下代码但不仅在 zk 800-H 设备方法中返回 true 但卡正在工作并解锁门。

在其他设备上,如果我禁用用户,刷卡设备会显示用户已禁用,这很好..

zkemkeeper.CZKEM zkApi = new zkemkeeper.CZKEM();//intialize api...
var bIsConnected = zkApi.Connect_Net("xxx.xxx.xxx.xxx", 4370);// connecting api and tested the device is connected.

if (bIsConnected)
{
     zkApi.RegEvent(1, 65535);
     return true;
}
//in zk api for enable disable user

//in below method 1 is iMachineNumber, "1001" is UserId In machine and fasle is for enable/disable user.
var result = zkApi.SSR_EnableUser(1, "1001" , false);//no error and return true for indicate success.

if (result) 
{
     MessageBox.Show("User Disabled Successfull"); 
}

最佳答案

此设备存在一个已知问题,我遇到了同样的问题并联系了支持人员。 团队。 如果您想禁用它,只需删除该记录即可。

关于c# - 使用 zk api (zkemkeeper/Interop.zkemkeeper) 在 MultiBio 800-H 设备中禁用用户,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43067065/

相关文章:

android - 用于移动设备的 RFID 阅读器

node.js - 将外部 C++ 库与 Johnny Five 一起用于基于 Arduino 的项目

c# - 写入文件出来正方形

c# - 具有驱动器号的 Path.Combine() 行为

c# - OwnerDraw ComboBox 不再是 "styled"

c# - 如何在 WinForms 应用程序中测试 Web 浏览器控件的 Web UI?

wifi - 如何使用 SNMP/SNAP 协议(protocol)从 RFID 标签读取数据?

c# - 如何使用 LINQ C# 过滤字典中的嵌套集合

c# - 在使用 block 中包装对话框是多余的吗?

c# - 如何更改窗体边框颜色 C#?