📄 eastriver.h
字号:
struct TRealRecordInfo
{
int Size;
char CardNo[18];
char timeString[16];
bool IsIDCard;
bool NoCard;
int Reader;
int Flag;
int Mark;
int times;
int balance;
int consume;
double sign_time;
} ;
#pragma pack(pop)
//-- var, const, procedure ---------------------------------------------------
#define INOUT_RIGHT = 0x0;
#define CIPHER_ENABLE = 0x1;
#define ALERT_ENABLE = 0x2;
#define BUTTON_ENABLE = 0x3;
#define OPEN_DOOR = 0x4;
#define MAGNETISM_ENABLE = 0x5;
#define HOLIDAY_OPENRIGHT = 0x6;
#define SUPERUSERPWD_ENABLE = 0x7;
#define CS_AUTO = 0x0;
#define CS_GENERAL = 0x1;
#define CS_NEWCARD = 0x2;
#define CS_OLDCARD = 0x3;
#define CS_IDCARD = 0x4;
#define ERROR_IO_CHECK = 0x1;
#define ERROR_IO_READ = 0x2;
#define ERROR_IO_WRITE = 0x3;
#define ERROR_IO_NOEND = 0x4;
#define ERROR_IO_NOPEN = 0x5;
#define ERROR_IO_COMMAND = 0x6;
#define ERROR_IO_NOHANDLE = 0x7;
#define ERROR_IO_TIMEOUT = 0x8;
EASTRIVER_API HANDLE __stdcall OpenCommPort(int Port, int BaudRate);
EASTRIVER_API bool __stdcall CloseCommPort(int Port);
EASTRIVER_API bool __stdcall ClosePortHandle(HANDLE hPort);
EASTRIVER_API bool __stdcall InitCommPort(HANDLE hPort, unsigned BaudRate, BYTE Parity);
EASTRIVER_API HANDLE __stdcall ConnectClock(int Port, int BaudRate, int clock_id);
EASTRIVER_API bool __stdcall DisConnectClock(HANDLE hPort);
EASTRIVER_API bool __stdcall CheckConnectClock(HANDLE hPort, int clock_id);
EASTRIVER_API bool __stdcall CallClock(HANDLE hPort, int clock_id);
EASTRIVER_API bool __stdcall UnCallClock(HANDLE hPort);
EASTRIVER_API bool __stdcall TestCallClock(HANDLE hPort, int clock_id, int TimeOut = 0x0);
EASTRIVER_API bool __stdcall ClockAutoModel(HANDLE hPort);
EASTRIVER_API bool __stdcall GetClockModel(HANDLE hPort, int &Model, double &Ver, int &cls);
EASTRIVER_API bool __stdcall SetClockModel(HANDLE hPort, int Model, double Ver, int cls);
EASTRIVER_API bool __stdcall SetClockBaudRate(HANDLE hPort, unsigned BaudRate);
EASTRIVER_API bool __stdcall GetClockSupports(HANDLE hPort, int Index);
EASTRIVER_API double __stdcall GetDLLVersion(void);
EASTRIVER_API int __stdcall GetClockVersionOrd(HANDLE hPort, bool fastGet = true);
EASTRIVER_API int __stdcall ClockVerOrd(int Model);
EASTRIVER_API bool __stdcall GetClockVersion(HANDLE hPort, char * Version);
EASTRIVER_API bool __stdcall ReadClockSerialNo(HANDLE hPort, char * SerialNo);
EASTRIVER_API bool __stdcall SetClockID(HANDLE hPort, int new_id);
EASTRIVER_API BYTE __stdcall GetClockID(int Port, int BaudRate);
EASTRIVER_API bool __stdcall ReadClockMark(HANDLE hPort, char &Mark);
EASTRIVER_API bool __stdcall SetClockMark(HANDLE hPort, char Mark);
EASTRIVER_API bool __stdcall ReadCardLength(HANDLE hPort, int &dispLen, int &dataLen);
EASTRIVER_API bool __stdcall SetCardLength(HANDLE hPort, int dispLen, int dataLen);
EASTRIVER_API bool __stdcall ReadManagerCard(HANDLE hPort, char * CardNo);
EASTRIVER_API bool __stdcall SetManagerCard(HANDLE hPort, char * CardNo);
EASTRIVER_API bool __stdcall ReadClockMode(HANDLE hPort, int &Mode, int &ExtraMode, int &SystemMode);
EASTRIVER_API bool __stdcall SetClockMode(HANDLE hPort, int Mode, int ExtraMode, int SystemMode);
EASTRIVER_API bool __stdcall ShowClockMessage(HANDLE hPort, char * Msg, bool bClearScreen, int Line, double Duration);
EASTRIVER_API bool __stdcall SetClockNormalMessage(HANDLE hPort, char * msg);
EASTRIVER_API bool __stdcall ReadClockNormalMessage(HANDLE hPort, char * msg);
EASTRIVER_API bool __stdcall SetClockWelcomeMessage(HANDLE hPort, char * msg);
EASTRIVER_API bool __stdcall ReadClockWelcomeMessage(HANDLE hPort, char * msg);
EASTRIVER_API bool __stdcall ReadClockTime(HANDLE hPort, double &CurTime);
EASTRIVER_API bool __stdcall SetClockTime(HANDLE hPort, double SetTime);
EASTRIVER_API bool __stdcall ReadClockTimeString(HANDLE hPort, char * TimeString);
EASTRIVER_API bool __stdcall SetClockTimeString(HANDLE hPort, char * TimeString);
EASTRIVER_API bool __stdcall SetPortAllClockTime(HANDLE hPort, double SetTime);
EASTRIVER_API bool __stdcall SetNotification(HANDLE hPort, char * msg, int nDay, bool WordWrap = true);
EASTRIVER_API bool __stdcall ReadClockRecordTotal(HANDLE hPort, int &data);
EASTRIVER_API bool __stdcall ReadMaxClockRecordTotal(HANDLE hPort, int &data);
EASTRIVER_API bool __stdcall SetCardTimeInterval(HANDLE hPort, double timeInterval);
EASTRIVER_API bool __stdcall ReadCardTimeInterval(HANDLE hPort, double &timeInterval);
EASTRIVER_API bool __stdcall SetWholeTimeClock(HANDLE hPort);
EASTRIVER_API int __stdcall ReadClockerTime(HANDLE hPort, TClockerTime * Clocks, const int Clocks_Size);
EASTRIVER_API bool __stdcall SetClockerTime(HANDLE hPort, char * StartTime, char * EndTime);
EASTRIVER_API bool __stdcall SetRepeatClockerTime(HANDLE hPort, int timeLen);
EASTRIVER_API bool __stdcall ReadRepeatClockerTime(HANDLE hPort, int &timeLen);
EASTRIVER_API bool __stdcall ClearRing(HANDLE hPort);
EASTRIVER_API int __stdcall ReadRing(HANDLE hPort, TRingTime * RingTimes, const int RingTimes_Size);
EASTRIVER_API bool __stdcall SetRing(HANDLE hPort, int hour, int minute, int second, int ringTimeLen);
EASTRIVER_API bool __stdcall ReadRecord(HANDLE hPort, char * data, char * timeString, char &mark, bool FirstRecord);
EASTRIVER_API bool __stdcall ReadStandardRecord(HANDLE hPort, char * Data, char * timeString, char &mark, int &flag, int &cardTimes, int &cardGroup);
EASTRIVER_API bool __stdcall ReadClockData(HANDLE hPort, char * CardNo, double &SignTime, char &mark, bool FirstRecord);
EASTRIVER_API int __stdcall ReadRecordText(HANDLE hPort, char * data, bool FirstRecord);
EASTRIVER_API int __stdcall BatchReadRecord(HANDLE hPort, TICRecord * Records, const int Records_Size);
EASTRIVER_API int __stdcall BatchReadPrevRecord(HANDLE hPort, TICRecord * Records, const int Records_Size);
EASTRIVER_API bool __stdcall ClearAllReadCard(HANDLE hPort);
EASTRIVER_API int __stdcall ReadAllRecord(HANDLE hPort, void * lpData, TDataProcess DataProcess, TTimeLapse Wait = 0x0);
EASTRIVER_API bool __stdcall ReadSavedAllowedClockerCardNumber(HANDLE hPort, int &data);
EASTRIVER_API bool __stdcall ReadSavedBlackCardNumber(HANDLE hPort, int &data);
EASTRIVER_API bool __stdcall ReadSavedLockerPassCardNumber(HANDLE hPort, int &data);
EASTRIVER_API bool __stdcall SetAllowedCard(HANDLE hPort, char * card, char * empid, char * EmpName);
EASTRIVER_API bool __stdcall DeleteAllowedCard(HANDLE hPort, char * card);
EASTRIVER_API bool __stdcall DeleteAllAllowedCard(HANDLE hPort);
EASTRIVER_API bool __stdcall SetBlackCard(HANDLE hPort, char * card);
EASTRIVER_API bool __stdcall DeleteBlackCard(HANDLE hPort, char * card);
EASTRIVER_API bool __stdcall DeleteAllBlackCard(HANDLE hPort);
EASTRIVER_API bool __stdcall SetDoorPassCard(HANDLE hPort, char * beginPass, char * endPass, char * card, char * EmpId);
EASTRIVER_API bool __stdcall DeleteDoorPassCard(HANDLE hPort, char * card);
EASTRIVER_API bool __stdcall DeleteAllDoorPassCard(HANDLE hPort);
EASTRIVER_API bool __stdcall BatchReadDoorPassCard(HANDLE hPort, TDownloadCardStruct * CardList, const int CardList_Size, int &Number, TProgressProc CallBack);
EASTRIVER_API bool __stdcall BatchReadAllowedCard(HANDLE hPort, TDownloadCardStruct * CardList, const int CardList_Size, int &Number, TProgressProc CallBack);
EASTRIVER_API bool __stdcall BatchReadBlackCard(HANDLE hPort, TDownloadCardStruct * CardList, const int CardList_Size, int &Number, TProgressProc CallBack);
EASTRIVER_API bool __stdcall SetSuperUserPwd(HANDLE hPort, int Number, char * Pwd, int Right);
EASTRIVER_API bool __stdcall SetDoorGuardPeriods(HANDLE hPort, BYTE Fun, const TDoorTimePeriods * ts, const int ts_Size, int Count, BYTE week = (BYTE)(0x0));
EASTRIVER_API bool __stdcall SetInOutRight(HANDLE hPort, int Week_Day, TDoorTimePeriods * ts, const int ts_Size, int Count = 0x4);
EASTRIVER_API bool __stdcall SetCipherSlice(HANDLE hPort, TDoorTimePeriods * ts, const int ts_Size, int Count = 0x4);
EASTRIVER_API bool __stdcall SetAlertSlice(HANDLE hPort, TDoorTimePeriods * ts, const int ts_Size, int Count = 0x4);
EASTRIVER_API bool __stdcall SetButtonSlice(HANDLE hPort, TDoorTimePeriods * ts, const int ts_Size, int Count = 0x4);
EASTRIVER_API bool __stdcall SetConstOpenSlice(HANDLE hPort, TDoorTimePeriods * ts, const int ts_Size, int Count = 0x4);
EASTRIVER_API bool __stdcall SetCOAlertSlice(HANDLE hPort, TDoorTimePeriods * ts, const int ts_Size, int Count = 0x4);
EASTRIVER_API bool __stdcall SetHolidaySlice(HANDLE hPort, TDoorTimePeriods * ts, const int ts_Size, int Count = 0x4);
EASTRIVER_API bool __stdcall SetSuperUserPwdSlice(HANDLE hPort, TDoorTimePeriods * ts, const int ts_Size, int Count = 0x4);
EASTRIVER_API bool __stdcall SetHoliday(HANDLE hPort, const char * DayString);
EASTRIVER_API bool __stdcall SetDoorPassCardDE(HANDLE hPort, BYTE Style, char * Card, char * Code, int Right = 0x0, char * BeginPass = (0x0), char * EndPass = (0x0), char * EmpId = (0x0));
EASTRIVER_API bool __stdcall SetAllowedCardDE(HANDLE hPort, BYTE Style, char * card, char * emp_id, char * emp_name = (0x0));
EASTRIVER_API bool __stdcall DeleteAllowedCardDE(HANDLE hPort, BYTE Style, char * card);
EASTRIVER_API bool __stdcall SetBlackCardDE(HANDLE hPort, BYTE Style, char * card);
EASTRIVER_API bool __stdcall DeleteBlackCardDE(HANDLE hPort, BYTE Style, char * card);
EASTRIVER_API bool __stdcall DeleteDoorPassCardDE(HANDLE hPort, BYTE Style, char * card);
EASTRIVER_API bool __stdcall ReadClockMoneySum(HANDLE hPort, int &MoneySum);
EASTRIVER_API bool __stdcall ClearClockMoneySum(HANDLE hPort);
EASTRIVER_API bool __stdcall SetPriceList(HANDLE hPort, int Num, int Value);
EASTRIVER_API bool __stdcall ReadPriceList(HANDLE hPort, int Num, int &Value);
EASTRIVER_API bool __stdcall SetFixPrice(HANDLE hPort, int Value);
EASTRIVER_API bool __stdcall ReadFixPrice(HANDLE hPort, int &Value);
EASTRIVER_API bool __stdcall SetDayMaxExpenditure(HANDLE hPort, int Value);
EASTRIVER_API bool __stdcall ReadDayMaxExpenditure(HANDLE hPort, int &Value);
EASTRIVER_API bool __stdcall SetDayMaxConsumeTimes(HANDLE hPort, int Value);
EASTRIVER_API bool __stdcall ReadDayMaxConsumeTimes(HANDLE hPort, int &Value);
EASTRIVER_API bool __stdcall SetCardForegift(HANDLE hPort, int Value);
EASTRIVER_API bool __stdcall ReadCardForegift(HANDLE hPort, int &Value);
EASTRIVER_API bool __stdcall ReadLastCard(HANDLE hPort, char * CardNo);
EASTRIVER_API bool __stdcall ReadKeyboardPressKey(HANDLE hPort, char &key);
EASTRIVER_API bool __stdcall ReadDoorState(HANDLE hPort, bool &Opening);
EASTRIVER_API bool __stdcall SetDoorOpen(HANDLE hPort);
EASTRIVER_API bool __stdcall SetClockState(HANDLE hPort, int State);
EASTRIVER_API bool __stdcall SetAlarm(HANDLE hPort, bool Alarm);
EASTRIVER_API bool __stdcall GetCardOnReader(HANDLE hPort, int clock_id, PCardInfo Card);
EASTRIVER_API bool __stdcall RealReadCard(HANDLE hPort, int clock_id, PRealCardInfo Card);
EASTRIVER_API bool __stdcall RealReadRecord(HANDLE hPort, int clock_id, PRealRecordInfo ARecord);
EASTRIVER_API bool __stdcall ReadDoorStateDE(HANDLE hPort, int clock_id, char * DoorState);
EASTRIVER_API bool __stdcall SetDoorOpenDE(HANDLE hPort, int clock_id, char * DoorState);
EASTRIVER_API bool __stdcall SetLockOpenTimeLen(HANDLE hPort, int timeLen);
EASTRIVER_API bool __stdcall ReadLockOpenTimeLen(HANDLE hPort, int &timeLen);
EASTRIVER_API bool __stdcall ReadDoorOpenState(HANDLE hPort, int &state);
EASTRIVER_API bool __stdcall SetDoorOpenTimeoutAlarmState(HANDLE hPort, int state);
EASTRIVER_API bool __stdcall ControlOpenDoor(HANDLE hPort);
EASTRIVER_API bool __stdcall SetSecurityCode(HANDLE hPort, char * oldSecurity, char * newSecurity);
EASTRIVER_API bool __stdcall ReadClientCode(HANDLE hPort, int &ClientCode);
EASTRIVER_API bool __stdcall SetClientCode(HANDLE hPort, int ClientCode);
EASTRIVER_API bool __stdcall ReadICCard(HANDLE hPort, char * CardNo, char * CardName, int &Money, int &Times, int &Ver);
EASTRIVER_API bool __stdcall ReadAllICCard(HANDLE hPort, char * CardNo, char * CardName, int &Money, int &Times, int &GroupStation, int &GroupId, int &Ver);
EASTRIVER_API bool __stdcall WriteICCard(HANDLE hPort, char * CardNo, char * CardName, int Money, int Times, int Ver);
EASTRIVER_API bool __stdcall WriteAllICCard(HANDLE hPort, char * CardNo, char * CardName, int Money, int Times, int GroupStation, int GroupId, int Ver, bool MatchCard = false);
EASTRIVER_API bool __stdcall ReadICCardEx(HANDLE hPort, char * CardNo, char * CardName, char * pwd, int &Money, int &Times, int &day_consumed, int &day_times, int &c_month, int &c_day, int &c_flag, int &GroupStation, int &GroupId, int &CardStyle);
EASTRIVER_API bool __stdcall WriteICCardEx(HANDLE hPort, char * CardNo, char * CardName, char * pwd, int Money, int Times, int day_consumed, int day_times, int c_month, int c_day, int c_flag, int GroupStation, int GroupId, int CardStyle, bool MatchCard = false);
EASTRIVER_API bool __stdcall WriteMatchICCard(HANDLE hPort, char * CardNo, char * CardName, int Money, int Times, int Ver, bool blank);
EASTRIVER_API bool __stdcall WriteMatchICCardEx(HANDLE hPort, char * CardNo, char * CardName, char * Pwd, int Money, int Times, int day_consumed, int day_times, int c_month, int c_day, int c_flag, int CardStyle, bool blank);
EASTRIVER_API bool __stdcall ReadCardMessage(HANDLE hPort, char * cardMessage, int block);
EASTRIVER_API bool __stdcall WriteCardMessage(HANDLE hPort, char * cardMessage, int block);
EASTRIVER_API bool __stdcall ReadICCardPassWord(HANDLE hPort, char * PassWord, int block = 0xffffffff);
EASTRIVER_API bool __stdcall WriteICCardPassWord(HANDLE hPort, char * PassWord, int block = 0xffffffff);
EASTRIVER_API bool __stdcall ReadICCardSerialNo(HANDLE hPort, DWORD &SerialNo, bool LongSn = false);
EASTRIVER_API bool __stdcall WriteGroupByteStation(HANDLE hPort, int groupByte);
EASTRIVER_API bool __stdcall ReadGroupByteStation(HANDLE hPort, int &groupByte);
EASTRIVER_API bool __stdcall WriteGroupByteChecks(HANDLE hPort, char * groupChecks);
EASTRIVER_API bool __stdcall ReadGroupByteChecks(HANDLE hPort, char * groupChecks, int buffsize);
EASTRIVER_API bool __stdcall ReadCardManyGroupChecks(HANDLE hPort, char * GroupChecks, int buffersize, int block);
EASTRIVER_API bool __stdcall WriteCardManyGroupChecks(HANDLE hPort, char * GroupChecks, int block);
EASTRIVER_API bool __stdcall ReadRAMData(HANDLE hPort, int address, void * ValueData);
EASTRIVER_API bool __stdcall WriteRAMByte(HANDLE hPort, int address, BYTE Value);
EASTRIVER_API bool __stdcall ReadEEPROMData(HANDLE hPort, int address, void * ValueData);
EASTRIVER_API bool __stdcall WriteEERPOMByte(HANDLE hPort, int address, BYTE Value);
EASTRIVER_API bool __stdcall WriteEEPROMData(HANDLE hPort, int address, void * valueData);
EASTRIVER_API bool __stdcall ReadFlashPageData(HANDLE hPort, int flashPage, void * valueData);
EASTRIVER_API bool __stdcall ReadFlashData(HANDLE hPort, int address, void * valueData);
EASTRIVER_API bool __stdcall WriteFlashPageData(HANDLE hPort, int flashPage, void * valueData);
EASTRIVER_API bool __stdcall EnterTestMode(HANDLE hPort, int clock_id, bool HoldRate);
EASTRIVER_API bool __stdcall WriteBack(HANDLE hPort, char * Cmd, char * Buf);
EASTRIVER_API bool __stdcall WriteText(HANDLE hPort, char * Cmd, unsigned nNumberOfBytesToWrite = (unsigned)(0x0));
EASTRIVER_API bool __stdcall WaitOK(HANDLE hPort, char * Cmd, int Delay = 0x3e8);
EASTRIVER_API void __stdcall SetPortPara(HANDLE hPort, int BaudRate, BYTE ByteSize, BYTE Parity, BYTE StopBits);
EASTRIVER_API bool __stdcall GetAutoTranslateCardNo(void);
EASTRIVER_API void __stdcall SetAutoTranslateCardNo(bool Value);
EASTRIVER_API char __stdcall GetEndChar(void);
EASTRIVER_API void __stdcall SetEndChar(char Ch);
EASTRIVER_API bool __stdcall SetPortRWCardTimeOut(HANDLE hPort, int Value);
EASTRIVER_API bool __stdcall GetCmdVerify(void);
EASTRIVER_API void __stdcall SetCmdVerify(bool Value);
EASTRIVER_API int __stdcall GetCardStyle(void);
EASTRIVER_API bool __stdcall SetCardStyle(int style);
EASTRIVER_API DWORD __stdcall GetRecentErrCode(void);
#ifdef __cplusplus
}
#endif
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -