NetTunnelWindows/NetTunnelSDK/sdk/usrerr.h

70 lines
3.7 KiB
C
Raw Normal View History

#pragma once
/**
* @brief SDK <EFBFBD><EFBFBD><EFBFBD>ô<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
*/
enum USER_ERRNO {
ERR_SUCCESS = 0, ///< <20>ɹ<EFBFBD>
ERR_INPUT_PARAMS, ///< <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
ERR_UN_SUPPORT, ///< <20><>֧<EFBFBD>ֵIJ<D6B5><C4B2><EFBFBD>
ERR_CALL_SHELL, ///< <20><><EFBFBD><EFBFBD>Shell<6C><6C><EFBFBD><EFBFBD>ʧ<EFBFBD><CAA7>
ERR_ITEM_EXISTS, ///< <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ѿ<EFBFBD><D1BE><EFBFBD><EFBFBD><EFBFBD>
ERR_ITEM_UNEXISTS, ///< <20><><EFBFBD><EFBFBD><EFBFBD>ݲ<EFBFBD><DDB2><EFBFBD><EFBFBD><EFBFBD>
ERR_SYS_INIT, ///< ϵͳ<CFB5>ж<EFBFBD>
ERR_SYS_CALL, ///< ϵͳ<CFB5><CDB3><EFBFBD><EFBFBD>
ERR_LOAD_LIBRARY, ///< <20><><EFBFBD><EFBFBD>ϵͳ<CFB5><CDB3>ʧ<EFBFBD><CAA7>
ERR_MAP_LIBRARY, ///< <20><><EFBFBD><EFBFBD>ϵͳ<CFB5><CDB3><EFBFBD>ӿ<EFBFBD>ʧ<EFBFBD><CAA7>
ERR_SYS_TIMEOUT, ///< ϵͳ<CFB5><CDB3>ʱ
ERR_SYSTEM_UNINITIALIZE, ///< ϵͳδ<CDB3><CEB4>ʼ<EFBFBD><CABC>
ERR_CREATE_FILE, ///< <20><><EFBFBD><EFBFBD><EFBFBD>ļ<EFBFBD>/Ŀ¼ʧ<C2BC><CAA7>
ERR_OPEN_FILE, ///< <20><><EFBFBD><EFBFBD><EFBFBD>ļ<EFBFBD>ʧ<EFBFBD><CAA7>
ERR_READ_FILE, ///< <20><>ȡ<EFBFBD>ļ<EFBFBD>ʧ<EFBFBD><CAA7>
ERR_WRITE_FILE, ///< д<><D0B4><EFBFBD>ļ<EFBFBD>ʧ<EFBFBD><CAA7>
ERR_FILE_NOT_EXISTS, ///< <20>ļ<EFBFBD><C4BC><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
ERR_FILE_LOCKED, ///< <20>ļ<EFBFBD><C4BC><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
ERR_GET_FILE_SIZE, ///< <20><>ȡ<EFBFBD>ļ<EFBFBD><C4BC><EFBFBD>Сʧ<D0A1><CAA7>
ERR_FIND_FILE, ///< <20><><EFBFBD><EFBFBD><EFBFBD>ļ<EFBFBD>ʧ<EFBFBD><CAA7>
ERR_COPY_FILE, ///< <20><><EFBFBD><EFBFBD><EFBFBD>ļ<EFBFBD>ʧ<EFBFBD><CAA7>
ERR_OPEN_SCM, ///< <20>򿪷<EFBFBD><F2BFAAB7><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>豸ʧ<E8B1B8><CAA7>
ERR_OPEN_SERVICE, ///< <20>򿪷<EFBFBD><F2BFAAB7><EFBFBD>ʧ<EFBFBD><CAA7>
ERR_CREATE_SERVICE, ///< <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʧ<EFBFBD><CAA7>
ERR_START_SERVICE, ///< <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʧ<EFBFBD><CAA7>
ERR_STOP_SERVICE, ///< ֹͣ<CDA3><D6B9><EFBFBD><EFBFBD>ʧ<EFBFBD><CAA7>
ERR_DELETE_SERVICE, ///< ɾ<><C9BE><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʧ<EFBFBD><CAA7>
ERR_CONFIG_SERVICE, ///< <20>޸ķ<DEB8><C4B7><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʧ<EFBFBD><CAA7>
ERR_GET_SERVICESSTATUS, ///< <20><>ȡ<EFBFBD><C8A1><EFBFBD><EFBFBD>״̬ʧ<CCAC><CAA7>
ERR_MALLOC_MEMORY, ///< <20><><EFBFBD><EFBFBD><EFBFBD>ڴ<EFBFBD>ʧ<EFBFBD><CAA7>
ERR_MMAP_MEMORY, ///< <20><><EFBFBD><EFBFBD><EFBFBD>ڴ<EFBFBD>ʧ<EFBFBD><CAA7>
ERR_MEMORY_STR, ///< <20>ַ<EFBFBD><D6B7><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʧ<EFBFBD><CAA7>
ERR_CREATE_PROCESS, ///< <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʧ<EFBFBD><CAA7>
ERR_PROCESS_RETURN, ///< <20><><EFBFBD>̵<EFBFBD><CCB5>÷<EFBFBD><C3B7><EFBFBD>ʧ<EFBFBD><CAA7>
ERR_CREATE_THREAD, ///< <20><><EFBFBD><EFBFBD><EFBFBD>߳<EFBFBD>ʧ<EFBFBD><CAA7>
ERR_CREATE_TIMER, ///< <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʱ<EFBFBD><CAB1>ʧ<EFBFBD><CAA7>
ERR_DELETE_TIMER, ///< <20><><EFBFBD>ٶ<EFBFBD>ʱ<EFBFBD><CAB1>ʧ<EFBFBD><CAA7>
ERR_SOCKET_CREATE, ///< <20><><EFBFBD><EFBFBD> SOCKET ʧ<><CAA7>
ERR_SOCKET_BIND, ///< <20><><EFBFBD><EFBFBD> SOCKET <20>˿<EFBFBD>ʧ<EFBFBD><CAA7>
ERR_SOCKET_CONNECT, ///< <20><><EFBFBD><EFBFBD> TCP SOCKET <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʧ<EFBFBD><CAA7>
ERR_SOCKET_LISTEN, ///< TCP SOCKET <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʧ<EFBFBD><CAA7>
ERR_SOCKET_BIND_PORT, ///< <20>󶨶˿<F3B6A8B6>ʧ<EFBFBD><CAA7>
ERR_SOCKET_SET_OPT, ///< <20><><EFBFBD><EFBFBD> SOCKET <20><><EFBFBD><EFBFBD>ʧ<EFBFBD><CAA7>
ERR_SOCKET_GET_OPT, ///< <20><>ȡ SOCKET <20><><EFBFBD><EFBFBD>ʧ<EFBFBD><CAA7>
ERR_BCRYPT_OPEN = 100, ///< <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>㷨ʧ<E3B7A8><CAA7>
ERR_BCRYPT_GETPROPERTY, ///< <20><>ȡ<EFBFBD><C8A1><EFBFBD><EFBFBD><EFBFBD><EFBFBD><E3B7A8><EFBFBD><EFBFBD>ʧ<EFBFBD><CAA7>
ERR_BCRYPT_CREATEHASH, ///< <20><><EFBFBD><EFBFBD> Hash <20>㷨ʧ<E3B7A8><CAA7>
ERR_BCRYPT_HASHDATA, ///< <20><><EFBFBD><EFBFBD> Hash <20><><EFBFBD><EFBFBD>ʧ<EFBFBD><CAA7>
ERR_BCRYPT_FINISHHASH, ///< <20><><EFBFBD><EFBFBD> Hash <20><><EFBFBD><EFBFBD>ʧ<EFBFBD><CAA7>
ERR_NET_UNCONNECT = 200, ///< <20><><EFBFBD><EFBFBD>δ<EFBFBD><CEB4><EFBFBD><EFBFBD>
ERR_NET_CATEGORY_MODE, ///< <20><><EFBFBD><EFBFBD><E7B9A4>ģʽ
ERR_NET_INTELNEL_ICS, ///< <20><><EFBFBD><EFBFBD> Intelnet <20><><EFBFBD><EFBFBD> ICS <20><><EFBFBD><EFBFBD>ʧ<EFBFBD><CAA7>
ERR_NET_WIREGUARD_ICS, ///< <20><><EFBFBD><EFBFBD> WireGuard <20><><EFBFBD><EFBFBD> ICS <20><><EFBFBD><EFBFBD>ʧ<EFBFBD><CAA7>
ERR_GET_IPFOWARDTBL = 300, ///< <20><>ȡϵͳ IP ת<><D7AA><EFBFBD><EFBFBD>ʧ<EFBFBD><CAA7>
ERR_CREATE_COMMOBJECT = 400, ///< <20><><EFBFBD><EFBFBD> COM <20><><EFBFBD><EFBFBD>ʧ<EFBFBD><CAA7>
ERR_CALL_COMMOBJECT, ///< <20><><EFBFBD><EFBFBD> COM <20><><EFBFBD><EFBFBD>ʧ<EFBFBD><CAA7>
ERR_JSON_CREATE = 500, ///< <20><><EFBFBD><EFBFBD> JSON <20><><EFBFBD><EFBFBD>ʧ<EFBFBD><CAA7>
ERR_JSON_DECODE, ///< <20><> JSON <20><><EFBFBD><EFBFBD><EFBFBD>л<EFBFBD><D0BB><EFBFBD><EFBFBD><EFBFBD>ʧ<EFBFBD><CAA7>
ERR_HTTP_SERVER_RSP = 600, ///< HTTP <20><><EFBFBD><EFBFBD><EFBFBD>˷<EFBFBD><CBB7>ش<EFBFBD><D8B4><EFBFBD>
ERR_HTTP_POST_DATA, ///< <20><><EFBFBD><EFBFBD> POST <20><><EFBFBD><EFBFBD>ʧ<EFBFBD><CAA7>
ERR_NET_ADD_ROUTE, ///< <20><><EFBFBD><EFBFBD>·<EFBFBD><C2B7>ʧ<EFBFBD><CAA7>
ERR_NET_REMOVE_ROUTE, ///< ɾ<><C9BE>·<EFBFBD><C2B7>ʧ<EFBFBD><CAA7>
};