|
|
@@ -2,47 +2,42 @@
|
|
|
#define _PINPAD_USER_ERROR_CODE_H
|
|
|
#pragma once
|
|
|
|
|
|
-#define PinPad_UserErrorCode_Start 0x20600200
|
|
|
-#define PinPad_UserErrorCode_GetEncryptedText_Failed (PinPad_UserErrorCode_Start + 1) //获取密文输入失败
|
|
|
-#define PinPad_UserErrorCode_Open_RunCfgFile_Failed (PinPad_UserErrorCode_Start + 2) //打开运行时配置失败
|
|
|
-#define PinPad_UserErrorCode_Write_RunCfgFile_Failed (PinPad_UserErrorCode_Start + 3) //写运行时配置失败
|
|
|
-#define PinPad_UserErrorCode_PinPad_Instance_Is_Null (PinPad_UserErrorCode_Start + 4) //pinpad 实例为null
|
|
|
-#define PinPad_UserErrorCode_Create_PinPad_Instance_Failed (PinPad_UserErrorCode_Start + 5) //创建pinpad实例失败
|
|
|
-#define PinPad_UserErrorCode_Get_DevAdapter_Path_Failed (PinPad_UserErrorCode_Start + 6) //获取dll适配器路径失败
|
|
|
-#define PinPad_UserErrorCode_LogInfoAboutTerm (PinPad_UserErrorCode_Start + 7) //告警上送终端模块信息
|
|
|
-//#define PinPad_UserErrorCode_RootInfo (PinPad_UserErrorCode_Start + 8) //root信息
|
|
|
-#define PinPad_UserErrorCode_Release_Object_Failed (PinPad_UserErrorCode_Start + 9) //
|
|
|
-
|
|
|
-#define PinPad_UserErrorCode_KEY_LOST_SM (PinPad_UserErrorCode_Start + 10) //
|
|
|
-#define PinPad_UserErrorCode_PINPAD_KEY_LOST (PinPad_UserErrorCode_Start + 11) //
|
|
|
-
|
|
|
-#define PinPad_UserErrorCode_Create_Event_Failed (PinPad_UserErrorCode_Start + 12)
|
|
|
-#define PinPad_UserErrorCode_Open_Root_File_Failed (PinPad_UserErrorCode_Start + 13)
|
|
|
-#define PinPad_UserErrorCode_Load_Dll_File_Failed (PinPad_UserErrorCode_Start + 14)
|
|
|
-#define PinPad_UserErrorCode_GET_CDC_ADDR_Failed (PinPad_UserErrorCode_Start + 15)
|
|
|
-#define PinPad_UserErrorCode_GET_RDC_ADDR_Failed (PinPad_UserErrorCode_Start + 16)
|
|
|
-#define PinPad_UserErrorCode_Create_Object_Failed (PinPad_UserErrorCode_Start + 17)
|
|
|
-#define PinPad_UserErrorCode_Get_SoftWare_Pointer_Failed (PinPad_UserErrorCode_Start + 18)
|
|
|
-
|
|
|
-#define PinPad_UserErrorCode_PinPad_Not_SM (PinPad_UserErrorCode_Start + 19)
|
|
|
-#define PinPad_UserErrorCode_PinPad_Use_TestKey (PinPad_UserErrorCode_Start + 20)
|
|
|
-#define PinPad_UserErrorCode_PinPad_SM_First (PinPad_UserErrorCode_Start + 21)
|
|
|
-#define PinPad_UserErrorCode_PinPad_LoadKey_SMSN (PinPad_UserErrorCode_Start + 22)
|
|
|
-#define PinPad_UserErrorCode_PinPad_LoadKey_Clear_SMSN (PinPad_UserErrorCode_Start + 23)
|
|
|
-//#define PinPad_UserErrorCode_PinPad_LoadKey_3DesSN (PinPad_UserErrorCode_Start + 24)
|
|
|
-#define PinPad_UserErrorCode_PinPad_InfoAboutKey_Onboot (PinPad_UserErrorCode_Start + 25)
|
|
|
-#define PinPad_UserErrorCode_PinPad_CheckCode_Changed (PinPad_UserErrorCode_Start + 26)
|
|
|
-
|
|
|
-//GetEncryptText Error
|
|
|
-#define PinPad_UserErrorCode_PinPad_GetEncryptText_Get12Account_Error (PinPad_UserErrorCode_Start + 27)
|
|
|
-#define PinPad_UserErrorCode_PinPad_DevOpenFailed (PinPad_UserErrorCode_Start + 28)
|
|
|
-#define PinPad_UserErrorCode_PinPad_CkCode_While_Load_SM (PinPad_UserErrorCode_Start + 29)
|
|
|
-
|
|
|
-//LogWarn real root config
|
|
|
-#define PinPad_UserErrorCode_PinPad_Real_Root_Config (PinPad_UserErrorCode_Start + 31)
|
|
|
-#define PinPad_UserErrorCode_PinPad_GetPinBlock_Call (PinPad_UserErrorCode_Start + 32)
|
|
|
-#define PinPad_UserErrorCode_Unexpected_Exit (PinPad_UserErrorCode_Start + 33)
|
|
|
-#define PinPad_UserErrorCode_UnknownSMFlag (PinPad_UserErrorCode_Start + 34)
|
|
|
-#define PinPad_UserErrorCode_DevConnect_CostTime (PinPad_UserErrorCode_Start + 35)
|
|
|
-#define PinPad_UserErrorCode_NoPlainInput (PinPad_UserErrorCode_Start + 36)
|
|
|
+enum PinPad_UserErrorCode {
|
|
|
+ PinPad_UserErrorCode_GetEncryptedText_Failed = 0x20600201, //获取密文输入失败
|
|
|
+ PinPad_UserErrorCode_Open_RunCfgFile_Failed = 0x20600202, //打开运行时配置失败
|
|
|
+ PinPad_UserErrorCode_Write_RunCfgFile_Failed = 0x20600203, //写运行时配置失败
|
|
|
+ PinPad_UserErrorCode_PinPad_Instance_Is_Null = 0x20600204, //pinpad 实例为null
|
|
|
+ PinPad_UserErrorCode_Create_PinPad_Instance_Failed = 0x20600205, //创建pinpad实例失败
|
|
|
+ PinPad_UserErrorCode_Get_DevAdapter_Path_Failed = 0x20600206, //获取dll适配器路径失败
|
|
|
+ PinPad_UserErrorCode_LogInfoAboutTerm = 0x20600207, //告警上送终端模块信息
|
|
|
+ PinPad_UserErrorCode_WhileInGetInputReceivedAnotherGetInput = 0x20600208, //在获取输入时收到了新的获取输入请求
|
|
|
+ PinPad_UserErrorCode_Release_Object_Failed = 0x20600209,
|
|
|
+ PinPad_UserErrorCode_KEY_LOST_SM = 0x2060020A,
|
|
|
+ PinPad_UserErrorCode_PINPAD_KEY_LOST = 0x2060020B,
|
|
|
+ PinPad_UserErrorCode_Create_Event_Failed = 0x2060020C,
|
|
|
+ PinPad_UserErrorCode_Open_Root_File_Failed = 0x2060020D,
|
|
|
+ PinPad_UserErrorCode_Load_Dll_File_Failed = 0x2060020E,
|
|
|
+ PinPad_UserErrorCode_GET_CDC_ADDR_Failed = 0x2060020F,
|
|
|
+ PinPad_UserErrorCode_GET_RDC_ADDR_Failed = 0x20600210,
|
|
|
+ PinPad_UserErrorCode_Create_Object_Failed = 0x20600211,
|
|
|
+ PinPad_UserErrorCode_Get_SoftWare_Pointer_Failed = 0x20600212,
|
|
|
+ PinPad_UserErrorCode_PinPad_Not_SM = 0x20600213,
|
|
|
+ PinPad_UserErrorCode_PinPad_Use_TestKey = 0x20600214,
|
|
|
+ PinPad_UserErrorCode_PinPad_SM_First = 0x20600215,
|
|
|
+ PinPad_UserErrorCode_PinPad_LoadKey_SMSN = 0x20600216,
|
|
|
+ PinPad_UserErrorCode_PinPad_LoadKey_Clear_SMSN = 0x20600217,
|
|
|
+ PinPad_UserErrorCode_NotInGetInput = 0x20600218,
|
|
|
+ PinPad_UserErrorCode_PinPad_InfoAboutKey_Onboot = 0x20600219,
|
|
|
+ PinPad_UserErrorCode_PinPad_CheckCode_Changed = 0x2060021A,
|
|
|
+ PinPad_UserErrorCode_PinPad_GetEncryptText_Get12Account_Error = 0x2060021B,
|
|
|
+ PinPad_UserErrorCode_PinPad_DevOpenFailed = 0x2060021C,
|
|
|
+ PinPad_UserErrorCode_PinPad_CkCode_While_Load_SM = 0x2060021D,
|
|
|
+
|
|
|
+ PinPad_UserErrorCode_PinPad_Real_Root_Config = 0x2060021F,
|
|
|
+ PinPad_UserErrorCode_PinPad_GetPinBlock_Call = 0x20600220,
|
|
|
+ PinPad_UserErrorCode_Unexpected_Exit = 0x20600221,
|
|
|
+ PinPad_UserErrorCode_UnknownSMFlag = 0x20600222,
|
|
|
+ PinPad_UserErrorCode_DevConnect_CostTime = 0x20600223,
|
|
|
+ PinPad_UserErrorCode_NoPlainInput = 0x20600224,
|
|
|
+};
|
|
|
#endif //_PINPAD_USER_ERROR_CODE_H
|