FreeRDP
errinfo.c File Reference
#include <stdio.h>
#include <freerdp/log.h>
#include "errinfo.h"

Macros

#define TAG   FREERDP_TAG("core")
 
#define ERRINFO_DEFINE(_code)   { ERRINFO_##_code , "ERRINFO_" #_code , ERRINFO_##_code##_STRING }
 
#define ERRINFO_RPC_INITIATED_DISCONNECT_STRING   "The disconnection was initiated by an administrative tool on the server in another session."
 
#define ERRINFO_RPC_INITIATED_LOGOFF_STRING   "The disconnection was due to a forced logoff initiated by an administrative tool on the server in another session."
 
#define ERRINFO_IDLE_TIMEOUT_STRING   "The idle session limit timer on the server has elapsed."
 
#define ERRINFO_LOGON_TIMEOUT_STRING   "The active session limit timer on the server has elapsed."
 
#define ERRINFO_DISCONNECTED_BY_OTHER_CONNECTION_STRING   "Another user connected to the server, forcing the disconnection of the current connection."
 
#define ERRINFO_OUT_OF_MEMORY_STRING   "The server ran out of available memory resources."
 
#define ERRINFO_SERVER_DENIED_CONNECTION_STRING   "The server denied the connection."
 
#define ERRINFO_SERVER_INSUFFICIENT_PRIVILEGES_STRING   "The user cannot connect to the server due to insufficient access privileges."
 
#define ERRINFO_SERVER_FRESH_CREDENTIALS_REQUIRED_STRING   "The server does not accept saved user credentials and requires that the user enter their credentials for each connection."
 
#define ERRINFO_RPC_INITIATED_DISCONNECT_BY_USER_STRING   "The disconnection was initiated by an administrative tool on the server running in the user's session."
 
#define ERRINFO_LOGOFF_BY_USER_STRING   "The disconnection was initiated by the user logging off their session on the server."
 
#define ERRINFO_CB_DESTINATION_NOT_FOUND_STRING   "The target endpoint could not be found."
 
#define ERRINFO_CB_LOADING_DESTINATION_STRING   "The target endpoint to which the client is being redirected is disconnecting from the Connection Broker."
 
#define ERRINFO_CB_REDIRECTING_TO_DESTINATION_STRING   "An error occurred while the connection was being redirected to the target endpoint."
 
#define ERRINFO_CB_SESSION_ONLINE_VM_WAKE_STRING   "An error occurred while the target endpoint (a virtual machine) was being awakened."
 
#define ERRINFO_CB_SESSION_ONLINE_VM_BOOT_STRING   "An error occurred while the target endpoint (a virtual machine) was being started."
 
#define ERRINFO_CB_SESSION_ONLINE_VM_NO_DNS_STRING   "The IP address of the target endpoint (a virtual machine) cannot be determined."
 
#define ERRINFO_CB_DESTINATION_POOL_NOT_FREE_STRING   "There are no available endpoints in the pool managed by the Connection Broker."
 
#define ERRINFO_CB_CONNECTION_CANCELLED_STRING   "Processing of the connection has been cancelled."
 
#define ERRINFO_CB_CONNECTION_ERROR_INVALID_SETTINGS_STRING   "The settings contained in the routingToken field of the X.224 Connection Request PDU (section 2.2.1.1) cannot be validated."
 
#define ERRINFO_CB_SESSION_ONLINE_VM_BOOT_TIMEOUT_STRING   "A time-out occurred while the target endpoint (a virtual machine) was being started."
 
#define ERRINFO_CB_SESSION_ONLINE_VM_SESSMON_FAILED_STRING   "A session monitoring error occurred while the target endpoint (a virtual machine) was being started."
 
#define ERRINFO_LICENSE_INTERNAL_STRING   "An internal error has occurred in the Terminal Services licensing component."
 
#define ERRINFO_LICENSE_NO_LICENSE_SERVER_STRING   "A Remote Desktop License Server ([MS-RDPELE] section 1.1) could not be found to provide a license."
 
#define ERRINFO_LICENSE_NO_LICENSE_STRING   "There are no Client Access Licenses ([MS-RDPELE] section 1.1) available for the target remote computer."
 
#define ERRINFO_LICENSE_BAD_CLIENT_MSG_STRING   "The remote computer received an invalid licensing message from the client."
 
#define ERRINFO_LICENSE_HWID_DOESNT_MATCH_LICENSE_STRING   "The Client Access License ([MS-RDPELE] section 1.1) stored by the client has been modified."
 
#define ERRINFO_LICENSE_BAD_CLIENT_LICENSE_STRING   "The Client Access License ([MS-RDPELE] section 1.1) stored by the client is in an invalid format."
 
#define ERRINFO_LICENSE_CANT_FINISH_PROTOCOL_STRING   "Network problems have caused the licensing protocol ([MS-RDPELE] section 1.3.3) to be terminated."
 
#define ERRINFO_LICENSE_CLIENT_ENDED_PROTOCOL_STRING   "The client prematurely ended the licensing protocol ([MS-RDPELE] section 1.3.3)."
 
#define ERRINFO_LICENSE_BAD_CLIENT_ENCRYPTION_STRING   "A licensing message ([MS-RDPELE] sections 2.2 and 5.1) was incorrectly encrypted."
 
#define ERRINFO_LICENSE_CANT_UPGRADE_LICENSE_STRING   "The Client Access License ([MS-RDPELE] section 1.1) stored by the client could not be upgraded or renewed."
 
#define ERRINFO_LICENSE_NO_REMOTE_CONNECTIONS_STRING   "The remote computer is not licensed to accept remote connections."
 
#define ERRINFO_UNKNOWN_DATA_PDU_TYPE_STRING   "Unknown pduType2 field in a received Share Data Header (section 2.2.8.1.1.1.2)."
 
#define ERRINFO_UNKNOWN_PDU_TYPE_STRING   "Unknown pduType field in a received Share Control Header (section 2.2.8.1.1.1.1)."
 
#define ERRINFO_DATA_PDU_SEQUENCE_STRING   "An out-of-sequence Slow-Path Data PDU (section 2.2.8.1.1.1.1) has been received."
 
#define ERRINFO_CONTROL_PDU_SEQUENCE_STRING   "An out-of-sequence Slow-Path Non-Data PDU (section 2.2.8.1.1.1.1) has been received."
 
#define ERRINFO_INVALID_CONTROL_PDU_ACTION_STRING   "A Control PDU (sections 2.2.1.15 and 2.2.1.16) has been received with an invalid action field."
 
#define ERRINFO_INVALID_INPUT_PDU_TYPE_STRING
 
#define ERRINFO_INVALID_INPUT_PDU_MOUSE_STRING
 
#define ERRINFO_INVALID_REFRESH_RECT_PDU_STRING   "An invalid Refresh Rect PDU (section 2.2.11.2) has been received."
 
#define ERRINFO_CREATE_USER_DATA_FAILED_STRING   "The server failed to construct the GCC Conference Create Response user data (section 2.2.1.4)."
 
#define ERRINFO_CONNECT_FAILED_STRING
 
#define ERRINFO_CONFIRM_ACTIVE_HAS_WRONG_SHAREID_STRING   "A Confirm Active PDU (section 2.2.1.13.2) was received from the client with an invalid shareId field."
 
#define ERRINFO_CONFIRM_ACTIVE_HAS_WRONG_ORIGINATOR_STRING   "A Confirm Active PDU (section 2.2.1.13.2) was received from the client with an invalid originatorId field."
 
#define ERRINFO_PERSISTENT_KEY_PDU_BAD_LENGTH_STRING   "There is not enough data to process a Persistent Key List PDU (section 2.2.1.17)."
 
#define ERRINFO_PERSISTENT_KEY_PDU_ILLEGAL_FIRST_STRING
 
#define ERRINFO_PERSISTENT_KEY_PDU_TOO_MANY_TOTAL_KEYS_STRING   "A Persistent Key List PDU (section 2.2.1.17) was received which specified a total number of bitmap cache entries larger than 262144."
 
#define ERRINFO_PERSISTENT_KEY_PDU_TOO_MANY_CACHE_KEYS_STRING
 
#define ERRINFO_INPUT_PDU_BAD_LENGTH_STRING   "There is not enough data to process Input Event PDU Data (section 2.2.8.1.1.3.1) or a Fast-Path Input Event PDU (section 2.2.8.1.2)." \
 
#define ERRINFO_BITMAP_CACHE_ERROR_PDU_BAD_LENGTH_STRING
 
#define ERRINFO_SECURITY_DATA_TOO_SHORT_STRING
 
#define ERRINFO_VCHANNEL_DATA_TOO_SHORT_STRING
 
#define ERRINFO_SHARE_DATA_TOO_SHORT_STRING
 
#define ERRINFO_BAD_SUPPRESS_OUTPUT_PDU_STRING
 
#define ERRINFO_CONFIRM_ACTIVE_PDU_TOO_SHORT_STRING
 
#define ERRINFO_CAPABILITY_SET_TOO_SMALL_STRING   "There is not enough data to read the capabilitySetType and the lengthCapability fields in a received Capability Set (section 2.2.1.13.1.1.1)."
 
#define ERRINFO_CAPABILITY_SET_TOO_LARGE_STRING
 
#define ERRINFO_NO_CURSOR_CACHE_STRING
 
#define ERRINFO_BAD_CAPABILITIES_STRING   "The capabilities received from the client in the Confirm Active PDU (section 2.2.1.13.2) were not accepted by the server."
 
#define ERRINFO_VIRTUAL_CHANNEL_DECOMPRESSION_STRING   "An error occurred while using the bulk compressor (section 3.1.8 and [MS-RDPEGDI] section 3.1.8) to decompress a Virtual Channel PDU (section 2.2.6.1)"
 
#define ERRINFO_INVALID_VC_COMPRESSION_TYPE_STRING   "An invalid bulk compression package was specified in the flags field of the Channel PDU Header (section 2.2.6.1.1)."
 
#define ERRINFO_INVALID_CHANNEL_ID_STRING   "An invalid MCS channel ID was specified in the mcsPdu field of the Virtual Channel PDU (section 2.2.6.1)."
 
#define ERRINFO_VCHANNELS_TOO_MANY_STRING   "The client requested more than the maximum allowed 31 static virtual channels in the Client Network Data (section 2.2.1.3.4)."
 
#define ERRINFO_REMOTEAPP_NOT_ENABLED_STRING
 
#define ERRINFO_CACHE_CAP_NOT_SET_STRING
 
#define ERRINFO_BITMAP_CACHE_ERROR_PDU_BAD_LENGTH2_STRING
 
#define ERRINFO_OFFSCREEN_CACHE_ERROR_PDU_BAD_LENGTH_STRING   "There is not enough data to process an Offscreen Bitmap Cache Error PDU ([MS-RDPEGDI] section 2.2.2.3.2)."
 
#define ERRINFO_DRAWNINEGRID_CACHE_ERROR_PDU_BAD_LENGTH_STRING   "There is not enough data to process a DrawNineGrid Cache Error PDU ([MS-RDPEGDI] section 2.2.2.3.3)."
 
#define ERRINFO_GDIPLUS_PDU_BAD_LENGTH_STRING   "There is not enough data to process a GDI+ Error PDU ([MS-RDPEGDI] section 2.2.2.3.4)."
 
#define ERRINFO_SECURITY_DATA_TOO_SHORT2_STRING   "There is not enough data to read a Basic Security Header (section 2.2.8.1.1.2.1)."
 
#define ERRINFO_SECURITY_DATA_TOO_SHORT3_STRING   "There is not enough data to read a Non-FIPS Security Header (section 2.2.8.1.1.2.2) or FIPS Security Header (section 2.2.8.1.1.2.3)."
 
#define ERRINFO_SECURITY_DATA_TOO_SHORT4_STRING   "There is not enough data to read the basicSecurityHeader and length fields of the Security Exchange PDU Data (section 2.2.1.10.1)."
 
#define ERRINFO_SECURITY_DATA_TOO_SHORT5_STRING
 
#define ERRINFO_SECURITY_DATA_TOO_SHORT6_STRING
 
#define ERRINFO_SECURITY_DATA_TOO_SHORT7_STRING   "There is not enough data to read the clientAddressFamily and cbClientAddress fields in the Extended Info Packet (section 2.2.1.11.1.1.1)."
 
#define ERRINFO_SECURITY_DATA_TOO_SHORT8_STRING   "There is not enough data to read the clientAddress field in the Extended Info Packet (section 2.2.1.11.1.1.1)."
 
#define ERRINFO_SECURITY_DATA_TOO_SHORT9_STRING   "There is not enough data to read the cbClientDir field in the Extended Info Packet (section 2.2.1.11.1.1.1)."
 
#define ERRINFO_SECURITY_DATA_TOO_SHORT10_STRING   "There is not enough data to read the clientDir field in the Extended Info Packet (section 2.2.1.11.1.1.1)."
 
#define ERRINFO_SECURITY_DATA_TOO_SHORT11_STRING   "There is not enough data to read the clientTimeZone field in the Extended Info Packet (section 2.2.1.11.1.1.1)."
 
#define ERRINFO_SECURITY_DATA_TOO_SHORT12_STRING   "There is not enough data to read the clientSessionId field in the Extended Info Packet (section 2.2.1.11.1.1.1)."
 
#define ERRINFO_SECURITY_DATA_TOO_SHORT13_STRING   "There is not enough data to read the performanceFlags field in the Extended Info Packet (section 2.2.1.11.1.1.1)."
 
#define ERRINFO_SECURITY_DATA_TOO_SHORT14_STRING   "There is not enough data to read the cbAutoReconnectLen field in the Extended Info Packet (section 2.2.1.11.1.1.1)."
 
#define ERRINFO_SECURITY_DATA_TOO_SHORT15_STRING   "There is not enough data to read the autoReconnectCookie field in the Extended Info Packet (section 2.2.1.11.1.1.1)."
 
#define ERRINFO_SECURITY_DATA_TOO_SHORT16_STRING
 
#define ERRINFO_SECURITY_DATA_TOO_SHORT17_STRING   "There is not enough data to read the clientAddressFamily and cbClientAddress fields in the Extended Info Packet (section 2.2.1.11.1.1.1)."
 
#define ERRINFO_SECURITY_DATA_TOO_SHORT18_STRING   "There is not enough data to read the clientAddress field in the Extended Info Packet (section 2.2.1.11.1.1.1)."
 
#define ERRINFO_SECURITY_DATA_TOO_SHORT19_STRING   "There is not enough data to read the cbClientDir field in the Extended Info Packet (section 2.2.1.11.1.1.1)."
 
#define ERRINFO_SECURITY_DATA_TOO_SHORT20_STRING   "There is not enough data to read the clientDir field in the Extended Info Packet (section 2.2.1.11.1.1.1)."
 
#define ERRINFO_SECURITY_DATA_TOO_SHORT21_STRING   "There is not enough data to read the clientTimeZone field in the Extended Info Packet (section 2.2.1.11.1.1.1)."
 
#define ERRINFO_SECURITY_DATA_TOO_SHORT22_STRING   "There is not enough data to read the clientSessionId field in the Extended Info Packet (section 2.2.1.11.1.1.1)."
 
#define ERRINFO_SECURITY_DATA_TOO_SHORT23_STRING   "There is not enough data to read the Client Info PDU Data (section 2.2.1.11.1)."
 
#define ERRINFO_BAD_MONITOR_DATA_STRING   "The monitorCount field in the Client Monitor Data (section 2.2.1.3.6) is invalid."
 
#define ERRINFO_VC_DECOMPRESSED_REASSEMBLE_FAILED_STRING
 
#define ERRINFO_VC_DATA_TOO_LONG_STRING
 
#define ERRINFO_BAD_FRAME_ACK_DATA_STRING   "There is not enough data to read a TS_FRAME_ACKNOWLEDGE_PDU ([MS-RDPRFX] section 2.2.3.1)."
 
#define ERRINFO_GRAPHICS_MODE_NOT_SUPPORTED_STRING   "The graphics mode requested by the client is not supported by the server."
 
#define ERRINFO_GRAPHICS_SUBSYSTEM_RESET_FAILED_STRING   "The server-side graphics subsystem failed to reset."
 
#define ERRINFO_GRAPHICS_SUBSYSTEM_FAILED_STRING   "The server-side graphics subsystem is in an error state and unable to continue graphics encoding."
 
