加密狗api:
function NoxFind(AppID:Integer;KeyHandle,KeyNumber:PInteger):Integer;stdcall;external 'NOXApp.DLL'; //查找
function NoxGetDevCaps(KeyHandle:Integer;KeyMode,
KeyVersion,E2Size,RamSize:PInteger):Integer;stdcall;external 'NOXApp.DLL'; //获取锁的基本信息
function NoxOpen(KeyHandle:Integer;UPin:PChar):Integer;stdcall;external 'NOXApp.DLL'; //打开
function NoxReadStorage(KeyHandle:Integer;pBuffer:PChar):Integer;stdcall;external 'NOXApp.DLL'; //读取掉电保持区数据
function NoxReadMem(KeyHandle:Integer;pBuffer:PChar):Integer;stdcall;external 'NOXApp.DLL'; // 读取内存数据
function NoxWriteMem(KeyHandle:Integer;pBuffer:PChar):Integer;stdcall;external 'NOXApp.DLL'; // 写内存数据
function NoxClose(KeyHandle:Integer):Integer;stdcall;external 'NOXApp.DLL'; // 关闭锁
function NoxGetLastError():Integer;stdcall;external 'NOXApp.DLL'; // 获取最后出错码