📄 declaredll.~pas
字号:
unit declaredll;
interface
//读卡函数声明
function piccreadex(ctrlword:byte;pserial:pbyte;area:byte;keyA1B0:byte;picckey:pbyte;piccdata0_2:pbyte):byte;stdcall;external 'WMJUSBICCARDER.dll';
//写卡函数声明
function piccwriteex(ctrlword:byte;pserial:pbyte;area:byte;keyA1B0:byte;picckey:pbyte;piccdata0_2:pbyte):byte;stdcall;external 'WMJUSBICCARDER.dll';
//驱动蜂鸣器函数声明
function pcdbeep(xms:integer):byte;stdcall;external 'WMJUSBICCARDER.dll';
//修改单区密码函数声明
function piccchangesinglekey(ctrlword:byte;pserial:pbyte;area:byte;keyA1B0:byte;piccoldkey:pbyte;piccnewkey:pbyte):byte;stdcall;external 'WMJUSBICCARDER.dll';
//读出编号函数声明
function pcdgetdevicenumber(pdevicenumber:pbyte):byte;stdcall;external 'WMJUSBICCARDER.dll';
const
//以下控制字的含义请查看本公司网站提供的动态库说明
BLOCK0_EN = $01; //读块0
BLOCK1_EN = $02; //读块1
BLOCK2_EN = $04; //读块2
NEEDSERIAL = $08; //是否需要只对指定系列号的卡操作
EXTERNKEY = $10; //是否使用外部密码
NEEDHALT = $20; //是否休眠本卡
implementation
end.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -