53 lines
2.3 KiB
C
53 lines
2.3 KiB
C
#ifndef _AKERROR_H_
|
|
#define _AKERROR_H_
|
|
|
|
|
|
#define MAX_STRING_LENGTH 256
|
|
|
|
#define AK_SUCCESS 0
|
|
#define AK_FAIL -1
|
|
|
|
|
|
INT AK_GerErrorReason(INT code, TCHAR *reason, int length);
|
|
int AK_SetLastError(int code);
|
|
int AK_GetLastError(int *pRetCode);
|
|
|
|
|
|
|
|
#define AKERROR_MSG_FILECREATEFAIL "/*685BBA161DAF48DF32B7F1C96A709D*/" // CreateFile fail
|
|
#define AKERROR_MSG_INVALID_PARAMETER "/*6247A91605A36A960EB3A3CE667C8540B6*/" // Invalid Parameter
|
|
#define AKERROR_MSG_UNKNOWNERROR "/*7E47B41906BD60961BA0A3C079*/" // Unknown Error
|
|
#define AKERROR_MSG_INVALIDCALLBACK "/*6247A91605A36A961DB3BDC36978924E828575743CBC656F*/" // Invalid CallbackFunction
|
|
#define AKERROR_MSG_INVALIDVERSION "/*7D4CAD0400A5609610BDA58F46788546AC957F*/" // Version Not Matched
|
|
#define AKERROR_MSG_INITSIG_FAIL "/*6247B603498661D73A81B8C865788550B6953B5129BC66*/" // Init LoadSignature Fail
|
|
#define AKERROR_MSG_INITANTIHOOK_FAIL "/*6247B603498B60C237BABEC06039B744AD9C*/" // Init Antihook Fail
|
|
#define AKERROR_MSG_INITLOGFAIL "/*6247B603498661D17E94B0C667*/" // Init Log Fail
|
|
#define AKERROR_MSG_MEMALLOCFAIL "/*6A45B3180AAB7ADF31BCF1E26E749E57BDD05D7621B9*/" // Allocation Memory Fail
|
|
#define AKERROR_MSG_AKCRYPTO_FAIL "/*6A629C0510BA7AD97E94B0C667*/" // AKCrypto Fail
|
|
#define AKERROR_MSG_TERMINATECLIENT "/*7F4CB21E07AB7AD37E91BDC66E778505AA9F6C36*/" // Teminate Client now!
|
|
#define AKERROR_MSG_APICALLFAIL "/*7C40B11306BD7DF70E9BF1CC6A759D05A291727B*/" // WindowsAPI call fail
|
|
#define AKERROR_MSG_TOUCHFAIL "/*6A628B181CA9669638B3B8C3*/" // AKTouch fail
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#define AKERROR_DEFAULT 100
|
|
#define AKERROR_FILECREATEFAIL AKERROR_DEFAULT + 1
|
|
#define AKERROR_INVALID_PARAMETER AKERROR_DEFAULT + 2
|
|
#define AKERROR_UNKNOWNERROR AKERROR_DEFAULT + 3
|
|
#define AKERROR_INVALIDCALLBACK AKERROR_DEFAULT + 4
|
|
#define AKERROR_INVALIDVERSION AKERROR_DEFAULT + 5
|
|
#define AKERROR_INITSIG_FAIL AKERROR_DEFAULT + 6
|
|
#define AKERROR_INITANTIHOOK_FAIL AKERROR_DEFAULT + 7
|
|
#define AKERROR_INITLOGFAIL AKERROR_DEFAULT + 8
|
|
#define AKERROR_MEMALLOCFAIL AKERROR_DEFAULT + 9
|
|
#define AKERROR_AKCRYPTO_FAIL AKERROR_DEFAULT + 10
|
|
#define AKERROR_TERMINATECLIENT AKERROR_DEFAULT + 11
|
|
#define AKERROR_APICALLFAIL AKERROR_DEFAULT + 12
|
|
#define AKERROR_TOUCHFAIL AKERROR_DEFAULT + 13
|
|
|
|
|
|
|
|
#endif |