/*--
	Copyright (C) 2007-2010 Wellbia.com Co., Ltd.

	YoungJin Shin <codewiz@wellbia.com>
	2010-09-16 

	XIGNCODE 클라이언트 오류 코드

--*/

#ifndef ZCWAVE_ERRORS
#define ZCWAVE_ERRORS

#define ZCWAVE_E_INSUFFICIENT_RESOURCES		0xE0010003

// 파일 손상류 ~100

#define ZCWAVE_E_DNA_CORRUPTED				0xE0190101
#define ZCWAVE_E_XCLIO_CORRUPTED			0xE0190102
#define ZCWAVE_E_XSG_CORRUPTED				0xE0190103
#define ZCWAVE_E_INVALID_LICENSE			0xE0190104
#define ZCWAVE_E_XEZ_CORRUPTED				0xE0190105

#define ZCWAVE_E_WHITE_DB_MISSING			0xE0190106
#define ZCWAVE_E_BLACK_DB_MISSING			0xE0190107
#define ZCWAVE_E_ENGINE_CORRUPTED			0xE0190108
#define ZCWAVE_E_PHANTOM_CORRUPTED			0xE0190109
#define ZCWAVE_E_HASH_DATA_CORRUPTED		0xE019010A
#define ZCWAVE_E_HASH_DATA_MISSING			0xE019010B
#define ZCWAVE_E_XDL_CORRUPTED				0xE019010C

// 내부 동작 실패류 ~ 200

#define ZCWAVE_E_LOG_FAIL					0xE0190201
#define ZCWAVE_E_IPC_FAIL					0xE0190202
#define ZCWAVE_E_INVALID_OPERATION			0xE0190203
#define ZCWAVE_E_SYSTEM_ID_FAIL				0xE0190204
#define ZCWAVE_E_INTERNAL_STATE_CHANGED		0xE0190205
#define ZCWAVE_E_DETECT_IPC_ERROR			0xE0190206

#define ZCWAVE_E_XVC_CHECK_FAIL				0xE0190207
#define ZCWAVE_E_XXD_TERMINATED				0xE0190208
#define ZCWAVE_E_DETECT_XXD_DEBUGGING		0xE0190209
#define ZCWAVE_E_CREATE_XXD_FAIL			0xE019020A
#define ZCWAVE_E_CALLER_CORRUPTED			0xE019020B
#define ZCWAVE_E_CALLSTACK_CORRUPTED		0xE019020C
#define ZCWAVE_E_CANT_LOAD_COOPER			0xE019020D
#define ZCWAVE_E_CANT_DOWNLOAD_COOPER		0xE019020E

#define ZCWAVE_E_CREATE_PLC_FAIL			0xE019020F
#define ZCWAVE_E_ENGINE_INIT_FAIL			0xE0190210
#define ZCWAVE_E_WHITE_DB_READ_FAIL			0xE0190211
#define ZCWAVE_E_BLACK_DB_READ_FAIL			0xE0190212
#define ZCWAVE_E_ENGINE_LOAD_FAIL			0xE0190213

#define ZCWAVE_E_CHECK_HEART_BEAT			0xE0190214

// 외부 환경에 의한 오류 ~300

#define ZCWAVE_E_INVALID_HANDLE				0xE0190301
#define ZCWAVE_E_INVALID_PACKET				0xE0190302
#define ZCWAVE_E_NOT_INITIALIZED			0xE0190304
#define ZCWAVE_E_PROBE_CONTINUE				0xE0190305

#define ZCWAVE_E_CANT_CREATE_PLC_MGR		0xE0190306
#define ZCWAVE_E_XSG_LOAD_FAIL				0xE0190307
#define ZCWAVE_E_XSG_FUNCTION_MISSING		0xE0190308
#define ZCWAVE_E_XSG_INIT_FAIL				0xE0190309
#define ZCWAVE_E_XSG_PROTECT_FAIL			0xE019030A

#define ZCWAVE_E_GET_XIGNCODE_DESC_FAIL		0xE019030B
#define ZCWAVE_E_SET_XIGNCODE_DESC_FAIL		0xE019030C

#define ZCWAVE_E_LOAD_XPL_FAIL					0xE019030D
#define ZCWAVE_E_XPL_FUNCTION_MISSING			0xE019030E
#define ZCWAVE_E_CANT_CREATE_PACKET_PROVIDER	0xE019030F

#define ZCWAVE_E_CANT_EXTRACT_XSPIRIT32			0xE0190310
#define ZCWAVE_E_CANT_EXTRACT_XSPIRIT64			0xE0190311
#define ZCWAVE_E_CANT_LOAD_XSPIRIT				0xE0190312

#define ZCWAVE_E_INVALID_CALL				0xE0190401
#define ZCWAVE_E_INVALID_SDT				0xE0190402
#define ZCWAVE_E_KERNEL_CODE_CHANGED		0xE0190403
#define ZCWAVE_E_DETECT_DEBUGGER			0xE0190404
#define ZCWAVE_E_DETECT_IDT_MODIFIED		0xE0190405
#define ZCWAVE_E_DETECT_MAL_DRIVER			0xE0190406
#define ZCWAVE_E_DETECT_DX_HOOK				0xE0190407
#define ZCWAVE_E_DETECT_MAL_INI				0xE0190408
#define ZCWAVE_E_DETECT_MAL_NET_IO			0xE0190409
#define ZCWAVE_E_DETECT_SPEED_HACK			0xE019040A

//

#define ZCWAVE_OK							0
#define ZCWAVE_E_USER_INFO_IS_NOT_READY		0xE0190501
#define ZCWAVE_E_USER_INFO_ACCESS_DENIED	0xE0190502

// 자세한 설명이 필요한
// 개별 문제 1000

#define ZCWAVE_E_DETECT_UNKNOWN_OS			0xE0191001
#define ZCWAVE_E_ALREADY_HOOKED				0xE0191002
#define ZCWAVE_E_DETECT_VM					0xE0191003
#define ZCWAVE_E_DETECT_COMPAT_9X			0xE0191004
#define ZCWAVE_E_DETECT_ALREADY_RUNNING		0xE0191005
#define ZCWAVE_E_CANT_LOAD_DRIVER			0xE0191006
#define ZCWAVE_E_CLIENT_CHANGED				0xE0191007
#define ZCWAVE_E_CANT_CREATE_FILE			0xE0191008
#define ZCWAVE_E_UPDATE_FAIL				0xE0191009
#define ZCWAVE_E_ALREADY_UPDATING			0xE019100A
#define ZCWAVE_E_BLACKCODE					0xE019100B

#endif