añado los ficheros de clases principales
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,331 @@
|
||||
#pragma once
|
||||
|
||||
#include "SmartCommon.dll.h"
|
||||
#include "SmartErrcodes.h"
|
||||
|
||||
|
||||
class CSMARTCommon
|
||||
{
|
||||
public:
|
||||
CSMARTCommon(void);
|
||||
public:
|
||||
~CSMARTCommon(void);
|
||||
|
||||
public:
|
||||
BOOL Load(LPTSTR dllFile);
|
||||
void Free();
|
||||
BOOL IsLoaded();
|
||||
BOOL IsOpened();
|
||||
int GetLastResult() { return m_nLastRes; }
|
||||
|
||||
public:
|
||||
int GetDeviceList(SMART70_PRINTER_LIST* pDevList);
|
||||
int ExGetDeviceList(SMART70_PRINTER_LIST* pDevList, int opt);
|
||||
int GetDeviceInfo(SMART70_PRINTER_INFO* pDevInfo, WCHAR* szdev, int ndevtype);
|
||||
int OpenDevice(WCHAR* szdev, int ndevtype);
|
||||
int ExOpenDevice(WCHAR* szdev, int ndevtype);
|
||||
int CloseDevice();
|
||||
|
||||
int GetStatus(BYTE mod, __int64* pstatus);
|
||||
int GetRibbonInfo(BYTE mod, int* pnType, int* pnRemain, int* pnMax);
|
||||
int GetConnectedDevices(SMART70_DEVCONNLIST* pConnList);
|
||||
int GetConnectedModules(SMART70_DEVCONNLIST* pConnList);
|
||||
int ICHContact(BYTE mod);
|
||||
int ICHDiscontact(BYTE mod);
|
||||
|
||||
int OpenDocument(LPCTSTR szCSDName);
|
||||
int CloseDocument();
|
||||
int ClearDocument(int page);
|
||||
int GetFieldCount(int* pnCount);
|
||||
int GetFieldName(int idx, LPTSTR szName, DWORD dwBufLen);
|
||||
int GetFieldValue(LPCTSTR szName, LPTSTR szValue);
|
||||
int SetFieldValue(LPCTSTR szName, LPCTSTR szValue);
|
||||
int DrawImage(BYTE page, BYTE panel, int x, int y, int cx, int cy, WCHAR* szImgPath, RECT* prcArea);
|
||||
int ExDrawImage(BYTE page, BYTE panel, int x, int y, int cx, int cy, int nScaleMethod, BYTE nAlign, WCHAR* szImgPath, RECT* prcArea);
|
||||
int DrawBitmap(BYTE page, BYTE panel, int x, int y, int cx, int cy, HBITMAP hbmp, RECT* prcArea);
|
||||
int DrawText(BYTE page, BYTE panel, int x, int y, WCHAR* szFontName, int nFontSize, BYTE nFontStyle, WCHAR* szText, RECT* prcArea);
|
||||
int DrawText2(BYTE page, BYTE panel, DT2INFO* pdt2info, WCHAR* szText);
|
||||
int DrawRect(BYTE page, BYTE panel, int x, int y, int cx, int cy, COLORREF col, RECT* prcArea);
|
||||
int DrawBarcode(BYTE page, BYTE panel, int x, int y, int cx, int cy, COLORREF col, RECT* prcArea, LPCTSTR szName, int nSize, LPCTSTR szData, LPCTSTR szPost);
|
||||
int GetBarcodeTypeCount(int* pnCount);
|
||||
int GetBarcodeTypeName(int idx, LPTSTR szName, int nBufLen);
|
||||
int GetPreviewBitmap(BYTE page, BITMAPINFO** const ppbi);
|
||||
int GetDocumentBitmap(BYTE page, BYTE panel, HBITMAP* phbmp);
|
||||
int GetUnitInfo(S70UNITINFO* pUnit, int dir);
|
||||
int GetFieldLinkedUnitInfo(WCHAR* szField, S70UNITINFO* pUnit, int dir);
|
||||
int SetUnitInfo(S70UNITINFO* pUnit);
|
||||
int GetUnitInfo2(UNITINFO2* pUnit, int dir);
|
||||
int GetFieldLinkedUnitInfo2(WCHAR* szField, UNITINFO2* pUnit, int dir);
|
||||
int SetUnitInfo2(UNITINFO2* pUnit);
|
||||
int GetUnitInfo2Direct(UNITINFO2* pUnit);
|
||||
int Print();
|
||||
int SetICG(int page, int nICG);
|
||||
int GetICG(int page, int* pnICG);
|
||||
|
||||
int RFPowerOn(int nDev, int* pnCardType, DWORD* pdwOutLen, BYTE* pOutBuf);
|
||||
int RFPowerOff(int nDev);
|
||||
int RFTransmit(int nDev, DWORD dwInLen, BYTE* pInBuf, DWORD* pdwOutLen, BYTE* pOutBuf);
|
||||
int RFPowerOn2(BYTE mod, DWORD* pdwOutLen, BYTE* pOutBuf);
|
||||
int RFPowerOff2(BYTE mod);
|
||||
int RFTransmit2(BYTE mod, DWORD dwInLen, BYTE* pInBuf, DWORD* pdwOutLen, BYTE* pOutBuf);
|
||||
int ICPowerOn(int nDev, DWORD* pdwOutLen, BYTE* pOutBuf);
|
||||
int ICPowerOff(int nDev);
|
||||
int ICTransmit(int nDev, DWORD dwInLen, BYTE* pInBuf, DWORD* pdwOutLen, BYTE* pOutBuf);
|
||||
int ICPowerOn2(BYTE mod, DWORD* pdwOutLen, BYTE* pOutBuf);
|
||||
int ICPowerOff2(BYTE mod);
|
||||
int ICTransmit2(BYTE mod, DWORD dwInLen, BYTE* pInBuf, DWORD* pdwOutLen, BYTE* pOutBuf);
|
||||
|
||||
int DCLOpenDevice(WCHAR* szdev, int ndevtype, int nOrientation);
|
||||
int DCLOpenDevice3(WCHAR* szDev, int port, BOOL bSSL, int nOrientation);
|
||||
int DCLExOpenDevice(WCHAR* szdev, int ndevtype, int nOrientation);
|
||||
int DCLCloseDevice();
|
||||
int DCLPrint(int nPrintSide);
|
||||
|
||||
|
||||
int ReadUserMemory(WCHAR* szPW, int addr, BYTE* btdata);
|
||||
int WriteUserMemory(WCHAR* szPW, int addr, BYTE* btdata);
|
||||
|
||||
|
||||
#ifdef _WIN64
|
||||
int ExSetConfig(int nID, __int64 nValue);
|
||||
int ExGetConfig(int nID, __int64* pnValue);
|
||||
#else//_WIN64
|
||||
int ExSetConfig(int nID, int nValue);
|
||||
int ExGetConfig(int nID, int* pnValue);
|
||||
#endif//_WIN64
|
||||
|
||||
|
||||
int RequestPreemption(WORD * pwPrmt);
|
||||
int ReleasePreemption(WORD wPrmt);
|
||||
int GetModuleState(BYTE mod, BYTE * pstate);
|
||||
int UpdateModuleState(BYTE mod);
|
||||
int IsModuleReady(BYTE mod, int* pnReadY);
|
||||
int IsReadyInsertJob(int* pnReadY);
|
||||
int ToggleManualMode();
|
||||
int UpdateCurrPrintJob(BYTE mod);
|
||||
int GetCurrPrintJob(BYTE mod, WORD* pjobid);
|
||||
int DeleteCurrPrintJob(BYTE mod);
|
||||
int CardIn(BYTE module, int dir, int opt);
|
||||
int CardOut(BYTE module, int dir, int opt);
|
||||
int CardMove(BYTE fromModule, BYTE toModule, int opt);
|
||||
int CardMove2(BYTE fromModule, BYTE fromOpt, BYTE toModule, BYTE toOpt, int cmdopt);
|
||||
int CardListMove(CARDMOVELIST * plist);
|
||||
int CardMoveQuick(BYTE mod, BYTE opt, int cmdopt);
|
||||
int CardPass(BYTE mod, BYTE opt, int cmdopt);
|
||||
int CardFlipPass(BYTE mod, BYTE opt, int cmdopt);
|
||||
int CardFlip(BYTE modfrom, BYTE modflip, BYTE modto);
|
||||
int CardFlip2(BYTE modfrom, BYTE modflip, BYTE modto);
|
||||
int CardFlipStay(BYTE modfrom, BYTE modflip);
|
||||
int Flip(BYTE mod, int opt, int value);
|
||||
int CardMoveSensor(BYTE module, int opt1, int value, int opt2);
|
||||
int CardMovePosition(BYTE module, int pos);
|
||||
int CardEject(BYTE module);
|
||||
int CardEjectBin(BYTE mod, BYTE modbin);
|
||||
int CardEject2(BYTE mod, int opt, BYTE modout, int optout);
|
||||
int SetEncConfig(BYTE module, int config, int value);
|
||||
int SetEncConfig2(BYTE module, int config, void* pbuf, int buflen);
|
||||
int GetEncConfig2(BYTE module, int config, void* pbuf, int* pbuflen);
|
||||
int SetEncBuffer(BYTE module, BYTE track, int nbuflen, WCHAR* szbuf);
|
||||
int WriteEncoder(BYTE module, BYTE track, BYTE opt);
|
||||
int ReadEncoder(BYTE module, BYTE track, BYTE opt);
|
||||
int FetchEncoder(BYTE module, BYTE track);
|
||||
int GetEncBuffer(BYTE module, BYTE track, int * pnbufsize, WCHAR* szbuf);
|
||||
int RunEncoder(BYTE module, BYTE track, int run, void* pbuf, int* pbuflen);
|
||||
int GetPrinterSettings(BYTE module, SMART70_DEVMODE* pdm);
|
||||
int SetPrinterSettings(BYTE module, SMART70_DEVMODE* pdm);
|
||||
int PrintDocument(int opt, int * reserved);
|
||||
int SetJobCallback(S70CBPROC pfnCB);
|
||||
int PrintStart(BYTE mod, int opt, int cmdopt);
|
||||
int GetJobInfo(JOBINFO* pjobinf);
|
||||
int GetJobInfoEx(JOBINFO_EX* pjobinf);
|
||||
|
||||
|
||||
|
||||
int NewJobDescriptor(HJOBD * phjd, SM70CB_ERROR pfncbErr);
|
||||
int FreeJobDescriptor(HJOBD hjd);
|
||||
int AddJobItem(HJOBD hjd, int ji_type, void * ji_param);
|
||||
int AddJobItemMove(HJOBD hjd, BYTE from_mid, BYTE from_opt, BYTE to_mid, BYTE to_opt);
|
||||
int AddJobItemFlip(HJOBD hjd, BYTE from_mid, BYTE flip_mid, BYTE to_mid, BYTE opt);
|
||||
int AddJobItemMagnetic(HJOBD hjd, BYTE mid, int coer, SM70CB_MAGNETIC pfncb);
|
||||
int AddJobItemContact(HJOBD hjd, BYTE mid, SM70CB_CONTACT pfncb);
|
||||
int AddJobItemContactless(HJOBD hjd, BYTE mid, SM70CB_CONTACTLESS pfncb);
|
||||
int AddJobItemScanImage(HJOBD hjd, BYTE mid, int dpi, int mode, int side, int opt, SM70CB_SCANIMAGE pfncb);
|
||||
int AddJobItemScanBarcode(HJOBD hjd, BYTE mid, int dpi, int mode, int side, int opt, SM70CB_SCANBARCODE pfncb);
|
||||
int AddJobItemPrint(HJOBD hjd, BYTE mid, int page, SM70CB_PRINT pfncb);
|
||||
int AddJobItemLaminate(HJOBD hjd, BYTE mid, int page, SM70CB_LAMINATE pfncb);
|
||||
int AddJobItemUser(HJOBD hjd, BYTE mid, int opt, SM70CB_USER pfncb);
|
||||
int InsertJob(HJOBD hjd, int * pjobid);
|
||||
int ExGetDevParam2(BYTE, WCHAR*, int, int*, int);
|
||||
int ExSetDevParam2(BYTE, WCHAR*, int, int*, int);
|
||||
|
||||
int MagWrite(BYTE mod, BOOL bT1, WCHAR* szT1, BOOL bT2, WCHAR* szT2, BOOL bT3, WCHAR* szT3, BOOL bJIS, WCHAR* szJIS);
|
||||
int MagRead(BYTE mod, BOOL bT1, WCHAR* szT1, int nT1, BOOL bT2, WCHAR* szT2, int nT2, BOOL bT3, WCHAR* szT3, int nT3, BOOL bJIS, WCHAR* szJIS, int nJIS);
|
||||
|
||||
// laser device manager
|
||||
int LaserConnect();
|
||||
int LaserDisconnect();
|
||||
int LaserCheckPort();
|
||||
|
||||
int LDrawLine (LLINE *pline, S70Laser *plaser, RECT* prc);
|
||||
int LDrawRect (LRECT *prect, S70Laser *plaser, RECT* prc);
|
||||
int LDrawOval (LOVAL *poval, S70Laser *plaser, RECT* prc);
|
||||
int LDrawRRect (LRRECT *prrc, S70Laser *plaser, RECT* prc);
|
||||
int LDrawText (LTEXT *ptext, S70Laser *plaser, RECT* prc);
|
||||
int LDrawBarcode (LBAR *pbar, S70Laser *plaser, RECT* prc);
|
||||
int LDrawImage (LIMG *pimg, S70Laser *plaser, RECT* prc);
|
||||
int LDrawBitmap (LBMP *pbmp, S70Laser *plaser, RECT* prc);
|
||||
|
||||
|
||||
private:
|
||||
HMODULE m_hDll;
|
||||
HSMART70 m_hSmart;
|
||||
int m_nLastRes; // return value of last command...
|
||||
|
||||
|
||||
|
||||
private:
|
||||
|
||||
Smart70_GetDeviceList m_pfn_GetDeviceList;
|
||||
Smart70_ExGetDeviceList m_pfn_ExGetDeviceList;
|
||||
Smart70_GetDeviceInfo m_pfn_GetDeviceInfo;
|
||||
Smart70_OpenDevice m_pfn_OpenDevice;
|
||||
Smart70_ExOpenDevice m_pfn_ExOpenDevice;
|
||||
Smart70_CloseDevice m_pfn_CloseDevice;
|
||||
Smart70DCL_OpenDevice m_pfn_DCLOpenDevice;
|
||||
Smart70DCL_OpenDevice3 m_pfn_DCLOpenDevice3;
|
||||
Smart70DCL_ExOpenDevice m_pfn_DCLExOpenDevice;
|
||||
Smart70DCL_CloseDevice m_pfn_DCLCloseDevice;
|
||||
Smart70DCL_Print m_pfn_DCLPrint;
|
||||
Smart70_GetRibbonInfo m_pfn_GetRibbonInfo;
|
||||
Smart70_GetConnectedDevices m_pfn_GetConnectedDevices;
|
||||
Smart70_GetConnectedModules m_pfn_GetConnectedModules;
|
||||
|
||||
Smart70_ICHContact m_pfn_ICHContact;
|
||||
Smart70_ICHDiscontact m_pfn_ICHDiscontact;
|
||||
|
||||
Smart70_OpenDocument m_pfn_OpenDocument;
|
||||
Smart70_CloseDocument m_pfn_CloseDocument;
|
||||
Smart70_ClearDocument m_pfn_ClearDocument;
|
||||
Smart70_GetPrinterSettings m_pfn_GetPrinterSettings;
|
||||
Smart70_SetPrinterSettings m_pfn_SetPrinterSettings;
|
||||
Smart70_ReadUserMemory m_pfn_ReadUserMemory;
|
||||
Smart70_WriteUserMemory m_pfn_WriteUserMemory;
|
||||
Smart70_GetFieldCount m_pfn_GetFieldCount;
|
||||
Smart70_GetFieldName m_pfn_GetFieldName;
|
||||
Smart70_GetFieldValue m_pfn_GetFieldValue;
|
||||
Smart70_SetFieldValue m_pfn_SetFieldValue;
|
||||
Smart70_DrawImage m_pfn_DrawImage;
|
||||
Smart70_ExDrawImage m_pfn_DrawImage2;
|
||||
Smart70_DrawBitmap m_pfn_DrawBitmap;
|
||||
Smart70_DrawText m_pfn_DrawText;
|
||||
Smart70_DrawText2 m_pfn_DrawText2;
|
||||
Smart70_DrawRect m_pfn_DrawRect;
|
||||
Smart70_DrawBarcode m_pfn_DrawBarcode;
|
||||
Smart70_GetBarcodeTypeCount m_pfn_GetBarcodeTypeCount;
|
||||
Smart70_GetBarcodeTypeName m_pfn_GetBarcodeTypeName;
|
||||
Smart70_SetICG m_pfn_SetICG;
|
||||
Smart70_GetICG m_pfn_GetICG;
|
||||
|
||||
Smart70_GetPreviewBitmap m_pfn_GetPreviewBitmap;
|
||||
Smart70_GetUnitInfo m_pfn_GetUnitInfo;
|
||||
Smart70_GetFieldLinkedUnitInfo m_pfn_GetFieldLinkedUnitInfo;
|
||||
Smart70_SetUnitInfo m_pfn_SetUnitInfo;
|
||||
Smart70_GetUnitInfo2 m_pfn_GetUnitInfo2;
|
||||
Smart70_GetFieldLinkedUnitInfo2 m_pfn_GetFieldLinkedUnitInfo2;
|
||||
Smart70_SetUnitInfo2 m_pfn_SetUnitInfo2;
|
||||
Smart70_GetUnitInfo2Direct m_pfn_GetUnitInfo2Direct;
|
||||
|
||||
Smart70_GetCountParam m_pfn_GetCountParam;
|
||||
Smart70_GetCountParamEx m_pfn_GetCountParamEx;
|
||||
Smart70_GetDisplayInfo m_pfn_GetDisplayInfo;
|
||||
Smart70_GetSystemInfo m_pfn_GetSystemInfo;
|
||||
|
||||
Smart70_RFPowerOn m_pfn_RFPowerOn;
|
||||
Smart70_RFPowerOff m_pfn_RFPowerOff;
|
||||
Smart70_RFTransmit m_pfn_RFTransmit;
|
||||
Smart70_RFPowerOn2 m_pfn_RFPowerOn2;
|
||||
Smart70_RFPowerOff2 m_pfn_RFPowerOff2;
|
||||
Smart70_RFTransmit2 m_pfn_RFTransmit2;
|
||||
Smart70_ICPowerOn m_pfn_ICPowerOn;
|
||||
Smart70_ICPowerOff m_pfn_ICPowerOff;
|
||||
Smart70_ICTransmit m_pfn_ICTransmit;
|
||||
Smart70_ICPowerOn2 m_pfn_ICPowerOn2;
|
||||
Smart70_ICPowerOff2 m_pfn_ICPowerOff2;
|
||||
Smart70_ICTransmit2 m_pfn_ICTransmit2;
|
||||
|
||||
Smart70_ExSetConfig m_pfn_ExSetConfig;
|
||||
Smart70_ExGetConfig m_pfn_ExGetConfig;
|
||||
|
||||
Smart70_RequestPreemption m_pfn_RequestPreemption;
|
||||
Smart70_ReleasePreemption m_pfn_ReleasePreemption;
|
||||
Smart70_GetModuleState m_pfn_GetModuleState;
|
||||
Smart70_UpdateModuleState m_pfn_UpdateModuleState;
|
||||
Smart70_GetStatus m_pfn_GetStatus;
|
||||
Smart70_IsModuleReady m_pfn_IsModuleReady;
|
||||
Smart70_IsReadyInsertJob m_pfn_IsReadyInsertJob;
|
||||
Smart70_ToggleManualMode m_pfn_ToggleManualMode;
|
||||
Smart70_UpdateCurrPrintJob m_pfn_UpdateCurrPrintJob;
|
||||
Smart70_GetCurrPrintJob m_pfn_GetCurrPrintJob;
|
||||
Smart70_DeleteCurrPrintJob m_pfn_DeleteCurrPrintJob;
|
||||
Smart70_CardIn m_pfn_CardIn;
|
||||
Smart70_CardOut m_pfn_CardOut;
|
||||
Smart70_CardMove m_pfn_CardMove;
|
||||
Smart70_CardMove2 m_pfn_CardMove2;
|
||||
Smart70_CardListMove m_pfn_CardListMove;
|
||||
Smart70_CardMoveQuick m_pfn_CardMoveQuick;
|
||||
Smart70_CardPass m_pfn_CardPass;
|
||||
Smart70_CardFlipPass m_pfn_CardFlipPass;
|
||||
Smart70_CardFlip m_pfn_CardFlip;
|
||||
Smart70_CardFlip2 m_pfn_CardFlip2;
|
||||
Smart70_CardFlipStay m_pfn_CardFlipStay;
|
||||
Smart70_Flip m_pfn_Flip;
|
||||
Smart70_CardMoveSensor m_pfn_CardMoveSensor;
|
||||
Smart70_CardMovePosition m_pfn_CardMovePosition;
|
||||
Smart70_CardEject m_pfn_CardEject;
|
||||
Smart70_CardEjectBin m_pfn_CardEjectBin;
|
||||
Smart70_CardEject2 m_pfn_CardEject2;
|
||||
Smart70_SetEncConfig m_pfn_SetEncConfig;
|
||||
Smart70_GetEncConfig2 m_pfn_GetEncConfig2;
|
||||
Smart70_SetEncConfig2 m_pfn_SetEncConfig2;
|
||||
Smart70_SetEncBuffer m_pfn_SetEncBuffer;
|
||||
Smart70_WriteEncoder m_pfn_WriteEncoder;
|
||||
Smart70_ReadEncoder m_pfn_ReadEncoder;
|
||||
Smart70_FetchEncoder m_pfn_FetchEncoder;
|
||||
Smart70_GetEncBuffer m_pfn_GetEncBuffer;
|
||||
Smart70_RunEncoder m_pfn_RunEncoder;
|
||||
Smart70_PrintDocument m_pfn_PrintDocument;
|
||||
Smart70_SetJobCallback m_pfn_SetJobCallback;
|
||||
Smart70_PrintStart m_pfn_PrintStart;
|
||||
Smart70_GetJobInfo m_pfn_GetJobInfo;
|
||||
Smart70_GetJobInfoEx m_pfn_GetJobInfoEx;
|
||||
Smart70_NewJobDescriptor m_pfn_NewJobDescriptor;
|
||||
Smart70_FreeJobDescriptor m_pfn_FreeJobDescriptor;
|
||||
Smart70_AddJobItem m_pfn_AddJobItem;
|
||||
Smart70_AddJobItemMove m_pfn_AddJobItemMove;
|
||||
Smart70_AddJobItemFlip m_pfn_AddJobItemFlip;
|
||||
Smart70_AddJobItemMagnetic m_pfn_AddJobItemMagnetic;
|
||||
Smart70_AddJobItemContact m_pfn_AddJobItemContact;
|
||||
Smart70_AddJobItemContactless m_pfn_AddJobItemContactless;
|
||||
Smart70_AddJobItemScanImage m_pfn_AddJobItemScanImage;
|
||||
Smart70_AddJobItemScanBarcode m_pfn_AddJobItemScanBarcode;
|
||||
Smart70_AddJobItemPrint m_pfn_AddJobItemPrint;
|
||||
Smart70_AddJobItemLaminate m_pfn_AddJobItemLaminate;
|
||||
Smart70_AddJobItemUser m_pfn_AddJobItemUser;
|
||||
Smart70_InsertJob m_pfn_InsertJob;
|
||||
Smart70_ExGetDevParam2 m_pfn_ExGetDevParam2;
|
||||
Smart70_ExSetDevParam2 m_pfn_ExSetDevParam2;
|
||||
Smart70_MagWrite m_pfn_MagWrite;
|
||||
Smart70_MagRead m_pfn_MagRead;
|
||||
Smart70_LaserConnect m_pfn_LaserConnect;
|
||||
Smart70_LaserDisconnect m_pfn_LaserDisconnect;
|
||||
Smart70_LaserCheckPort m_pfn_LaserCheckPort;
|
||||
Smart70_LDrawLine m_pfn_LDrawLine;
|
||||
Smart70_LDrawRect m_pfn_LDrawRect;
|
||||
Smart70_LDrawOval m_pfn_LDrawOval;
|
||||
Smart70_LDrawRRect m_pfn_LDrawRRect;
|
||||
Smart70_LDrawText m_pfn_LDrawText;
|
||||
Smart70_LDrawBarcode m_pfn_LDrawBarcode;
|
||||
Smart70_LDrawImage m_pfn_LDrawImage;
|
||||
Smart70_LDrawBitmap m_pfn_LDrawBitmap;
|
||||
|
||||
};
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,270 @@
|
||||
#pragma once
|
||||
|
||||
|
||||
|
||||
|
||||
#define SM_SUCCESS 0x00000000
|
||||
#define SM_FAIL 0xFFFFFFFF // -1
|
||||
|
||||
// error code definition
|
||||
#define SM_F_FOUNDNODEV 0x80000000 // there is no device to use.
|
||||
#define SM_F_INVALIDDEVIDX 0x80000001 // index of device is out of bound.
|
||||
#define SM_F_INVALIDBUFPOINTER 0x80000002 // invalid buffer pointer. (may be null)
|
||||
#define SM_F_NOTEXISTDEV 0x80000003 // not exist device. (not connected device)
|
||||
#define SM_F_INVALIDPARAM 0x80000004 // invalid parameter value.
|
||||
#define SM_F_DEVOPENFAILED 0x80000005 // device open failed. for more information, use GetLastError API.
|
||||
#define SM_F_DEVIO 0x80000006 // device io operation is failed. for more information, use GetLastError API.
|
||||
#define SM_F_FOUNDNODRV 0x80000007 // not found driver or cannot acquire DEVMODE from driver.
|
||||
#define SM_F_INVALIDHANDLE 0x80000008 // invalid handle value.
|
||||
#define SM_F_CARDISINSIDE 0x80000009 // card is already inside of device.
|
||||
#define SM_F_NOCARDISINSIDE 0x8000000A // no card is inside of device.
|
||||
#define SM_F_HOPPEREMPTY 0x8000000B // no cards are in hopper.
|
||||
#define SM_F_NOCARDONBOTH 0x8000000C // no card both hopper and inside of printer.
|
||||
#define SM_F_WAITTIMEOUT 0x8000000D // timeout occured while wait...
|
||||
#define SM_F_CASEOPEN 0x8000000E // case is opened.
|
||||
#define SM_F_ERRORSTATUS 0x8000000F // current status has error flag.
|
||||
#define SM_F_CARDIN 0x80000010 // card-in action is failed.
|
||||
#define SM_F_CARDOUT 0x80000011 // card-out action is failed.
|
||||
#define SM_F_CARDOUTBACK 0x80000012 // card-back-out action is failed.
|
||||
#define SM_F_MOVE2MAG 0x80000013 // card move (to magnetic) is failed.
|
||||
#define SM_F_MOVE2IC 0x80000014 // card move (to IC) is failed.
|
||||
#define SM_F_MOVE2RF 0x80000015 // card move (to RF) is failed.
|
||||
#define SM_F_MOVE2ROT 0x80000016 // card move (to Rotator) is failed.
|
||||
#define SM_F_MOVE2DEV 0x80000017 // card move (from Rotator) is failed.
|
||||
#define SM_F_MAGRW 0x80000018 // magnetic read/write is failed,
|
||||
#define SM_F_NOPRINTDATA 0x80000019 // printer failed to receive print data.
|
||||
#define SM_F_PRINT 0x8000001A // print failed.
|
||||
#define SM_F_SEEKRIBBON 0x8000001B // seek-ribbon is failed.
|
||||
#define SM_F_MOVERIBBON 0x8000001C // move-ribbon is failed.
|
||||
#define SM_F_EMPTYRIBBON 0x8000001D // ribbon is empty.
|
||||
#define SM_F_ICHUP 0x8000001E // ic-head up failed.
|
||||
#define SM_F_ICHDN 0x8000001F // ic-head down failed.
|
||||
#define SM_F_ROTTOP 0x80000020 // rotate to top is failed.
|
||||
#define SM_F_ROTBOTTOM 0x80000021 // rotate to bottom is failed.
|
||||
#define SM_F_REQNOMAGTRACK 0x80000022 // requested no magnetic track.
|
||||
#define SM_F_REQMULTIMAGTRACK 0x80000023 // requested two or more magnetic tracks in XXXGetBuffer function.
|
||||
#define SM_F_FILENOTFOUND 0x80000024 // file not found.
|
||||
#define SM_F_FIELDNOTFOUND 0x80000025 // field is not exist.
|
||||
#define SM_F_IMAGELOAD 0x80000026 // failed to load image.
|
||||
#define SM_F_CREATEDC 0x80000027 // dc creation is failed.
|
||||
#define SM_F_VERIFYDRV 0x80000028 // driver verification is failed. may the driver is not ours.
|
||||
#define SM_F_SPOOLING 0x80000029 // failed to make spool data. (includes StartDoc, StartPage, EndPage and EndDoc)
|
||||
#define SM_F_DEVNOTOPENED 0x8000002A // request access to ic/rf module without opening the printer device.
|
||||
#define SM_F_USEDBYOTHER 0x8000002B // usb is temporarily blocked by other.
|
||||
#define SM_F_SOCKETCREATE 0x8000002C // socket creation failed.
|
||||
#define SM_F_SOCKETCONNECT 0x8000002D // socket connection failed.
|
||||
#define SM_F_SSLINIT 0x8000002E // SSL initialization failed.
|
||||
#define SM_F_SSLCREATE 0x8000002F // SSL creation failed.
|
||||
#define SM_F_SSLCONNECT 0x80000030 // SSL connection is failed.
|
||||
#define SM_F_RESERVED 0x80000031 // host is already reserved status.
|
||||
#define SM_F_INVALIDSOCKET 0x80000032 // socket fd is invalid.
|
||||
#define SM_F_LESSSENDED 0x80000033 // packet is sended less than requested.
|
||||
#define SM_F_LESSRECVED 0x80000034 // packet is received less than requested.
|
||||
#define SM_F_SOCKETERROR 0x80000035 // socket error occured. for more information, use WSAGetLastError API.
|
||||
#define SM_F_INVALIDPACKET 0x80000036 // packet is not valid. (include signature is not matched or else ...)
|
||||
#define SM_F_PACKETSEQDIFFER 0x80000037 // packet sequence/id is not equaled when receive.
|
||||
#define SM_F_PACKETFLAGNOREPLY 0x80000038 // reply flag is not setted on received packet.
|
||||
#define SM_F_PACKETFLAGHEADER 0x80000039 // sent packet header is incorrect.
|
||||
#define SM_F_PACKETFLAGARGUMENT 0x8000003A // argument is not valid on sent packet.
|
||||
#define SM_F_PACKETFLAGEXE 0x8000003B // execution error flag is setted.
|
||||
#define SM_F_PACKETFLAGBADCMD 0x8000003C // bad command flag is setted.
|
||||
#define SM_F_PACKETFLAGINIT 0x8000003D // ...
|
||||
#define SM_F_PACKETFLAGHANDLE 0x8000003E // invalid handle is given.
|
||||
#define SM_F_FILEOPEN 0x8000003F // file open failed...
|
||||
#define SM_F_FILEREAD 0x80000040 // read from file is failed.
|
||||
#define SM_F_NOTSUPPORTYET 0x80000041 // not support yet...
|
||||
#define SM_F_INSUFFICIENTBUF 0x80000042 // insufficient buffer.
|
||||
|
||||
// IC error area...
|
||||
#define SM_F_ICESTABLISH 0x80000043 // SCardEstablish failed. for more information, use GetLastError.
|
||||
#define SM_F_ICLISTREADER 0x80000044 // SCardListReaders failed. for more information, use GetLastError.
|
||||
#define SM_F_ICCONNECT 0x80000045 // SCardConnect failed. for more information, use GetLastError.
|
||||
#define SM_F_ICGETSTATUS 0x80000046 // SCardStatus failed. for more information, use GetLastError.
|
||||
#define SM_F_ICDISCONNECT 0x80000047 // SCardDisconenct failed. for more information, use GetLastError.
|
||||
#define SM_F_ICRELEASE 0x80000048 // SCardReleaseContext failed. for more information, use GetLastError.
|
||||
|
||||
// RF error area...
|
||||
#define SM_F_RFINVALIDSETTING 0x80000049 // setting value is incorrect. (i.e., RF Port, ...)
|
||||
#define SM_F_RFOPEN 0x8000004A // port open failed.
|
||||
#define SM_F_RFCONNECT 0x8000004B // connect failed.
|
||||
// 0x80000050 NOTE: LEAVE THIS. PLEASE.
|
||||
#define SM_F_RFALREADYOPENED 0x80000051 // open the port that already opened.
|
||||
#define SM_F_RFOPENFAIL 0x80000052 // port open failed.
|
||||
#define SM_F_RFINVALIDCOMMPORT 0x80000053 // invalid COM port number.
|
||||
#define SM_F_RFFAILGETCOMMSTATE 0x80000054 // error of communication setting.
|
||||
#define SM_F_RFFAILSETCOMMSTATE 0x80000055 // error of communication setting.
|
||||
#define SM_F_RFFAILCOMMIOTHREAD 0x80000056 // error of communication setting.
|
||||
#define SM_F_RFPARAMETER 0x80000057 // incorrect function parameter.
|
||||
#define SM_F_RFCOMMSTATE 0x80000150 // .
|
||||
#define SM_F_RFCOMMSTATEPROCESS 0x80000151 // running non-blocking mode works.
|
||||
#define SM_F_RFCOMMSTATEFINISH 0x8000015F // finished non-blocking mode works.
|
||||
#define SM_F_RFCOMMSTATEERROR 0x800001D0 // .
|
||||
#define SM_F_RFCOMMSTATEERRORWRITE 0x800001D1 // data transmition error.
|
||||
#define SM_F_RFCOMMSTATEERRORFORMAT 0x800001D2 // invalid received data format.
|
||||
#define SM_F_RFCOMMSTATEERRORLENGTH 0x800001D3 // incorrect data length of received data length.
|
||||
#define SM_F_RFCOMMSTATEERRORLRC 0x800001D4 // error of received data's LRC.
|
||||
#define SM_F_RFCOMMSTATEERRORTIMEOUT 0x800001D5 // receiving timeout.
|
||||
|
||||
// additional error codes...
|
||||
#define SM_F_INVALIDNAME 0x80000200 // invalid or not supporting barcode name is given.
|
||||
#define SM_F_ICDLLLOADFAILED 0x80000201 // ic(contact smartcard) dll load failed. // DEPRECATED.
|
||||
#define SM_F_RFDLLLOADFAILED 0x80000202 // rf(contactless smartcard) dll load failed. // DEPRECATED.
|
||||
#define SM_F_OBJECTNOTFOUND 0x80000203 // object is not exist.
|
||||
#define SM_F_SUBDLLLOADFAILED 0x80000204 // sub-dll load failed... (ie., devconlib.dll, PIR_D02B.dll, ...)
|
||||
#define SM_F_CONFIGFILEFAILED 0x80000205 // configuration file load/save failed...
|
||||
|
||||
#define SM_F_OVERHEATED 0x80000206 // thermal-head is overheated...
|
||||
#define SM_F_NOPRINTHREAD 0x80000207 // no thermal-head
|
||||
|
||||
#define SM_F_LOWERVERSION 0x80000208 // SmartCommCl is lower than SmartCommon
|
||||
#define SM_F_HIGHERVERSION 0x80000209 // SmartCommCl is higher than SmartCommon
|
||||
#define SM_F_OLDSERVER 0x8000020A // SmartCommonService is old.
|
||||
#define SM_F_VERSIONNOTMATCH 0x8000020B // version is not matched.
|
||||
|
||||
#define SM_F_CHANGEPASSWORD 0x8000020C // changing root/user password is failed.
|
||||
#define SM_F_UNLOCK 0x8000020D // unlock is failed.
|
||||
#define SM_F_LOCK 0x8000020E // lock is failed.
|
||||
#define SM_F_FAILEDTOSET 0x8000020F // failed to printer set....
|
||||
|
||||
#define SM_F_FILESIZEZERO 0x80000220 // required file size is 0.
|
||||
#define SM_F_DEPRECATED 0x80000221 // that function is deprecated.
|
||||
#define SM_F_SERIALNORESPONSE 0x80000222 // not responding for serial command...
|
||||
|
||||
|
||||
#define SM_F_NETAUTHFAIL 0x80000300 // Network Authentification failed.
|
||||
#define SM_F_NETREBOOTERROR 0x80000301 // Network Reboot command failed.
|
||||
#define SM_F_NETRELOADERROR 0x80000302 // Network Reload command failed.
|
||||
#define SM_F_NETRESETERROR 0x80000303 // Network Reset command failed.
|
||||
#define SM_F_NETUPGRADEERROR 0x80000304 // Network upgrade command failed.
|
||||
#define SM_F_NETGETSYSCFGERROR 0x80000305 // Network Get System Config command failed.
|
||||
#define SM_F_NETSETSYSCFGERROR 0x80000306 // Network Set System Config command failed.
|
||||
#define SM_F_NETGETSVCCFGERROR 0x80000307 // Network Get Service Config command failed.
|
||||
#define SM_F_NETSETSVCCFGERROR 0x80000308 // Network Set Service Config command failed.
|
||||
#define SM_F_NETLISTUSERERROR 0x80000309 // Network List User command failed.
|
||||
#define SM_F_NETADDUSERERROR 0x8000030A // Network Add User command failed.
|
||||
#define SM_F_NETDELUSERERROR 0x8000030B // Network Delete User command failed.
|
||||
#define SM_F_NETPASSWDUSERERROR 0x8000030C // Network Change User Password command failed.
|
||||
|
||||
|
||||
// SMART-70 Extended Error Codes...
|
||||
#define SM_F_PREEMPTION 0x80000350 // Preemption Failed. Other Program Already have the Preemption.
|
||||
#define SM_F_CARDMOVE 0x80000351 // Card Move (among the Modules) is failed.
|
||||
#define SM_F_MOVEPOSITION 0x80000352 // Card Positining Move is failed.
|
||||
#define SM_F_SETENCCONFIG 0x80000353 // Change Encoder Config is failed.
|
||||
#define SM_F_ENCODING 0x80000354 // Encoding failed.
|
||||
#define SM_F_NOTEXISTMODULE 0x80000355 // Module does not exist.
|
||||
#define SM_F_MODULERESERVED 0x80000356 // Module is reserved by other job.
|
||||
#define SM_F_MODULEOCUPIED 0x80000357 // Module is ocupied by other job.
|
||||
#define SM_F_NOTEXISTJOB 0x80000358 // Specified Job Id does not exit. Maybe Wrong Job id or finished already.
|
||||
#define SM_F_MODULEBUSY 0x80000359 // Module is busy
|
||||
#define SM_F_MODULEHASERROR 0x8000035A // Module has error
|
||||
#define SM_F_CANCELBYUSER 0x8000035B // Printing Job is Canceled by User.
|
||||
#define SM_F_EMPTYDATA 0x8000035C // There is No Encoded Data.
|
||||
#define SM_F_LAMINATE 0x8000035D // error while laminating
|
||||
#define SM_W_HOLDINGPRINTDATA 0x8000035E // not an error. have print data but not printing.
|
||||
#define SM_F_INVALIDMODULEID 0x8000035F // invalid module id.
|
||||
#define SM_F_STACKERFULL 0x80000360 // stacker is full.
|
||||
#define SM_F_MODULEWEAKRESERVED 0x80000361 // Module is weak-reserved by other job.
|
||||
#define SM_F_OBJINFORBIDDENAREA 0x80000362 // laser engraving object(s) is(are) in not allowed zone.
|
||||
|
||||
#define SM_F_UNKNOWNCMD 0x80000381 // given command is unknown.
|
||||
|
||||
// 485 Packet Error Code
|
||||
#define SM7_F_PACKETINVALID 0x80000400 // packet is invalid (not our format).
|
||||
#define SM7_F_PACKETSHORT 0x80000401 // data
|
||||
#define SM7_F_PACKETCRC 0x80000402 // different crc
|
||||
#define SM7_F_EMPTYHOPPER 0x80000403 // hopper is empty
|
||||
#define SM7_F_ERRORLASTCMD 0x80000404 // error came from last command...
|
||||
|
||||
|
||||
// smartcard error codes...
|
||||
#define SM_F_SCARD_F_INTERNAL_ERROR SCARD_F_INTERNAL_ERROR // 0x80100001 // An internal consistency check failed.
|
||||
#define SM_F_SCARD_E_CANCELLED SCARD_E_CANCELLED // 0x80100002 // The action was cancelled by an SCardCancel request.
|
||||
#define SM_F_SCARD_E_INVALID_HANDLE SCARD_E_INVALID_HANDLE // 0x80100003 // The supplied handle was invalid.
|
||||
#define SM_F_SCARD_E_INVALID_PARAMETER SCARD_E_INVALID_PARAMETER // 0x80100004 // One or more of the supplied parameters could not be properly interpreted.
|
||||
#define SM_F_SCARD_E_INVALID_TARGET SCARD_E_INVALID_TARGET // 0x80100005 // Registry startup information is missing or invalid.
|
||||
#define SM_F_SCARD_E_NO_MEMORY SCARD_E_NO_MEMORY // 0x80100006 // Not enough memory available to complete this command.
|
||||
#define SM_F_SCARD_F_WAITED_TOO_LONG SCARD_F_WAITED_TOO_LONG // 0x80100007 // An internal consistency timer has expired.
|
||||
#define SM_F_SCARD_E_INSUFFICIENT_BUFFER SCARD_E_INSUFFICIENT_BUFFER // 0x80100008 // The data buffer to receive returned data is too small for the returned data.
|
||||
#define SM_F_SCARD_E_UNKNOWN_READER SCARD_E_UNKNOWN_READER // 0x80100009 // The specified reader name is not recognized.
|
||||
#define SM_F_SCARD_E_TIMEOUT SCARD_E_TIMEOUT // 0x8010000A // The user-specified timeout value has expired.
|
||||
#define SM_F_SCARD_E_SHARING_VIOLATION SCARD_E_SHARING_VIOLATION // 0x8010000B // The smart card cannot be accessed because of other connections outstanding.
|
||||
#define SM_F_SCARD_E_NO_SMARTCARD SCARD_E_NO_SMARTCARD // 0x8010000C // The operation requires a Smart Card, but no Smart Card is currently in the device.
|
||||
#define SM_F_SCARD_E_UNKNOWN_CARD SCARD_E_UNKNOWN_CARD // 0x8010000D // The specified smart card name is not recognized.
|
||||
#define SM_F_SCARD_E_CANT_DISPOSE SCARD_E_CANT_DISPOSE // 0x8010000E // The system could not dispose of the media in the requested manner.
|
||||
#define SM_F_SCARD_E_PROTO_MISMATCH SCARD_E_PROTO_MISMATCH // 0x8010000F // The requested protocols are incompatible with the protocol currently in use with the smart card.
|
||||
#define SM_F_SCARD_E_NOT_READY SCARD_E_NOT_READY // 0x80100010 // The reader or smart card is not ready to accept commands.
|
||||
#define SM_F_SCARD_E_INVALID_VALUE SCARD_E_INVALID_VALUE // 0x80100011 // One or more of the supplied parameters values could not be properly interpreted.
|
||||
#define SM_F_SCARD_E_SYSTEM_CANCELLED SCARD_E_SYSTEM_CANCELLED // 0x80100012 // The action was cancelled by the system, presumably to log off or shut down.
|
||||
#define SM_F_SCARD_F_COMM_ERROR SCARD_F_COMM_ERROR // 0x80100013 // An internal communications error has been detected.
|
||||
#define SM_F_SCARD_F_UNKNOWN_ERROR SCARD_F_UNKNOWN_ERROR // 0x80100014 // An internal error has been detected, but the source is unknown.
|
||||
#define SM_F_SCARD_E_INVALID_ATR SCARD_E_INVALID_ATR // 0x80100015 // An ATR obtained from the registry is not a valid ATR string.
|
||||
#define SM_F_SCARD_E_NOT_TRANSACTED SCARD_E_NOT_TRANSACTED // 0x80100016 // An attempt was made to end a non-existent transaction.
|
||||
#define SM_F_SCARD_E_READER_UNAVAILABLE SCARD_E_READER_UNAVAILABLE // 0x80100017 // The specified reader is not currently available for use.
|
||||
#define SM_F_SCARD_P_SHUTDOWN SCARD_P_SHUTDOWN // 0x80100018 // The operation has been aborted to allow the server application to exit.
|
||||
#define SM_F_SCARD_E_PCI_TOO_SMALL SCARD_E_PCI_TOO_SMALL // 0x80100019 // The PCI Receive buffer was too small.
|
||||
#define SM_F_SCARD_E_READER_UNSUPPORTED SCARD_E_READER_UNSUPPORTED // 0x8010001A // The reader driver does not meet minimal requirements for support.
|
||||
#define SM_F_SCARD_E_DUPLICATE_READER SCARD_E_DUPLICATE_READER // 0x8010001B // The reader driver did not produce a unique reader name.
|
||||
#define SM_F_SCARD_E_CARD_UNSUPPORTED SCARD_E_CARD_UNSUPPORTED // 0x8010001C // The smart card does not meet minimal requirements for support.
|
||||
#define SM_F_SCARD_E_NO_SERVICE SCARD_E_NO_SERVICE // 0x8010001D // The Smart card resource manager is not running.
|
||||
#define SM_F_SCARD_E_SERVICE_STOPPED SCARD_E_SERVICE_STOPPED // 0x8010001E // The Smart card resource manager has shut down.
|
||||
#define SM_F_SCARD_E_UNEXPECTED SCARD_E_UNEXPECTED // 0x8010001F // An unexpected card error has occurred.
|
||||
#define SM_F_SCARD_E_ICC_INSTALLATION SCARD_E_ICC_INSTALLATION // 0x80100020 // No Primary Provider can be found for the smart card.
|
||||
#define SM_F_SCARD_E_ICC_CREATEORDER SCARD_E_ICC_CREATEORDER // 0x80100021 // The requested order of object creation is not supported.
|
||||
#define SM_F_SCARD_E_UNSUPPORTED_FEATURE SCARD_E_UNSUPPORTED_FEATURE // 0x80100022 // This smart card does not support the requested feature.
|
||||
#define SM_F_SCARD_E_DIR_NOT_FOUND SCARD_E_DIR_NOT_FOUND // 0x80100023 // The identified directory does not exist in the smart card.
|
||||
#define SM_F_SCARD_E_FILE_NOT_FOUND SCARD_E_FILE_NOT_FOUND // 0x80100024 // The identified file does not exist in the smart card.
|
||||
#define SM_F_SCARD_E_NO_DIR SCARD_E_NO_DIR // 0x80100025 // The supplied path does not represent a smart card directory.
|
||||
#define SM_F_SCARD_E_NO_FILE SCARD_E_NO_FILE // 0x80100026 // The supplied path does not represent a smart card file.
|
||||
#define SM_F_SCARD_E_NO_ACCESS SCARD_E_NO_ACCESS // 0x80100027 // Access is denied to this file.
|
||||
#define SM_F_SCARD_E_WRITE_TOO_MANY SCARD_E_WRITE_TOO_MANY // 0x80100028 // The smartcard does not have enough memory to store the information.
|
||||
#define SM_F_SCARD_E_BAD_SEEK SCARD_E_BAD_SEEK // 0x80100029 // There was an error trying to set the smart card file object pointer.
|
||||
#define SM_F_SCARD_E_INVALID_CHV SCARD_E_INVALID_CHV // 0x8010002A // The supplied PIN is incorrect.
|
||||
#define SM_F_SCARD_E_UNKNOWN_RES_MNG SCARD_E_UNKNOWN_RES_MNG // 0x8010002B // An unrecognized error code was returned from a layered component.
|
||||
#define SM_F_SCARD_E_NO_SUCH_CERTIFICATE SCARD_E_NO_SUCH_CERTIFICATE // 0x8010002C // The requested certificate does not exist.
|
||||
#define SM_F_SCARD_E_CERTIFICATE_UNAVAILABLE SCARD_E_CERTIFICATE_UNAVAILABLE // 0x8010002D // The requested certificate could not be obtained.
|
||||
#define SM_F_SCARD_E_NO_READERS_AVAILABLE SCARD_E_NO_READERS_AVAILABLE // 0x8010002E // Cannot find a smart card reader.
|
||||
#define SM_F_SCARD_E_COMM_DATA_LOST SCARD_E_COMM_DATA_LOST // 0x8010002F // A communications error with the smart card has been detected. Retry the operation.
|
||||
#define SM_F_SCARD_E_NO_KEY_CONTAINER SCARD_E_NO_KEY_CONTAINER // 0x80100030 // The requested key container does not exist on the smart card.
|
||||
#define SM_F_SCARD_E_SERVER_TOO_BUSY SCARD_E_SERVER_TOO_BUSY // 0x80100031 // The Smart card resource manager is too busy to complete this operation.
|
||||
|
||||
// These are warning codes.
|
||||
|
||||
#define SM_F_SCARD_W_UNSUPPORTED_CARD SCARD_W_UNSUPPORTED_CARD // 0x80100065
|
||||
#define SM_F_SCARD_W_UNRESPONSIVE_CARD SCARD_W_UNRESPONSIVE_CARD // 0x80100066 // The smart card is not responding to a reset.
|
||||
#define SM_F_SCARD_W_UNPOWERED_CARD SCARD_W_UNPOWERED_CARD // 0x80100067 // Power has been removed from the smart card, so that further communication is not possible.
|
||||
#define SM_F_SCARD_W_RESET_CARD SCARD_W_RESET_CARD // 0x80100068 // The smart card has been reset, so any shared state information is invalid.
|
||||
#define SM_F_SCARD_W_REMOVED_CARD SCARD_W_REMOVED_CARD // 0x80100069 // The smart card has been removed, so that further communication is not possible.
|
||||
#define SM_F_SCARD_W_SECURITY_VIOLATION SCARD_W_SECURITY_VIOLATION // 0x8010006A // Access was denied because of a security violation.
|
||||
#define SM_F_SCARD_W_WRONG_CHV SCARD_W_WRONG_CHV // 0x8010006B // The card cannot be accessed because the wrong PIN was presented.
|
||||
#define SM_F_SCARD_W_CHV_BLOCKED SCARD_W_CHV_BLOCKED // 0x8010006C // The card cannot be accessed because the maximum number of PIN entry attempts has been reached.
|
||||
#define SM_F_SCARD_W_EOF SCARD_W_EOF // 0x8010006D // The end of the smart card file has been reached.
|
||||
#define SM_F_SCARD_W_CANCELLED_BY_USER SCARD_W_CANCELLED_BY_USER // 0x8010006E // The action was cancelled by the user.
|
||||
#define SM_F_SCARD_W_CARD_NOT_AUTHENTICATED SCARD_W_CARD_NOT_AUTHENTICATED // 0x8010006F // No PIN was presented to the smart card.
|
||||
|
||||
|
||||
|
||||
// SMART-70X error codes.
|
||||
|
||||
#define SL_SUCCESS SM_SUCCESS
|
||||
#define SL_F_EZCADRUN 1 // Find EZCAD running
|
||||
#define SL_F_NOFINDCFGFILE 2 // Can not find EZCAD.CFG
|
||||
#define SL_F_FAILEDOPEN 3 // Open LMC1 board failed
|
||||
#define SL_F_NODEVICE 4 // Can not find valid lmc1 device
|
||||
#define SL_F_HARDVER 5 // Lmc1¡¯s version is error.
|
||||
#define SL_F_DEVCFG 6 // Can not find configuration files
|
||||
#define SL_F_STOPSIGNAL 7 // Alarm signal
|
||||
#define SL_F_USERSTOP 8 // User stops
|
||||
#define SL_F_UNKNOW 9 // Unknown error
|
||||
#define SL_F_OUTTIME 10 // Overtime
|
||||
#define SL_F_NOINITIAL 11 // Un-initialized
|
||||
#define SL_F_READFILE 12 // Read file error
|
||||
#define SL_F_OWENWNDNULL 13 // Window handle is NULL
|
||||
#define SL_F_NOFINDFONT 14 // Can not find designated font
|
||||
#define SL_F_PENNO 15 // Wrong pen number
|
||||
#define SL_F_NOTTEXT 16 // Object is not text
|
||||
#define SL_F_SAVEFILE 17 // Save file failed
|
||||
#define SL_F_NOFINDENT 18 // Can not find designated object
|
||||
#define SL_F_STATUE 19 // Can not run the operation in current state
|
||||
#define SL_F_LOADLIBRARY 40 // Can not load laser library
|
||||
#define SL_F_IMAGEMAKE 43 // Image Make Error
|
||||
Reference in New Issue
Block a user