#define ERRINFO_TIMEZONE_KEY_NAME_LENGTH_TOO_SHORT_STRING   "There is not enough data to read the cbDynamicDSTTimeZoneKeyName field in the Extended Info Packet (section 2.2.1.11.1.1.1)."
 
#define ERRINFO_TIMEZONE_KEY_NAME_LENGTH_TOO_LONG_STRING   "The length reported in the cbDynamicDSTTimeZoneKeyName field of the Extended Info Packet (section 2.2.1.11.1.1.1) is too long."
 
#define ERRINFO_DYNAMIC_DST_DISABLED_FIELD_MISSING_STRING   "The dynamicDaylightTimeDisabled field is not present in the Extended Info Packet (section 2.2.1.11.1.1.1)."
 
#define ERRINFO_VC_DECODING_ERROR_STRING   "An error occurred when processing dynamic virtual channel data ([MS-RDPEDYC] section 3.3.5)."
 
#define ERRINFO_VIRTUALDESKTOPTOOLARGE_STRING
 
#define ERRINFO_MONITORGEOMETRYVALIDATIONFAILED_STRING   "The monitor geometry defined by the Client Monitor Data (section 2.2.1.3.6) is invalid."
 
#define ERRINFO_INVALIDMONITORCOUNT_STRING   "The monitorCount field in the Client Monitor Data(section 2.2.1.3.6) is too large."
 
#define ERRINFO_UPDATE_SESSION_KEY_FAILED_STRING   "An attempt to update the session keys while using Standard RDP Security mechanisms (section 5.3.7) failed."
 
#define ERRINFO_DECRYPT_FAILED_STRING
 
#define ERRINFO_ENCRYPT_FAILED_STRING   "Encryption using Standard RDP Security mechanisms (section 5.3.6) failed."
 
#define ERRINFO_ENCRYPTION_PACKAGE_MISMATCH_STRING   "Failed to find a usable Encryption Method (section 5.3.2) in the encryptionMethods field of the Client Security Data (section 2.2.1.4.3)."
 
#define ERRINFO_DECRYPT_FAILED2_STRING   "Unencrypted data was encountered in a protocol stream which is meant to be encrypted with Standard RDP Security mechanisms (section 5.3.6)."
 
#define ERRINFO_PEER_DISCONNECTED_STRING   "The peer connection was lost."
 
#define ERRINFO_SUCCESS_STRING   "Success."
 
#define ERRINFO_NONE_STRING   ""
 

Functions

const char * freerdp_get_error_info_string (UINT32 code)
 
const char * freerdp_get_error_info_name (UINT32 code)
 
void rdp_print_errinfo (UINT32 code)
 

Variables

int connectErrorCode
 
static const ERRINFO ERRINFO_CODES []
 

Macro Definition Documentation

