?? sendcmd.h
字號:
// The following ifdef block is the standard way of creating macros which make exporting
// from a DLL simpler. All files within this DLL are compiled with the SENDCMD_EXPORTS
// symbol defined on the command line. this symbol should not be defined on any project
// that uses this DLL. This way any other project whose source files include this file see
// SENDCMD_API functions as being imported from a DLL, wheras this DLL sees symbols
// defined with this macro as being exported.
#ifdef SENDCMD_EXPORTS
#define SENDCMD_API __declspec(dllexport)
#else
#define SENDCMD_API __declspec(dllimport)
#endif
#define CardSet_User 12 //用戶卡卡座號(德卡)
#define CardSet_PSAM 14 //PSAM卡卡座號
#define cardset_user 0x00 //用戶卡卡座號(明華)
#define cardset_psam 0x11 //PSAM卡卡座號
#define cardset_User 0x01 //用戶卡卡座號(華大)
#define cardset_Psam 0x11 //PSAM卡卡座號
/*
// This class is exported from the SendCmd.dll
class SENDCMD_API CSendCmd {
public:
CSendCmd(void);
// TODO: add your methods here.
};
extern SENDCMD_API int nSendCmd;
SENDCMD_API int fnSendCmd(void);
*/
#ifdef __cplusplus
extern "C"
{
#endif
//無符號長整型轉(zhuǎn)換為字節(jié)數(shù)組(按小尾模式表示)
//ch:是轉(zhuǎn)換后的字節(jié)數(shù)組
//LG:是轉(zhuǎn)換前的長整型
void LONGTOBYTE(unsigned long LG,unsigned char * ch);
//字節(jié)數(shù)組(按小尾模式表示)轉(zhuǎn)換為無符號長整型//
//ch:是轉(zhuǎn)換前的字節(jié)數(shù)組
//LG:是轉(zhuǎn)換后的長整型(返回值)
int BYTETOLONG(unsigned char *ch);
/************************************************************
*功能:發(fā)送指令 用于德卡讀卡器 *
*輸入: h 讀卡器句柄 *
*cardset卡片類型 *
* cmd:發(fā)往cpu卡的指令指令 *
*輸出: resp:響應數(shù)據(jù) *
* resplen:響應數(shù)據(jù)長度 *
*返回:指令響應狀態(tài)碼 *
* *
*************************************************************/
WORD __stdcall SendCmd(HANDLE h
, __int16 CardSet
, unsigned char *cmd
, unsigned int cmdlen
, unsigned char *resp
, unsigned char *resplen);
/************************************************************
*功能:發(fā)送指令 用于明華讀卡器 *
*輸入: h 讀卡器句柄 *
*cardset卡片類型 *
* cmd:發(fā)往cpu卡的指令指令 *
*輸出: resp:響應數(shù)據(jù) *
* resplen:響應數(shù)據(jù)長度 *
*返回:指令響應狀態(tài)碼 *
* *
*************************************************************/
WORD _stdcall SENDCMD1(long h, unsigned char cardset,unsigned char *cmd, long cmdlen, unsigned char *resp, long * resplen);
/************************************************************
*功能:發(fā)送指令 用于華大讀卡器 *
*輸入: h 讀卡器句柄 *
*cardset卡片類型 *
* cmd:發(fā)往cpu卡的指令指令 *
*輸出: resp:響應數(shù)據(jù) *
* resplen:響應數(shù)據(jù)長度 *
*返回:指令響應狀態(tài)碼 *
* *
*************************************************************/
WORD _stdcall SENDCMD2(long h, unsigned char cardset,unsigned char *cmd, long cmdlen, unsigned char *resp, long * resplen);
#ifdef __cplusplus
}
#endif
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -