#if !defined(WCSDK2DEFINE__XXXCSS__INCLUDED_)
#define WCSDK2DEFINE__XXXCSS__INCLUDED_

/// Func Return Error Message
#define WCSDK_RTN_SUCESS				0x00
#define WCSDK_SCANNER_INIT_ERROR		0X01
#define WCSDK_KERNEL_INIT_ERROR			0x02
#define WCSDK_LICENSE_CODE_ERROR		0X03		
#define WCSDK_RTN_LIB_MISS				0X04
#define WCSDK_OVER30DAY					0x05
#define WCSDK_OVER_TIME_LIMIT			0x06
#define WCSDK_RECOGIN_FAIL				0x07
#define WCSDK_CANCEL_BY_USER			0x08
#define WCSDK_SCANNER_DEVICE_NOT_EXIST	0X09
#define WCSDK_SCANNER_PAPER_NOT_EXIST	0X0a
#define WCSDK_SCANNER_DEVICE_NOT_FOUND	0x0b
#define WCSDK_SCANNER_LIB_LOAD_FAIL		0x0c
#define WCSDK_SCANNER_DRIVER_NOT_INSTALL	0x0d
#define WCSDK_SCANNER_CALIBRATE_NEEDED	0x0e
#define WCSDK_SCANNER_MANAGER_NOT_FOUND	0x0f
#define WCSDK_SCANNER_MANAGER_COM_ERROR	0x10
#define WCSDK_SCANNER_MODULE_INIT_ERROR		0x11
#define WCSDK_PRODUCT_NOT_SUPPORT	0x12
#define WCSDK_SCANNER_BUSY				0x13
#define WCSDK_SCANNER_SCAN_FINISH			0x15
#define	WCSDK_SCANNER_CALIBRATE_FAIL		0x16
#define WCSDK_WORLDCARD_NOT_EXIST		0x017
#define WCSDK_BUSY						0x018
#define WCSDK_PAPER_JAM					0X019
#define WCSDK_INTERNEL_ERROR			0X01A
#define WCSDK_CARD_IMAGE_NOT_BE_SCANNED	0X01B
#define WCSDK_KEYPRO_ERR				0X01C
#define WCSDK_REGGED_ERR				0X01D

// Scanner status by ON_REGISTERED_MESSAGE recevice 
#define SCANNER_STATUS_RTN				0X01
#define SCANNER_STATUS_PAPER_ON			0X01
#define SCANNER_STATUS_PAPER_OFF		0x02
#define SCANNER_STATUS_MACHINE_ON		0x03
#define SCANNER_STATUS_MACHINE_OFF		0x04
#define SCANNER_STATUS_BUTTON_ON		0x05
#define SCANNER_STATUS_COLOR_BUTTON_ON	0x06


#define PP_CHARSET_CHINESE_AUTO			0X0004
#define PP_CHARSET_JAPANESE				0X0411
#define PP_CHARSET_KOREAN				0X0412
#define PP_CHARSET_ENGLISH_AUTO			0X0009
#define PP_CHARSET_GERMAN_AUTO			0X0007
#define PP_CHARSET_FRENCH_AUTO			0X000C
#define PP_CHARSET_ITALIAN_AUTO			0X0010
#define PP_CHARSET_SPANISH_AUTO			0X000A
#define PP_CHARSET_NORWEGIAN_AUTO		0X0014
#define PP_CHARSET_HUNGARIAN_AUTO		0X000E
#define PP_CHARSET_POLISH_AUTO			0X0015
#define PP_CHARSET_SWEDISH_AUTO			0X001D
#define PP_CHARSET_DANISH_AUTO			0X0006
#define PP_CHARSET_FINNISH_AUTO			0X000B
#define PP_CHARSET_DUTCH_AUTO			0X0013
#define PP_CHARSET_TURKISH_AUTO			0X001F
#define PP_CHARSET_RSUSAN_AUTO			0X0019
#define PP_CHARSET_ARABIC				0X0401
#define PP_CHARSET_THAILAND				0X1054

// Field ID 
#define WKID_NAME					0x0000001
#define WKID_FIRST_NAME				0x0000002
#define WKID_LAST_NAME				0x0000003
#define WKID_MIDDLE_NAME			0x0000004

// Company, Position, Department
#define WKID_COMPANY				0x0000005
#define WKID_POSITION				0x0000006
#define WKID_DEPARTMENT				0x0000007

// Address -- Office, Home, Other
#define WKID_OFFICE_ADDRESS			0x0000008
#define WKID_HOME_ADDRESS			0x0000009
#define WKID_OTHER_ADDRESS			0x000000A

// Telephone -- Office, Home, Other
#define WKID_OFFICE_TEL				0x000000B
#define WKID_HOME_TEL				0x000000C
#define WKID_OTHER_TEL				0x000000D

#define WKID_COMPANY_MAIN_TEL		0x000000E	//公司總機
#define WKID_PRIMARY_TEL			0x000000F	//專線(代表線)
	
// FAX -- Office, Home, Other
#define WKID_OFFICE_FAX				0x0000010
#define WKID_HOME_FAX				0x0000011
#define WKID_OTHER_FAX				0x0000012

// Mobile, Pager
#define WKID_MOBILE					0x0000013
#define WKID_PAGER					0x0000014

// E-Mail -- Office, Home, Other
#define WKID_OFFICE_EMAIL			0x0000015
#define WKID_HOME_EMAIL				0x0000016
#define WKID_OTHER_EMAIL			0x0000017

// Web -- Office, Home, Other
#define WKID_OFFICE_WEB				0x0000018
#define WKID_HOME_WEB				0x0000019
#define WKID_OTHER_WEB				0x000001A


#define WKID_ICR_OTHER				0x0000041
#define WKID_CORPATE_NUMBER			0x0000042	//統一編號





#define WKID_NICKNAME	0x0000201
#define WKID_SPOUSE	0x0000202	//配偶	//WCHAR
#define WKID_SEX	0x0000203	//性別	//BYTE
#define WKID_BLOOD_TYPE	0x0000204	//血型	//BYTE
#define WKID_BIRTHDAY	0x0000205	//生日	//DWORD
#define WKID_SIGN	0x0000206	//星座	//BYTE
#define WKID_EDUCATION	0x0000207	//教育程度	//BYTE
#define WKID_ANNIVERSARY	0x0000208	//紀念日	//DWORD
#define WKID_CHILD	0x0000209	//子女欄位	//WCHAR
#define WKID_NOTE	0x0000210	//備註欄位	//WCHAR




#define WKID_PIC_ID	0x0000500	//名片ID	//JPEG BINARY



#define _GETID(CATE, SEQ)	(CATE*0x10 + SEQ)
#define _GETCATE(ID)	(ID/0x10)
#define _GETSEQ(ID)	(ID%0x10)


#endif
