/* Daemon errors */

#define ERROR_SUCCESS							0
#define ERROR_ACCESS_DENIDED					1
#define SYNC_ERROR								3
#define ERROR_DEVICE_STATE						4
#define ERROR_UNBIND_DEVICE						5
#define ERROR_BIND_DEVICE						6
#define ERROR_INVALID_PARAMETER					7
#define ERROR_DEVICE_REINITIALIZATION_NEEDED 	9
#define ERROR_LICENSE_QUOTA_EXCEEDED			10
#define ERROR_ALREADY_EXISTS					11
#define ERROR_FILE_NOT_FOUND					12
#define ERROR_INVALID_STATE						13
#define ERROR_DEVICE_NOT_AVAILABLE				14
#define ERROR_DEVICE_IN_USE						15
#define ERROR_DEVICE_NOT_CONNECTED				16
#define ERROR_TIMEOUT							17
#define ERROR_CRC								18
#define ERROR_FILE_OFFLINE						19
#define ERROR_CONNECTION_COUNT_LIMIT			20
#define RPC_X_WRONG_ES_VERSION					21
#define ERROR_OLD_WIN_VERSION					22
#define ERROR_CONNECTION_REFUSED				23
#define ERROR_INVALID_HANDLE					24
#define ERROR_ALREADY_REGISTERED				25
#define ERROR_INVALID_ACCESS            		26
#define ERROR_DEVICE_DOES_NOT_EXIST				27
#define ERROR_INVALID_FUNCTION					28
#define ERROR_DEV_NOT_EXIST						29
#define ERROR_BAD_COMMAND						30
#define ERROR_SERVICE_CANNOT_ACCEPT_CTRL		31 // USB_SERVER_ERROR_CANNOT_ESTABLISH_CONNECTION 	10
#define ERROR_PARTIAL_COPY						32 // USB_SERVER_ERROR_PARTIAL_COPY 				12
#define ERROR_IPC								33 // USB_SERVER_IPC_ERROR							26
#define ERROR_MUTEX								34 // USB_SERVER_MUTEX_ERROR						27
#define ERROR_INIT_STATUS_NEEDED				35 // USB_SERVER_ERROR_INIT_STATUS_NEEDED			28
#define	ERROR_ALREADY_INITIALIZED				36 // USB_SERVER_ERROR_ALREADY_INITIALIZED			29
#define ERROR_INSTALL_PACKAGE_VERSION			37 // USB_SERVER_ERROR_INSTALL_PACKAGE_VERSION 		31
                                        		
// compatibility with older versions
#define UNPLUG_DEVICE_NEEDED 					ERROR_DEVICE_REINITIALIZATION_NEEDED
#define DEVICE_NOT_FOUND 						ERROR_FILE_NOT_FOUND
#define ERROR_PARAMETERS						ERROR_INVALID_PARAMETER