#define ERRINFO_BAD_CAPABILITIES_STRING   "The capabilities received from the client in the Confirm Active PDU (section 2.2.1.13.2) were not accepted by the server."
#define ERRINFO_BAD_FRAME_ACK_DATA_STRING   "There is not enough data to read a TS_FRAME_ACKNOWLEDGE_PDU ([MS-RDPRFX] section 2.2.3.1)."
#define ERRINFO_BAD_MONITOR_DATA_STRING   "The monitorCount field in the Client Monitor Data (section 2.2.1.3.6) is invalid."
#define ERRINFO_BAD_SUPPRESS_OUTPUT_PDU_STRING
Value:
"(a) There is not enough data to process Suppress Output PDU Data (section 2.2.11.3.1).\n" \
"(b) The allowDisplayUpdates field of the Suppress Output PDU Data (section 2.2.11.3.1) is invalid."
#define ERRINFO_BITMAP_CACHE_ERROR_PDU_BAD_LENGTH2_STRING
Value:
"The NumInfoBlocks field in the Bitmap Cache Error PDU Data is inconsistent with the amount of data in the " \
"Info field ([MS-RDPEGDI] section 2.2.2.3.1.1)."
#define ERRINFO_BITMAP_CACHE_ERROR_PDU_BAD_LENGTH_STRING
Value:
"There is not enough data to process the shareDataHeader, NumInfoBlocks, " \
"Pad1, and Pad2 fields of the Bitmap Cache Error PDU Data ([MS-RDPEGDI] section 2.2.2.3.1.1)."
#define ERRINFO_CACHE_CAP_NOT_SET_STRING
Value:
"The client sent a Persistent Key List PDU (section 2.2.1.17) without including the prerequisite Revision 2 Bitmap Cache " \
"Capability Set (section 2.2.7.1.4.2) in the Confirm Active PDU (section 2.2.1.13.2)."
#define ERRINFO_CAPABILITY_SET_TOO_LARGE_STRING
Value:
"A Capability Set (section 2.2.1.13.1.1.1) has been received with a lengthCapability " \
"field that contains a value greater than the total length of the data received."
#define ERRINFO_CAPABILITY_SET_TOO_SMALL_STRING   "There is not enough data to read the capabilitySetType and the lengthCapability fields in a received Capability Set (section 2.2.1.13.1.1.1)."
#define ERRINFO_CB_CONNECTION_CANCELLED_STRING   "Processing of the connection has been cancelled."
#define ERRINFO_CB_CONNECTION_ERROR_INVALID_SETTINGS_STRING   "The settings contained in the routingToken field of the X.224 Connection Request PDU (section 2.2.1.1) cannot be validated."
#define ERRINFO_CB_DESTINATION_NOT_FOUND_STRING   "The target endpoint could not be found."
#define ERRINFO_CB_DESTINATION_POOL_NOT_FREE_STRING   "There are no available endpoints in the pool managed by the Connection Broker."
#define ERRINFO_CB_LOADING_DESTINATION_STRING   "The target endpoint to which the client is being redirected is disconnecting from the Connection Broker."
#define ERRINFO_CB_REDIRECTING_TO_DESTINATION_STRING   "An error occurred while the connection was being redirected to the target endpoint."
#define ERRINFO_CB_SESSION_ONLINE_VM_BOOT_STRING   "An error occurred while the target endpoint (a virtual machine) was being started."
#define ERRINFO_CB_SESSION_ONLINE_VM_BOOT_TIMEOUT_STRING   "A time-out occurred while the target endpoint (a virtual machine) was being started."
#define ERRINFO_CB_SESSION_ONLINE_VM_NO_DNS_STRING   "The IP address of the target endpoint (a virtual machine) cannot be determined."
#define ERRINFO_CB_SESSION_ONLINE_VM_SESSMON_FAILED_STRING   "A session monitoring error occurred while the target endpoint (a virtual machine) was being started."
#define ERRINFO_CB_SESSION_ONLINE_VM_WAKE_STRING   "An error occurred while the target endpoint (a virtual machine) was being awakened."
#define ERRINFO_CONFIRM_ACTIVE_HAS_WRONG_ORIGINATOR_STRING   "A Confirm Active PDU (section 2.2.1.13.2) was received from the client with an invalid originatorId field."
#define ERRINFO_CONFIRM_ACTIVE_HAS_WRONG_SHAREID_STRING   "A Confirm Active PDU (section 2.2.1.13.2) was received from the client with an invalid shareId field."
#define ERRINFO_CONFIRM_ACTIVE_PDU_TOO_SHORT_STRING
Value:
"(a) There is not enough data to read the shareControlHeader, shareId, originatorId, lengthSourceDescriptor, " \
"and lengthCombinedCapabilities fields of the Confirm Active PDU Data (section 2.2.1.13.2.1).\n" \
"(b) There is not enough data to read the sourceDescriptor, numberCapabilities, pad2Octets, and capabilitySets " \
"fields of the Confirm Active PDU Data (section 2.2.1.13.2.1)."
#define ERRINFO_CONNECT_FAILED_STRING
Value:
"Processing during the Channel Connection phase of the RDP Connection Sequence " \
"(see section 1.3.1.1 for an overview of the RDP Connection Sequence phases) has failed."
#define ERRINFO_CONTROL_PDU_SEQUENCE_STRING   "An out-of-sequence Slow-Path Non-Data PDU (section 2.2.8.1.1.1.1) has been received."
#define ERRINFO_CREATE_USER_DATA_FAILED_STRING   "The server failed to construct the GCC Conference Create Response user data (section 2.2.1.4)."
#define ERRINFO_DATA_PDU_SEQUENCE_STRING   "An out-of-sequence Slow-Path Data PDU (section 2.2.8.1.1.1.1) has been received."
#define ERRINFO_DECRYPT_FAILED2_STRING   "Unencrypted data was encountered in a protocol stream which is meant to be encrypted with Standard RDP Security mechanisms (section 5.3.6)."
#define ERRINFO_DECRYPT_FAILED_STRING
Value:
"(a) Decryption using Standard RDP Security mechanisms (section 5.3.6) failed.\n" \
"(b) Session key creation using Standard RDP Security mechanisms (section 5.3.5) failed."
#define ERRINFO_DEFINE (   _code)    { ERRINFO_##_code , "ERRINFO_" #_code , ERRINFO_##_code##_STRING }
#define ERRINFO_DISCONNECTED_BY_OTHER_CONNECTION_STRING   "Another user connected to the server, forcing the disconnection of the current connection."
#define ERRINFO_DRAWNINEGRID_CACHE_ERROR_PDU_BAD_LENGTH_STRING   "There is not enough data to process a DrawNineGrid Cache Error PDU ([MS-RDPEGDI] section 2.2.2.3.3)."
#define ERRINFO_DYNAMIC_DST_DISABLED_FIELD_MISSING_STRING   "The dynamicDaylightTimeDisabled field is not present in the Extended Info Packet (section 2.2.1.11.1.1.1)."
#define ERRINFO_ENCRYPT_FAILED_STRING   "Encryption using Standard RDP Security mechanisms (section 5.3.6) failed."
#define ERRINFO_ENCRYPTION_PACKAGE_MISMATCH_STRING   "Failed to find a usable Encryption Method (section 5.3.2) in the encryptionMethods field of the Client Security Data (section 2.2.1.4.3)."
#define ERRINFO_GDIPLUS_PDU_BAD_LENGTH_STRING   "There is not enough data to process a GDI+ Error PDU ([MS-RDPEGDI] section 2.2.2.3.4)."
#define ERRINFO_GRAPHICS_MODE_NOT_SUPPORTED_STRING   "The graphics mode requested by the client is not supported by the server."
#define ERRINFO_GRAPHICS_SUBSYSTEM_FAILED_STRING   "The server-side graphics subsystem is in an error state and unable to continue graphics encoding."
#define ERRINFO_GRAPHICS_SUBSYSTEM_RESET_FAILED_STRING   "The server-side graphics subsystem failed to reset."
#define ERRINFO_IDLE_TIMEOUT_STRING   "The idle session limit timer on the server has elapsed."
#define ERRINFO_INPUT_PDU_BAD_LENGTH_STRING   "There is not enough data to process Input Event PDU Data (section 2.2.8.1.1.3.1) or a Fast-Path Input Event PDU (section 2.2.8.1.2)." \
#define ERRINFO_INVALID_CHANNEL_ID_STRING   "An invalid MCS channel ID was specified in the mcsPdu field of the Virtual Channel PDU (section 2.2.6.1)."
#define ERRINFO_INVALID_CONTROL_PDU_ACTION_STRING   "A Control PDU (sections 2.2.1.15 and 2.2.1.16) has been received with an invalid action field."
#define ERRINFO_INVALID_INPUT_PDU_MOUSE_STRING
Value:
"(a) A Slow-Path Mouse Event (section 2.2.8.1.1.3.1.1.3) or Extended Mouse Event " \
"(section 2.2.8.1.1.3.1.1.4) has been received with an invalid pointerFlags field.\n" \
"(b) A Fast-Path Mouse Event (section 2.2.8.1.2.2.3) or Fast-Path Extended Mouse Event " \
"(section 2.2.8.1.2.2.4) has been received with an invalid pointerFlags field."
#define ERRINFO_INVALID_INPUT_PDU_TYPE_STRING
Value:
"(a) A Slow-Path Input Event (section 2.2.8.1.1.3.1.1) has been received with an invalid messageType field.\n" \
"(b) A Fast-Path Input Event (section 2.2.8.1.2.2) has been received with an invalid eventCode field."
#define ERRINFO_INVALID_REFRESH_RECT_PDU_STRING   "An invalid Refresh Rect PDU (section 2.2.11.2) has been received."
#define ERRINFO_INVALID_VC_COMPRESSION_TYPE_STRING   "An invalid bulk compression package was specified in the flags field of the Channel PDU Header (section 2.2.6.1.1)."
#define ERRINFO_INVALIDMONITORCOUNT_STRING   "The monitorCount field in the Client Monitor Data(section 2.2.1.3.6) is too large."
#define ERRINFO_LICENSE_BAD_CLIENT_ENCRYPTION_STRING   "A licensing message ([MS-RDPELE] sections 2.2 and 5.1) was incorrectly encrypted."
#define ERRINFO_LICENSE_BAD_CLIENT_LICENSE_STRING   "The Client Access License ([MS-RDPELE] section 1.1) stored by the client is in an invalid format."
#define ERRINFO_LICENSE_BAD_CLIENT_MSG_STRING   "The remote computer received an invalid licensing message from the client."
#define ERRINFO_LICENSE_CANT_FINISH_PROTOCOL_STRING   "Network problems have caused the licensing protocol ([MS-RDPELE] section 1.3.3) to be terminated."
#define ERRINFO_LICENSE_CANT_UPGRADE_LICENSE_STRING   "The Client Access License ([MS-RDPELE] section 1.1) stored by the client could not be upgraded or renewed."
#define ERRINFO_LICENSE_CLIENT_ENDED_PROTOCOL_STRING   "The client prematurely ended the licensing protocol ([MS-RDPELE] section 1.3.3)."
#define ERRINFO_LICENSE_HWID_DOESNT_MATCH_LICENSE_STRING   "The Client Access License ([MS-RDPELE] section 1.1) stored by the client has been modified."
#define ERRINFO_LICENSE_INTERNAL_STRING   "An internal error has occurred in the Terminal Services licensing component."
#define ERRINFO_LICENSE_NO_LICENSE_SERVER_STRING   "A Remote Desktop License Server ([MS-RDPELE] section 1.1) could not be found to provide a license."
#define ERRINFO_LICENSE_NO_LICENSE_STRING   "There are no Client Access Licenses ([MS-RDPELE] section 1.1) available for the target remote computer."
#define ERRINFO_LICENSE_NO_REMOTE_CONNECTIONS_STRING   "The remote computer is not licensed to accept remote connections."
#define ERRINFO_LOGOFF_BY_USER_STRING   "The disconnection was initiated by the user logging off their session on the server."
#define ERRINFO_LOGON_TIMEOUT_STRING   "The active session limit timer on the server has elapsed."
#define ERRINFO_MONITORGEOMETRYVALIDATIONFAILED_STRING   "The monitor geometry defined by the Client Monitor Data (section 2.2.1.3.6) is invalid."
#define ERRINFO_NO_CURSOR_CACHE_STRING
Value:
"(a) Both the colorPointerCacheSize and pointerCacheSize fields in the Pointer Capability Set (section 2.2.7.1.5) are set to zero.\n" \
"(b) The pointerCacheSize field in the Pointer Capability Set (section 2.2.7.1.5) is not present, and the colorPointerCacheSize field is set to zero."
#define ERRINFO_NONE_STRING   ""
#define ERRINFO_OFFSCREEN_CACHE_ERROR_PDU_BAD_LENGTH_STRING   "There is not enough data to process an Offscreen Bitmap Cache Error PDU ([MS-RDPEGDI] section 2.2.2.3.2)."
#define ERRINFO_OUT_OF_MEMORY_STRING   "The server ran out of available memory resources."
#define ERRINFO_PEER_DISCONNECTED_STRING   "The peer connection was lost."
#define ERRINFO_PERSISTENT_KEY_PDU_BAD_LENGTH_STRING   "There is not enough data to process a Persistent Key List PDU (section 2.2.1.17)."
#define ERRINFO_PERSISTENT_KEY_PDU_ILLEGAL_FIRST_STRING
Value:
"A Persistent Key List PDU (section 2.2.1.17) marked as PERSIST_PDU_FIRST (0x01) was received after the reception " \
"of a prior Persistent Key List PDU also marked as PERSIST_PDU_FIRST."
#define ERRINFO_PERSISTENT_KEY_PDU_TOO_MANY_CACHE_KEYS_STRING
Value:
"A Persistent Key List PDU (section 2.2.1.17) was received which specified an invalid total number of keys for a bitmap cache " \
"(the number of entries that can be stored within each bitmap cache is specified in the Revision 1 or 2 Bitmap Cache Capability Set " \
"(section 2.2.7.1.4) that is sent from client to server)."
#define ERRINFO_PERSISTENT_KEY_PDU_TOO_MANY_TOTAL_KEYS_STRING   "A Persistent Key List PDU (section 2.2.1.17) was received which specified a total number of bitmap cache entries larger than 262144."
#define ERRINFO_REMOTEAPP_NOT_ENABLED_STRING
Value:
"The INFO_RAIL flag (0x00008000) MUST be set in the flags field of the Info Packet (section 2.2.1.11.1.1) " \
"as the session on the remote server can only host remote applications."
#define ERRINFO_RPC_INITIATED_DISCONNECT_BY_USER_STRING   "The disconnection was initiated by an administrative tool on the server running in the user's session."
#define ERRINFO_RPC_INITIATED_DISCONNECT_STRING   "The disconnection was initiated by an administrative tool on the server in another session."
#define ERRINFO_RPC_INITIATED_LOGOFF_STRING   "The disconnection was due to a forced logoff initiated by an administrative tool on the server in another session."
#define ERRINFO_SECURITY_DATA_TOO_SHORT10_STRING   "There is not enough data to read the clientDir field in the Extended Info Packet (section 2.2.1.11.1.1.1)."
#define ERRINFO_SECURITY_DATA_TOO_SHORT11_STRING   "There is not enough data to read the clientTimeZone field in the Extended Info Packet (section 2.2.1.11.1.1.1)."
#define ERRINFO_SECURITY_DATA_TOO_SHORT12_STRING   "There is not enough data to read the clientSessionId field in the Extended Info Packet (section 2.2.1.11.1.1.1)."
#define ERRINFO_SECURITY_DATA_TOO_SHORT13_STRING   "There is not enough data to read the performanceFlags field in the Extended Info Packet (section 2.2.1.11.1.1.1)."
#define ERRINFO_SECURITY_DATA_TOO_SHORT14_STRING   "There is not enough data to read the cbAutoReconnectLen field in the Extended Info Packet (section 2.2.1.11.1.1.1)."
#define ERRINFO_SECURITY_DATA_TOO_SHORT15_STRING   "There is not enough data to read the autoReconnectCookie field in the Extended Info Packet (section 2.2.1.11.1.1.1)."
#define ERRINFO_SECURITY_DATA_TOO_SHORT16_STRING
Value:
"The cbAutoReconnectLen field in the Extended Info Packet (section 2.2.1.11.1.1.1) contains a value " \
"which is larger than the maximum allowed length of 128 bytes."
#define ERRINFO_SECURITY_DATA_TOO_SHORT17_STRING   "There is not enough data to read the clientAddressFamily and cbClientAddress fields in the Extended Info Packet (section 2.2.1.11.1.1.1)."
#define ERRINFO_SECURITY_DATA_TOO_SHORT18_STRING   "There is not enough data to read the clientAddress field in the Extended Info Packet (section 2.2.1.11.1.1.1)."
#define ERRINFO_SECURITY_DATA_TOO_SHORT19_STRING   "There is not enough data to read the cbClientDir field in the Extended Info Packet (section 2.2.1.11.1.1.1)."
#define ERRINFO_SECURITY_DATA_TOO_SHORT20_STRING   "There is not enough data to read the clientDir field in the Extended Info Packet (section 2.2.1.11.1.1.1)."
#define ERRINFO_SECURITY_DATA_TOO_SHORT21_STRING   "There is not enough data to read the clientTimeZone field in the Extended Info Packet (section 2.2.1.11.1.1.1)."
#define ERRINFO_SECURITY_DATA_TOO_SHORT22_STRING   "There is not enough data to read the clientSessionId field in the Extended Info Packet (section 2.2.1.11.1.1.1)."
#define ERRINFO_SECURITY_DATA_TOO_SHORT23_STRING   "There is not enough data to read the Client Info PDU Data (section 2.2.1.11.1)."
#define ERRINFO_SECURITY_DATA_TOO_SHORT2_STRING   "There is not enough data to read a Basic Security Header (section 2.2.8.1.1.2.1)."
#define ERRINFO_SECURITY_DATA_TOO_SHORT3_STRING   "There is not enough data to read a Non-FIPS Security Header (section 2.2.8.1.1.2.2) or FIPS Security Header (section 2.2.8.1.1.2.3)."
#define ERRINFO_SECURITY_DATA_TOO_SHORT4_STRING   "There is not enough data to read the basicSecurityHeader and length fields of the Security Exchange PDU Data (section 2.2.1.10.1)."
#define ERRINFO_SECURITY_DATA_TOO_SHORT5_STRING
Value:
"There is not enough data to read the CodePage, flags, cbDomain, cbUserName, cbPassword, cbAlternateShell, " \
"cbWorkingDir, Domain, UserName, Password, AlternateShell, and WorkingDir fields in the Info Packet (section 2.2.1.11.1.1)."
#define ERRINFO_SECURITY_DATA_TOO_SHORT6_STRING
Value:
"There is not enough data to read the CodePage, flags, cbDomain, cbUserName, cbPassword, cbAlternateShell, " \
"and cbWorkingDir fields in the Info Packet (section 2.2.1.11.1.1)."
#define ERRINFO_SECURITY_DATA_TOO_SHORT7_STRING   "There is not enough data to read the clientAddressFamily and cbClientAddress fields in the Extended Info Packet (section 2.2.1.11.1.1.1)."
#define ERRINFO_SECURITY_DATA_TOO_SHORT8_STRING   "There is not enough data to read the clientAddress field in the Extended Info Packet (section 2.2.1.11.1.1.1)."
#define ERRINFO_SECURITY_DATA_TOO_SHORT9_STRING   "There is not enough data to read the cbClientDir field in the Extended Info Packet (section 2.2.1.11.1.1.1)."
#define ERRINFO_SECURITY_DATA_TOO_SHORT_STRING
Value:
"(a) The dataSignature field of the Fast-Path Input Event PDU (section 2.2.8.1.2) does not contain enough data.\n" \
"(b) The fipsInformation and dataSignature fields of the Fast-Path Input Event PDU (section 2.2.8.1.2) do not contain enough data."
#define ERRINFO_SERVER_DENIED_CONNECTION_STRING   "The server denied the connection."
#define ERRINFO_SERVER_FRESH_CREDENTIALS_REQUIRED_STRING   "The server does not accept saved user credentials and requires that the user enter their credentials for each connection."
#define ERRINFO_SERVER_INSUFFICIENT_PRIVILEGES_STRING   "The user cannot connect to the server due to insufficient access privileges."
#define ERRINFO_SHARE_DATA_TOO_SHORT_STRING
Value:
"(a) There is not enough data to process Control PDU Data (section 2.2.1.15.1).\n" \
"(b) There is not enough data to read a complete Share Control Header (section 2.2.8.1.1.1.1).\n" \
"(c) There is not enough data to read a complete Share Data Header (section 2.2.8.1.1.1.2) of a Slow-Path Data PDU (section 2.2.8.1.1.1.1).\n" \
"(d) There is not enough data to process Font List PDU Data (section 2.2.1.18.1)."
#define ERRINFO_SUCCESS_STRING   "Success."
#define ERRINFO_TIMEZONE_KEY_NAME_LENGTH_TOO_LONG_STRING   "The length reported in the cbDynamicDSTTimeZoneKeyName field of the Extended Info Packet (section 2.2.1.11.1.1.1) is too long."
#define ERRINFO_TIMEZONE_KEY_NAME_LENGTH_TOO_SHORT_STRING   "There is not enough data to read the cbDynamicDSTTimeZoneKeyName field in the Extended Info Packet (section 2.2.1.11.1.1.1)."
#define ERRINFO_UNKNOWN_DATA_PDU_TYPE_STRING   "Unknown pduType2 field in a received Share Data Header (section 2.2.8.1.1.1.2)."
#define ERRINFO_UNKNOWN_PDU_TYPE_STRING   "Unknown pduType field in a received Share Control Header (section 2.2.8.1.1.1.1)."
#define ERRINFO_UPDATE_SESSION_KEY_FAILED_STRING   "An attempt to update the session keys while using Standard RDP Security mechanisms (section 5.3.7) failed."
#define ERRINFO_VC_DATA_TOO_LONG_STRING
Value:
"The size of a received Virtual Channel PDU (section 2.2.6.1) exceeds the chunking size specified " \
"in the Virtual Channel Capability Set (section 2.2.7.1.10)."
#define ERRINFO_VC_DECODING_ERROR_STRING   "An error occurred when processing dynamic virtual channel data ([MS-RDPEDYC] section 3.3.5)."
#define ERRINFO_VC_DECOMPRESSED_REASSEMBLE_FAILED_STRING
Value:
"The server-side decompression buffer is invalid, or the size of the decompressed VC data exceeds " \
"the chunking size specified in the Virtual Channel Capability Set (section 2.2.7.1.10)."
#define ERRINFO_VCHANNEL_DATA_TOO_SHORT_STRING
Value:
"(a) There is not enough data in the Client Network Data (section 2.2.1.3.4) to read the virtual channel configuration data.\n" \
"(b) There is not enough data to read a complete Channel PDU Header (section 2.2.6.1.1)."
#define ERRINFO_VCHANNELS_TOO_MANY_STRING   "The client requested more than the maximum allowed 31 static virtual channels in the Client Network Data (section 2.2.1.3.4)."
#define ERRINFO_VIRTUAL_CHANNEL_DECOMPRESSION_STRING   "An error occurred while using the bulk compressor (section 3.1.8 and [MS-RDPEGDI] section 3.1.8) to decompress a Virtual Channel PDU (section 2.2.6.1)"
#define ERRINFO_VIRTUALDESKTOPTOOLARGE_STRING
Value:
"The width or height of the virtual desktop defined by the monitor layout in the Client Monitor Data " \
"(section 2.2.1.3.6) is larger than the maximum allowed value of 32,766."
#define TAG   FREERDP_TAG("core")

FreeRDP: A Remote Desktop Protocol Implementation Error Info

Copyright 2011 Marc-Andre Moreau marca.nosp@m.ndre.nosp@m..more.nosp@m.au@g.nosp@m.mail..nosp@m.com

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Function Documentation

const char* freerdp_get_error_info_name ( UINT32  code)

Here is the caller graph for this function:

const char* freerdp_get_error_info_string ( UINT32  code)

Here is the caller graph for this function:

void rdp_print_errinfo ( UINT32  code)

Here is the caller graph for this function:

Variable Documentation

int connectErrorCode

This static variable holds an error code if the return value from connect is FALSE. This variable is always set to 0 in the beginning of the connect sequence. The returned code can be used to inform the user of the detailed connect error. The value can hold one of the defined error codes below OR an error according to errno

const ERRINFO ERRINFO_CODES[]
static