2011-08-08 07:59:28 +04:00
|
|
|
/**
|
2012-10-09 07:02:04 +04:00
|
|
|
* FreeRDP: A Remote Desktop Protocol Implementation
|
2011-08-08 07:59:28 +04:00
|
|
|
* Error Info
|
|
|
|
*
|
|
|
|
* Copyright 2011 Marc-Andre Moreau <marcandre.moreau@gmail.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.
|
|
|
|
*/
|
|
|
|
|
2022-02-16 13:20:38 +03:00
|
|
|
#include <freerdp/config.h>
|
2012-08-15 01:09:01 +04:00
|
|
|
|
2012-09-24 02:41:07 +04:00
|
|
|
#include <stdio.h>
|
|
|
|
|
2014-09-12 16:36:29 +04:00
|
|
|
#include <freerdp/log.h>
|
2014-08-07 18:51:24 +04:00
|
|
|
|
2011-08-08 07:59:28 +04:00
|
|
|
#include "errinfo.h"
|
|
|
|
|
2014-09-12 16:36:29 +04:00
|
|
|
#define TAG FREERDP_TAG("core")
|
|
|
|
|
2019-11-06 17:24:51 +03:00
|
|
|
#define ERRINFO_DEFINE(_code, category) \
|
|
|
|
{ \
|
|
|
|
ERRINFO_##_code, "ERRINFO_" #_code, ERRINFO_##_code##_STRING, category \
|
|
|
|
}
|
2015-03-19 13:05:16 +03:00
|
|
|
|
2011-08-08 07:59:28 +04:00
|
|
|
/* Protocol-independent codes */
|
|
|
|
|
2011-11-30 05:00:27 +04:00
|
|
|
#define ERRINFO_RPC_INITIATED_DISCONNECT_STRING \
|
2018-11-20 20:01:13 +03:00
|
|
|
"The disconnection was initiated by an administrative tool on the server in another session."
|
2011-08-08 07:59:28 +04:00
|
|
|
|
2019-11-06 17:24:51 +03:00
|
|
|
#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."
|
2011-08-08 07:59:28 +04:00
|
|
|
|
2019-11-06 17:24:51 +03:00
|
|
|
#define ERRINFO_IDLE_TIMEOUT_STRING "The idle session limit timer on the server has elapsed."
|
2011-08-08 07:59:28 +04:00
|
|
|
|
2019-11-06 17:24:51 +03:00
|
|
|
#define ERRINFO_LOGON_TIMEOUT_STRING "The active session limit timer on the server has elapsed."
|
2011-08-08 07:59:28 +04:00
|
|
|
|
2011-11-30 05:00:27 +04:00
|
|
|
#define ERRINFO_DISCONNECTED_BY_OTHER_CONNECTION_STRING \
|
2018-11-20 20:01:13 +03:00
|
|
|
"Another user connected to the server, forcing the disconnection of the current connection."
|
2011-08-08 07:59:28 +04:00
|
|
|
|
2019-11-06 17:24:51 +03:00
|
|
|
#define ERRINFO_OUT_OF_MEMORY_STRING "The server ran out of available memory resources."
|
2011-08-08 07:59:28 +04:00
|
|
|
|
2019-11-06 17:24:51 +03:00
|
|
|
#define ERRINFO_SERVER_DENIED_CONNECTION_STRING "The server denied the connection."
|
2011-08-08 07:59:28 +04:00
|
|
|
|
2011-11-30 05:00:27 +04:00
|
|
|
#define ERRINFO_SERVER_INSUFFICIENT_PRIVILEGES_STRING \
|
2018-11-20 20:01:13 +03:00
|
|
|
"The user cannot connect to the server due to insufficient access privileges."
|
2011-08-08 07:59:28 +04:00
|
|
|
|
2019-11-06 17:24:51 +03:00
|
|
|
#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."
|
2011-08-08 07:59:28 +04:00
|
|
|
|
2019-11-06 17:24:51 +03:00
|
|
|
#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."
|
2011-08-08 07:59:28 +04:00
|
|
|
|
2013-02-13 01:25:16 +04:00
|
|
|
#define ERRINFO_LOGOFF_BY_USER_STRING \
|
2018-11-20 20:01:13 +03:00
|
|
|
"The disconnection was initiated by the user logging off their session on the server."
|
2013-02-13 01:25:16 +04:00
|
|
|
|
2019-11-06 17:24:51 +03:00
|
|
|
#define ERRINFO_CLOSE_STACK_ON_DRIVER_NOT_READY_STRING \
|
|
|
|
"The display driver in the remote session did not report any status within the time allotted " \
|
|
|
|
"for startup."
|
2019-10-02 16:15:59 +03:00
|
|
|
|
|
|
|
#define ERRINFO_SERVER_DWM_CRASH_STRING \
|
|
|
|
"The DWM process running in the remote session terminated unexpectedly."
|
|
|
|
|
2019-11-06 17:24:51 +03:00
|
|
|
#define ERRINFO_CLOSE_STACK_ON_DRIVER_FAILURE_STRING \
|
|
|
|
"The display driver in the remote session was unable to complete all the tasks required for " \
|
|
|
|
"startup."
|
2019-10-02 16:15:59 +03:00
|
|
|
|
2019-11-06 17:24:51 +03:00
|
|
|
#define ERRINFO_CLOSE_STACK_ON_DRIVER_IFACE_FAILURE_STRING \
|
|
|
|
"The display driver in the remote session started up successfully, but due to internal " \
|
|
|
|
"failures was not usable by the remoting stack."
|
2019-10-02 16:15:59 +03:00
|
|
|
|
|
|
|
#define ERRINFO_SERVER_WINLOGON_CRASH_STRING \
|
|
|
|
"The Winlogon process running in the remote session terminated unexpectedly."
|
|
|
|
|
|
|
|
#define ERRINFO_SERVER_CSRSS_CRASH_STRING \
|
|
|
|
"The CSRSS process running in the remote session terminated unexpectedly."
|
|
|
|
|
2013-11-07 01:25:59 +04:00
|
|
|
/* Protocol-independent codes generated by the Connection Broker */
|
|
|
|
|
2019-11-06 17:24:51 +03:00
|
|
|
#define ERRINFO_CB_DESTINATION_NOT_FOUND_STRING "The target endpoint could not be found."
|
2013-11-07 01:25:59 +04:00
|
|
|
|
2019-11-06 17:24:51 +03:00
|
|
|
#define ERRINFO_CB_LOADING_DESTINATION_STRING \
|
|
|
|
"The target endpoint to which the client is being redirected is disconnecting from the " \
|
|
|
|
"Connection Broker."
|
2013-11-07 01:25:59 +04:00
|
|
|
|
2019-11-06 17:24:51 +03:00
|
|
|
#define ERRINFO_CB_REDIRECTING_TO_DESTINATION_STRING \
|
2018-11-20 20:01:13 +03:00
|
|
|
"An error occurred while the connection was being redirected to the target endpoint."
|
2013-11-07 01:25:59 +04:00
|
|
|
|
2019-11-06 17:24:51 +03:00
|
|
|
#define ERRINFO_CB_SESSION_ONLINE_VM_WAKE_STRING \
|
2018-11-20 20:01:13 +03:00
|
|
|
"An error occurred while the target endpoint (a virtual machine) was being awakened."
|
2013-11-07 01:25:59 +04:00
|
|
|
|
2019-11-06 17:24:51 +03:00
|
|
|
#define ERRINFO_CB_SESSION_ONLINE_VM_BOOT_STRING \
|
2018-11-20 20:01:13 +03:00
|
|
|
"An error occurred while the target endpoint (a virtual machine) was being started."
|
2013-11-07 01:25:59 +04:00
|
|
|
|
2019-11-06 17:24:51 +03:00
|
|
|
#define ERRINFO_CB_SESSION_ONLINE_VM_NO_DNS_STRING \
|
2018-11-20 20:01:13 +03:00
|
|
|
"The IP address of the target endpoint (a virtual machine) cannot be determined."
|
2013-11-07 01:25:59 +04:00
|
|
|
|
2019-11-06 17:24:51 +03:00
|
|
|
#define ERRINFO_CB_DESTINATION_POOL_NOT_FREE_STRING \
|
2018-11-20 20:01:13 +03:00
|
|
|
"There are no available endpoints in the pool managed by the Connection Broker."
|
2013-11-07 01:25:59 +04:00
|
|
|
|
2019-11-06 17:24:51 +03:00
|
|
|
#define ERRINFO_CB_CONNECTION_CANCELLED_STRING "Processing of the connection has been cancelled."
|
2013-11-07 01:25:59 +04:00
|
|
|
|
2019-11-06 17:24:51 +03:00
|
|
|
#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."
|
2013-11-07 01:25:59 +04:00
|
|
|
|
2019-11-06 17:24:51 +03:00
|
|
|
#define ERRINFO_CB_SESSION_ONLINE_VM_BOOT_TIMEOUT_STRING \
|
2018-11-20 20:01:13 +03:00
|
|
|
"A time-out occurred while the target endpoint (a virtual machine) was being started."
|
2013-11-07 01:25:59 +04:00
|
|
|
|
2019-11-06 17:24:51 +03:00
|
|
|
#define ERRINFO_CB_SESSION_ONLINE_VM_SESSMON_FAILED_STRING \
|
|
|
|
"A session monitoring error occurred while the target endpoint (a virtual machine) was being " \
|
|
|
|
"started."
|
2013-11-07 01:25:59 +04:00
|
|
|
|
2011-08-08 07:59:28 +04:00
|
|
|
/* Protocol-independent licensing codes */
|
|
|
|
|
2011-11-30 05:00:27 +04:00
|
|
|
#define ERRINFO_LICENSE_INTERNAL_STRING \
|
2018-11-20 20:01:13 +03:00
|
|
|
"An internal error has occurred in the Terminal Services licensing component."
|
2011-08-08 07:59:28 +04:00
|
|
|
|
2019-11-06 17:24:51 +03:00
|
|
|
#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."
|
2011-08-08 07:59:28 +04:00
|
|
|
|
2019-11-06 17:24:51 +03:00
|
|
|
#define ERRINFO_LICENSE_NO_LICENSE_STRING \
|
|
|
|
"There are no Client Access Licenses ([MS-RDPELE] section 1.1) available for the target " \
|
|
|
|
"remote computer."
|
2011-08-08 07:59:28 +04:00
|
|
|
|
2011-11-30 05:00:27 +04:00
|
|
|
#define ERRINFO_LICENSE_BAD_CLIENT_MSG_STRING \
|
2018-11-20 20:01:13 +03:00
|
|
|
"The remote computer received an invalid licensing message from the client."
|
2011-08-08 07:59:28 +04:00
|
|
|
|
2011-11-30 05:00:27 +04:00
|
|
|
#define ERRINFO_LICENSE_HWID_DOESNT_MATCH_LICENSE_STRING \
|
2018-11-20 20:01:13 +03:00
|
|
|
"The Client Access License ([MS-RDPELE] section 1.1) stored by the client has been modified."
|
2011-08-08 07:59:28 +04:00
|
|
|
|
2019-11-06 17:24:51 +03:00
|
|
|
#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."
|
2011-08-08 07:59:28 +04:00
|
|
|
|
2019-11-06 17:24:51 +03:00
|
|
|
#define ERRINFO_LICENSE_CANT_FINISH_PROTOCOL_STRING \
|
|
|
|
"Network problems have caused the licensing protocol ([MS-RDPELE] section 1.3.3) to be " \
|
|
|
|
"terminated."
|
2011-08-08 07:59:28 +04:00
|
|
|
|
2011-11-30 05:00:27 +04:00
|
|
|
#define ERRINFO_LICENSE_CLIENT_ENDED_PROTOCOL_STRING \
|
2018-11-20 20:01:13 +03:00
|
|
|
"The client prematurely ended the licensing protocol ([MS-RDPELE] section 1.3.3)."
|
2011-08-08 07:59:28 +04:00
|
|
|
|
2011-11-30 05:00:27 +04:00
|
|
|
#define ERRINFO_LICENSE_BAD_CLIENT_ENCRYPTION_STRING \
|
2018-11-20 20:01:13 +03:00
|
|
|
"A licensing message ([MS-RDPELE] sections 2.2 and 5.1) was incorrectly encrypted."
|
2011-08-08 07:59:28 +04:00
|
|
|
|
2019-11-06 17:24:51 +03:00
|
|
|
#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."
|
2011-08-08 07:59:28 +04:00
|
|
|
|
2011-11-30 05:00:27 +04:00
|
|
|
#define ERRINFO_LICENSE_NO_REMOTE_CONNECTIONS_STRING \
|
2018-11-20 20:01:13 +03:00
|
|
|
"The remote computer is not licensed to accept remote connections."
|
2011-08-08 07:59:28 +04:00
|
|
|
|
|
|
|
/* RDP specific codes */
|
|
|
|
|
2011-11-30 05:00:27 +04:00
|
|
|
#define ERRINFO_UNKNOWN_DATA_PDU_TYPE_STRING \
|
2018-11-20 20:01:13 +03:00
|
|
|
"Unknown pduType2 field in a received Share Data Header (section 2.2.8.1.1.1.2)."
|
2011-08-08 07:59:28 +04:00
|
|
|
|
2011-11-30 05:00:27 +04:00
|
|
|
#define ERRINFO_UNKNOWN_PDU_TYPE_STRING \
|
2018-11-20 20:01:13 +03:00
|
|
|
"Unknown pduType field in a received Share Control Header (section 2.2.8.1.1.1.1)."
|
2011-08-08 07:59:28 +04:00
|
|
|
|
2011-11-30 05:00:27 +04:00
|
|
|
#define ERRINFO_DATA_PDU_SEQUENCE_STRING \
|
2018-11-20 20:01:13 +03:00
|
|
|
"An out-of-sequence Slow-Path Data PDU (section 2.2.8.1.1.1.1) has been received."
|
2011-08-08 07:59:28 +04:00
|
|
|
|
2011-11-30 05:00:27 +04:00
|
|
|
#define ERRINFO_CONTROL_PDU_SEQUENCE_STRING \
|
2018-11-20 20:01:13 +03:00
|
|
|
"An out-of-sequence Slow-Path Non-Data PDU (section 2.2.8.1.1.1.1) has been received."
|
2011-08-08 07:59:28 +04:00
|
|
|
|
2019-11-06 17:24:51 +03:00
|
|
|
#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."
|
2011-08-08 07:59:28 +04:00
|
|
|
|
2019-11-06 17:24:51 +03:00
|
|
|
#define ERRINFO_INVALID_INPUT_PDU_TYPE_STRING \
|
|
|
|
"(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."
|
2011-08-08 07:59:28 +04:00
|
|
|
|
2019-11-06 17:24:51 +03:00
|
|
|
#define ERRINFO_INVALID_INPUT_PDU_MOUSE_STRING \
|
|
|
|
"(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" \
|
2018-11-20 20:01:13 +03:00
|
|
|
"(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."
|
2011-08-08 07:59:28 +04:00
|
|
|
|
2011-11-30 05:00:27 +04:00
|
|
|
#define ERRINFO_INVALID_REFRESH_RECT_PDU_STRING \
|
2018-11-20 20:01:13 +03:00
|
|
|
"An invalid Refresh Rect PDU (section 2.2.11.2) has been received."
|
2011-08-08 07:59:28 +04:00
|
|
|
|
2019-11-06 17:24:51 +03:00
|
|
|
#define ERRINFO_CREATE_USER_DATA_FAILED_STRING \
|
|
|
|
"The server failed to construct the GCC Conference Create Response user data (section " \
|
|
|
|
"2.2.1.4)."
|
2011-08-08 07:59:28 +04:00
|
|
|
|
2019-11-06 17:24:51 +03:00
|
|
|
#define ERRINFO_CONNECT_FAILED_STRING \
|
2018-11-20 20:01:13 +03:00
|
|
|
"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."
|
2011-08-08 07:59:28 +04:00
|
|
|
|
2019-11-06 17:24:51 +03:00
|
|
|
#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."
|
2011-08-08 07:59:28 +04:00
|
|
|
|
2019-11-06 17:24:51 +03:00
|
|
|
#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."
|
2011-08-08 07:59:28 +04:00
|
|
|
|
2011-11-30 05:00:27 +04:00
|
|
|
#define ERRINFO_PERSISTENT_KEY_PDU_BAD_LENGTH_STRING \
|
2018-11-20 20:01:13 +03:00
|
|
|
"There is not enough data to process a Persistent Key List PDU (section 2.2.1.17)."
|
2011-08-08 07:59:28 +04:00
|
|
|
|
2019-11-06 17:24:51 +03:00
|
|
|
#define ERRINFO_PERSISTENT_KEY_PDU_ILLEGAL_FIRST_STRING \
|
|
|
|
"A Persistent Key List PDU (section 2.2.1.17) marked as PERSIST_PDU_FIRST (0x01) was " \
|
|
|
|
"received after the reception " \
|
2018-11-20 20:01:13 +03:00
|
|
|
"of a prior Persistent Key List PDU also marked as PERSIST_PDU_FIRST."
|
2011-08-08 07:59:28 +04:00
|
|
|
|
2019-11-06 17:24:51 +03:00
|
|
|
#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."
|
2011-08-08 07:59:28 +04:00
|
|
|
|
2019-11-06 17:24:51 +03:00
|
|
|
#define ERRINFO_PERSISTENT_KEY_PDU_TOO_MANY_CACHE_KEYS_STRING \
|
|
|
|
"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 " \
|
2018-11-20 20:01:13 +03:00
|
|
|
"(section 2.2.7.1.4) that is sent from client to server)."
|
2011-08-08 07:59:28 +04:00
|
|
|
|
2019-11-06 17:24:51 +03:00
|
|
|
#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)."
|
2011-08-08 07:59:28 +04:00
|
|
|
|
2019-11-06 17:24:51 +03:00
|
|
|
#define ERRINFO_BITMAP_CACHE_ERROR_PDU_BAD_LENGTH_STRING \
|
2018-11-20 20:01:13 +03:00
|
|
|
"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)."
|
2011-08-08 07:59:28 +04:00
|
|
|
|
2019-11-06 17:24:51 +03:00
|
|
|
#define ERRINFO_SECURITY_DATA_TOO_SHORT_STRING \
|
|
|
|
"(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."
|
2011-08-08 07:59:28 +04:00
|
|
|
|
2019-11-06 17:24:51 +03:00
|
|
|
#define ERRINFO_VCHANNEL_DATA_TOO_SHORT_STRING \
|
|
|
|
"(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" \
|
2018-11-20 20:01:13 +03:00
|
|
|
"(b) There is not enough data to read a complete Channel PDU Header (section 2.2.6.1.1)."
|
2011-08-08 07:59:28 +04:00
|
|
|
|
2019-11-06 17:24:51 +03:00
|
|
|
#define ERRINFO_SHARE_DATA_TOO_SHORT_STRING \
|
|
|
|
"(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" \
|
2018-11-20 20:01:13 +03:00
|
|
|
"(d) There is not enough data to process Font List PDU Data (section 2.2.1.18.1)."
|
2011-08-08 07:59:28 +04:00
|
|
|
|
2019-11-06 17:24:51 +03:00
|
|
|
#define ERRINFO_BAD_SUPPRESS_OUTPUT_PDU_STRING \
|
|
|
|
"(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_CONFIRM_ACTIVE_PDU_TOO_SHORT_STRING \
|
|
|
|
"(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 " \
|
2018-11-20 20:01:13 +03:00
|
|
|
"fields of the Confirm Active PDU Data (section 2.2.1.13.2.1)."
|
2011-08-08 07:59:28 +04:00
|
|
|
|
2019-11-06 17:24:51 +03:00
|
|
|
#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)."
|
2011-08-08 07:59:28 +04:00
|
|
|
|
2019-11-06 17:24:51 +03:00
|
|
|
#define ERRINFO_CAPABILITY_SET_TOO_LARGE_STRING \
|
2018-11-20 20:01:13 +03:00
|
|
|
"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."
|
2011-08-08 07:59:28 +04:00
|
|
|
|
2019-11-06 17:24:51 +03:00
|
|
|
#define ERRINFO_NO_CURSOR_CACHE_STRING \
|
|
|
|
"(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."
|
2011-08-08 07:59:28 +04:00
|
|
|
|
2019-11-06 17:24:51 +03:00
|
|
|
#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."
|
2011-08-08 07:59:28 +04:00
|
|
|
|
2019-11-06 17:24:51 +03:00
|
|
|
#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)"
|
2011-08-08 07:59:28 +04:00
|
|
|
|
2019-11-06 17:24:51 +03:00
|
|
|
#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)."
|
2011-08-08 07:59:28 +04:00
|
|
|
|
2019-11-06 17:24:51 +03:00
|
|
|
#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)."
|
2011-08-08 07:59:28 +04:00
|
|
|
|
2019-11-06 17:24:51 +03:00
|
|
|
#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)."
|
2011-08-08 07:59:28 +04:00
|
|
|
|
2019-11-06 17:24:51 +03:00
|
|
|
#define ERRINFO_REMOTEAPP_NOT_ENABLED_STRING \
|
|
|
|
"The INFO_RAIL flag (0x00008000) MUST be set in the flags field of the Info Packet (section " \
|
|
|
|
"2.2.1.11.1.1) " \
|
2018-11-20 20:01:13 +03:00
|
|
|
"as the session on the remote server can only host remote applications."
|
2011-08-08 07:59:28 +04:00
|
|
|
|
2019-11-06 17:24:51 +03:00
|
|
|
#define ERRINFO_CACHE_CAP_NOT_SET_STRING \
|
|
|
|
"The client sent a Persistent Key List PDU (section 2.2.1.17) without including the " \
|
|
|
|
"prerequisite Revision 2 Bitmap Cache " \
|
2018-11-20 20:01:13 +03:00
|
|
|
"Capability Set (section 2.2.7.1.4.2) in the Confirm Active PDU (section 2.2.1.13.2)."
|
2011-08-08 07:59:28 +04:00
|
|
|
|
2019-11-06 17:24:51 +03:00
|
|
|
#define ERRINFO_BITMAP_CACHE_ERROR_PDU_BAD_LENGTH2_STRING \
|
|
|
|
"The NumInfoBlocks field in the Bitmap Cache Error PDU Data is inconsistent with the amount " \
|
|
|
|
"of data in the " \
|
2018-11-20 20:01:13 +03:00
|
|
|
"Info field ([MS-RDPEGDI] section 2.2.2.3.1.1)."
|
2011-08-08 07:59:28 +04:00
|
|
|
|
2019-11-06 17:24:51 +03:00
|
|
|
#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)."
|
2011-08-08 07:59:28 +04:00
|
|
|
|
2019-11-06 17:24:51 +03:00
|
|
|
#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)."
|
2011-08-08 07:59:28 +04:00
|
|
|
|
2011-11-30 05:00:27 +04:00
|
|
|
#define ERRINFO_GDIPLUS_PDU_BAD_LENGTH_STRING \
|
2018-11-20 20:01:13 +03:00
|
|
|
"There is not enough data to process a GDI+ Error PDU ([MS-RDPEGDI] section 2.2.2.3.4)."
|
2011-08-08 07:59:28 +04:00
|
|
|
|
2011-11-30 05:00:27 +04:00
|
|
|
#define ERRINFO_SECURITY_DATA_TOO_SHORT2_STRING \
|
2018-11-20 20:01:13 +03:00
|
|
|
"There is not enough data to read a Basic Security Header (section 2.2.8.1.1.2.1)."
|
2011-08-08 07:59:28 +04:00
|
|
|
|
2019-11-06 17:24:51 +03:00
|
|
|
#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)."
|
2011-08-08 07:59:28 +04:00
|
|
|
|
2019-11-06 17:24:51 +03:00
|
|
|
#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)."
|
2011-08-08 07:59:28 +04:00
|
|
|
|
2019-11-06 17:24:51 +03:00
|
|
|
#define ERRINFO_SECURITY_DATA_TOO_SHORT5_STRING \
|
|
|
|
"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)."
|
2011-08-08 07:59:28 +04:00
|
|
|
|
2019-11-06 17:24:51 +03:00
|
|
|
#define ERRINFO_SECURITY_DATA_TOO_SHORT6_STRING \
|
|
|
|
"There is not enough data to read the CodePage, flags, cbDomain, cbUserName, cbPassword, " \
|
|
|
|
"cbAlternateShell, " \
|
2018-11-20 20:01:13 +03:00
|
|
|
"and cbWorkingDir fields in the Info Packet (section 2.2.1.11.1.1)."
|
2011-08-08 07:59:28 +04:00
|
|
|
|
2019-11-06 17:24:51 +03:00
|
|
|
#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)."
|
2011-08-08 07:59:28 +04:00
|
|
|
|
2019-11-06 17:24:51 +03:00
|
|
|
#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)."
|
2011-08-08 07:59:28 +04:00
|
|
|
|
2019-11-06 17:24:51 +03:00
|
|
|
#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)."
|
2011-08-08 07:59:28 +04:00
|
|
|
|
2019-11-06 17:24:51 +03:00
|
|
|
#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)."
|
2011-08-08 07:59:28 +04:00
|
|
|
|
2019-11-06 17:24:51 +03:00
|
|
|
#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)."
|
2011-08-08 07:59:28 +04:00
|
|
|
|
2019-11-06 17:24:51 +03:00
|
|
|
#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)."
|
2011-08-08 07:59:28 +04:00
|
|
|
|
2019-11-06 17:24:51 +03:00
|
|
|
#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)."
|
2011-08-08 07:59:28 +04:00
|
|
|
|
2019-11-06 17:24:51 +03:00
|
|
|
#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)."
|
2011-08-08 07:59:28 +04:00
|
|
|
|
2019-11-06 17:24:51 +03:00
|
|
|
#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)."
|
2011-08-08 07:59:28 +04:00
|
|
|
|
2019-11-06 17:24:51 +03:00
|
|
|
#define ERRINFO_SECURITY_DATA_TOO_SHORT16_STRING \
|
|
|
|
"The cbAutoReconnectLen field in the Extended Info Packet (section 2.2.1.11.1.1.1) contains " \
|
|
|
|
"a value " \
|
2018-11-20 20:01:13 +03:00
|
|
|
"which is larger than the maximum allowed length of 128 bytes."
|
2011-08-08 07:59:28 +04:00
|
|
|
|
2019-11-06 17:24:51 +03:00
|
|
|
#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)."
|
2011-08-08 07:59:28 +04:00
|
|
|
|
2019-11-06 17:24:51 +03:00
|
|
|
#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)."
|
2011-08-08 07:59:28 +04:00
|
|
|
|
2019-11-06 17:24:51 +03:00
|
|
|
#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)."
|
2011-08-08 07:59:28 +04:00
|
|
|
|
2019-11-06 17:24:51 +03:00
|
|
|
#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)."
|
2011-08-08 07:59:28 +04:00
|
|
|
|
2019-11-06 17:24:51 +03:00
|
|
|
#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)."
|
2011-08-08 07:59:28 +04:00
|
|
|
|
2019-11-06 17:24:51 +03:00
|
|
|
#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)."
|
2011-08-08 07:59:28 +04:00
|
|
|
|
2011-11-30 05:00:27 +04:00
|
|
|
#define ERRINFO_SECURITY_DATA_TOO_SHORT23_STRING \
|
2018-11-20 20:01:13 +03:00
|
|
|
"There is not enough data to read the Client Info PDU Data (section 2.2.1.11.1)."
|
2011-08-08 07:59:28 +04:00
|
|
|
|
2011-11-30 05:00:27 +04:00
|
|
|
#define ERRINFO_BAD_MONITOR_DATA_STRING \
|
2018-11-20 20:01:13 +03:00
|
|
|
"The monitorCount field in the Client Monitor Data (section 2.2.1.3.6) is invalid."
|
2011-08-08 07:59:28 +04:00
|
|
|
|
2019-11-06 17:24:51 +03:00
|
|
|
#define ERRINFO_VC_DECOMPRESSED_REASSEMBLE_FAILED_STRING \
|
|
|
|
"The server-side decompression buffer is invalid, or the size of the decompressed VC data " \
|
|
|
|
"exceeds " \
|
2018-11-20 20:01:13 +03:00
|
|
|
"the chunking size specified in the Virtual Channel Capability Set (section 2.2.7.1.10)."
|
2011-08-08 07:59:28 +04:00
|
|
|
|
2019-11-06 17:24:51 +03:00
|
|
|
#define ERRINFO_VC_DATA_TOO_LONG_STRING \
|
|
|
|
"The size of a received Virtual Channel PDU (section 2.2.6.1) exceeds the chunking size " \
|
|
|
|
"specified " \
|
2018-11-20 20:01:13 +03:00
|
|
|
"in the Virtual Channel Capability Set (section 2.2.7.1.10)."
|
|
|
|
|
|
|
|
#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)."
|
2011-08-08 07:59:28 +04:00
|
|
|
|
2011-11-30 05:00:27 +04:00
|
|
|
#define ERRINFO_GRAPHICS_MODE_NOT_SUPPORTED_STRING \
|
2018-11-20 20:01:13 +03:00
|
|
|
"The graphics mode requested by the client is not supported by the server."
|
2011-08-08 07:59:28 +04:00
|
|
|
|
2011-11-30 05:00:27 +04:00
|
|
|
#define ERRINFO_GRAPHICS_SUBSYSTEM_RESET_FAILED_STRING \
|
2018-11-20 20:01:13 +03:00
|
|
|
"The server-side graphics subsystem failed to reset."
|
2011-08-08 07:59:28 +04:00
|
|
|
|
2019-11-06 17:24:51 +03:00
|
|
|
#define ERRINFO_GRAPHICS_SUBSYSTEM_FAILED_STRING \
|
|
|
|
"The server-side graphics subsystem is in an error state and unable to continue graphics " \
|
|
|
|
"encoding."
|
2013-11-07 01:25:59 +04:00
|
|
|
|
2019-11-06 17:24:51 +03:00
|
|
|
#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)."
|
2013-11-07 01:25:59 +04:00
|
|
|
|
2019-11-06 17:24:51 +03:00
|
|
|
#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."
|
2013-11-07 01:25:59 +04:00
|
|
|
|
2019-11-06 17:24:51 +03:00
|
|
|
#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)."
|
2013-11-07 01:25:59 +04:00
|
|
|
|
|
|
|
#define ERRINFO_VC_DECODING_ERROR_STRING \
|
2018-11-20 20:01:13 +03:00
|
|
|
"An error occurred when processing dynamic virtual channel data ([MS-RDPEDYC] section 3.3.5)."
|
|
|
|
|
2019-11-06 17:24:51 +03:00
|
|
|
#define ERRINFO_VIRTUALDESKTOPTOOLARGE_STRING \
|
|
|
|
"The width or height of the virtual desktop defined by the monitor layout in the Client " \
|
|
|
|
"Monitor Data " \
|
2018-11-20 20:01:13 +03:00
|
|
|
"(section 2.2.1.3.6) is larger than the maximum allowed value of 32,766."
|
|
|
|
|
|
|
|
#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."
|
2013-11-07 01:25:59 +04:00
|
|
|
|
2019-11-06 17:24:51 +03:00
|
|
|
#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."
|
2011-08-08 07:59:28 +04:00
|
|
|
|
2019-11-06 17:24:51 +03:00
|
|
|
#define ERRINFO_DECRYPT_FAILED_STRING \
|
2018-11-20 20:01:13 +03:00
|
|
|
"(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."
|
2011-08-08 07:59:28 +04:00
|
|
|
|
2011-11-30 05:00:27 +04:00
|
|
|
#define ERRINFO_ENCRYPT_FAILED_STRING \
|
2018-11-20 20:01:13 +03:00
|
|
|
"Encryption using Standard RDP Security mechanisms (section 5.3.6) failed."
|
2011-08-08 07:59:28 +04:00
|
|
|
|
2019-11-06 17:24:51 +03:00
|
|
|
#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)."
|
2011-08-08 07:59:28 +04:00
|
|
|
|
2019-11-06 17:24:51 +03:00
|
|
|
#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)."
|
2011-08-08 07:59:28 +04:00
|
|
|
|
2019-11-06 17:24:51 +03:00
|
|
|
#define ERRINFO_PEER_DISCONNECTED_STRING "The peer connection was lost."
|
2013-12-21 03:26:07 +04:00
|
|
|
|
2011-08-08 07:59:28 +04:00
|
|
|
/* Special codes */
|
2011-11-30 05:00:27 +04:00
|
|
|
#define ERRINFO_SUCCESS_STRING "Success."
|
|
|
|
#define ERRINFO_NONE_STRING ""
|
2011-08-08 07:59:28 +04:00
|
|
|
|
2019-11-06 17:24:51 +03:00
|
|
|
static const ERRINFO ERRINFO_CODES[] = {
|
2019-10-03 11:59:45 +03:00
|
|
|
ERRINFO_DEFINE(SUCCESS, CAT_NONE),
|
2018-11-20 20:01:13 +03:00
|
|
|
|
|
|
|
/* Protocol-independent codes */
|
2019-10-03 11:59:45 +03:00
|
|
|
ERRINFO_DEFINE(RPC_INITIATED_DISCONNECT, CAT_ADMIN),
|
2019-11-06 17:24:51 +03:00
|
|
|
ERRINFO_DEFINE(RPC_INITIATED_LOGOFF, CAT_ADMIN), ERRINFO_DEFINE(IDLE_TIMEOUT, CAT_ADMIN),
|
2019-10-03 11:59:45 +03:00
|
|
|
ERRINFO_DEFINE(LOGON_TIMEOUT, CAT_ADMIN),
|
|
|
|
ERRINFO_DEFINE(DISCONNECTED_BY_OTHER_CONNECTION, CAT_USE),
|
2019-11-06 17:24:51 +03:00
|
|
|
ERRINFO_DEFINE(OUT_OF_MEMORY, CAT_ADMIN), ERRINFO_DEFINE(SERVER_DENIED_CONNECTION, CAT_ADMIN),
|
2019-10-03 11:59:45 +03:00
|
|
|
ERRINFO_DEFINE(SERVER_INSUFFICIENT_PRIVILEGES, CAT_ADMIN),
|
|
|
|
ERRINFO_DEFINE(SERVER_FRESH_CREDENTIALS_REQUIRED, CAT_ADMIN),
|
|
|
|
ERRINFO_DEFINE(RPC_INITIATED_DISCONNECT_BY_USER, CAT_ADMIN),
|
|
|
|
ERRINFO_DEFINE(LOGOFF_BY_USER, CAT_USE),
|
|
|
|
ERRINFO_DEFINE(CLOSE_STACK_ON_DRIVER_NOT_READY, CAT_SERVER),
|
|
|
|
ERRINFO_DEFINE(SERVER_DWM_CRASH, CAT_SERVER),
|
|
|
|
ERRINFO_DEFINE(CLOSE_STACK_ON_DRIVER_FAILURE, CAT_SERVER),
|
|
|
|
ERRINFO_DEFINE(CLOSE_STACK_ON_DRIVER_IFACE_FAILURE, CAT_SERVER),
|
|
|
|
ERRINFO_DEFINE(SERVER_WINLOGON_CRASH, CAT_SERVER),
|
|
|
|
ERRINFO_DEFINE(SERVER_CSRSS_CRASH, CAT_SERVER),
|
2018-11-20 20:01:13 +03:00
|
|
|
|
|
|
|
/* Protocol-independent licensing codes */
|
2019-10-03 11:59:45 +03:00
|
|
|
ERRINFO_DEFINE(LICENSE_INTERNAL, CAT_LICENSING),
|
|
|
|
ERRINFO_DEFINE(LICENSE_NO_LICENSE_SERVER, CAT_LICENSING),
|
|
|
|
ERRINFO_DEFINE(LICENSE_NO_LICENSE, CAT_LICENSING),
|
|
|
|
ERRINFO_DEFINE(LICENSE_BAD_CLIENT_MSG, CAT_LICENSING),
|
|
|
|
ERRINFO_DEFINE(LICENSE_HWID_DOESNT_MATCH_LICENSE, CAT_LICENSING),
|
|
|
|
ERRINFO_DEFINE(LICENSE_BAD_CLIENT_LICENSE, CAT_LICENSING),
|
|
|
|
ERRINFO_DEFINE(LICENSE_CANT_FINISH_PROTOCOL, CAT_LICENSING),
|
|
|
|
ERRINFO_DEFINE(LICENSE_CLIENT_ENDED_PROTOCOL, CAT_LICENSING),
|
|
|
|
ERRINFO_DEFINE(LICENSE_BAD_CLIENT_ENCRYPTION, CAT_LICENSING),
|
|
|
|
ERRINFO_DEFINE(LICENSE_CANT_UPGRADE_LICENSE, CAT_LICENSING),
|
|
|
|
ERRINFO_DEFINE(LICENSE_NO_REMOTE_CONNECTIONS, CAT_LICENSING),
|
2018-11-20 20:01:13 +03:00
|
|
|
|
|
|
|
/* Protocol-independent codes generated by the Connection Broker */
|
2019-10-03 11:59:45 +03:00
|
|
|
ERRINFO_DEFINE(CB_DESTINATION_NOT_FOUND, CAT_BROKER),
|
|
|
|
ERRINFO_DEFINE(CB_LOADING_DESTINATION, CAT_BROKER),
|
|
|
|
ERRINFO_DEFINE(CB_REDIRECTING_TO_DESTINATION, CAT_BROKER),
|
|
|
|
ERRINFO_DEFINE(CB_SESSION_ONLINE_VM_WAKE, CAT_BROKER),
|
|
|
|
ERRINFO_DEFINE(CB_SESSION_ONLINE_VM_BOOT, CAT_BROKER),
|
|
|
|
ERRINFO_DEFINE(CB_SESSION_ONLINE_VM_NO_DNS, CAT_BROKER),
|
|
|
|
ERRINFO_DEFINE(CB_DESTINATION_POOL_NOT_FREE, CAT_BROKER),
|
|
|
|
ERRINFO_DEFINE(CB_CONNECTION_CANCELLED, CAT_BROKER),
|
|
|
|
ERRINFO_DEFINE(CB_CONNECTION_ERROR_INVALID_SETTINGS, CAT_BROKER),
|
|
|
|
ERRINFO_DEFINE(CB_SESSION_ONLINE_VM_BOOT_TIMEOUT, CAT_BROKER),
|
|
|
|
ERRINFO_DEFINE(CB_SESSION_ONLINE_VM_SESSMON_FAILED, CAT_BROKER),
|
2018-11-20 20:01:13 +03:00
|
|
|
|
|
|
|
/* RDP specific codes */
|
2019-10-03 11:59:45 +03:00
|
|
|
ERRINFO_DEFINE(UNKNOWN_DATA_PDU_TYPE, CAT_PROTOCOL),
|
2019-11-06 17:24:51 +03:00
|
|
|
ERRINFO_DEFINE(UNKNOWN_PDU_TYPE, CAT_PROTOCOL), ERRINFO_DEFINE(DATA_PDU_SEQUENCE, CAT_PROTOCOL),
|
2019-10-03 11:59:45 +03:00
|
|
|
ERRINFO_DEFINE(CONTROL_PDU_SEQUENCE, CAT_PROTOCOL),
|
|
|
|
ERRINFO_DEFINE(INVALID_CONTROL_PDU_ACTION, CAT_PROTOCOL),
|
|
|
|
ERRINFO_DEFINE(INVALID_INPUT_PDU_TYPE, CAT_PROTOCOL),
|
|
|
|
ERRINFO_DEFINE(INVALID_INPUT_PDU_MOUSE, CAT_PROTOCOL),
|
|
|
|
ERRINFO_DEFINE(INVALID_REFRESH_RECT_PDU, CAT_PROTOCOL),
|
2019-11-06 17:24:51 +03:00
|
|
|
ERRINFO_DEFINE(CREATE_USER_DATA_FAILED, CAT_PROTOCOL), ERRINFO_DEFINE(CONNECT_FAILED, CAT_USE),
|
2019-10-03 11:59:45 +03:00
|
|
|
ERRINFO_DEFINE(CONFIRM_ACTIVE_HAS_WRONG_SHAREID, CAT_PROTOCOL),
|
|
|
|
ERRINFO_DEFINE(CONFIRM_ACTIVE_HAS_WRONG_ORIGINATOR, CAT_PROTOCOL),
|
|
|
|
ERRINFO_DEFINE(PERSISTENT_KEY_PDU_BAD_LENGTH, CAT_PROTOCOL),
|
|
|
|
ERRINFO_DEFINE(PERSISTENT_KEY_PDU_ILLEGAL_FIRST, CAT_PROTOCOL),
|
|
|
|
ERRINFO_DEFINE(PERSISTENT_KEY_PDU_TOO_MANY_TOTAL_KEYS, CAT_PROTOCOL),
|
|
|
|
ERRINFO_DEFINE(PERSISTENT_KEY_PDU_TOO_MANY_CACHE_KEYS, CAT_PROTOCOL),
|
|
|
|
ERRINFO_DEFINE(INPUT_PDU_BAD_LENGTH, CAT_PROTOCOL),
|
|
|
|
ERRINFO_DEFINE(BITMAP_CACHE_ERROR_PDU_BAD_LENGTH, CAT_PROTOCOL),
|
|
|
|
ERRINFO_DEFINE(SECURITY_DATA_TOO_SHORT, CAT_PROTOCOL),
|
|
|
|
ERRINFO_DEFINE(VCHANNEL_DATA_TOO_SHORT, CAT_PROTOCOL),
|
|
|
|
ERRINFO_DEFINE(SHARE_DATA_TOO_SHORT, CAT_PROTOCOL),
|
|
|
|
ERRINFO_DEFINE(BAD_SUPPRESS_OUTPUT_PDU, CAT_PROTOCOL),
|
|
|
|
ERRINFO_DEFINE(CONFIRM_ACTIVE_PDU_TOO_SHORT, CAT_PROTOCOL),
|
|
|
|
ERRINFO_DEFINE(CAPABILITY_SET_TOO_SMALL, CAT_PROTOCOL),
|
|
|
|
ERRINFO_DEFINE(CAPABILITY_SET_TOO_LARGE, CAT_PROTOCOL),
|
2019-11-06 17:24:51 +03:00
|
|
|
ERRINFO_DEFINE(NO_CURSOR_CACHE, CAT_PROTOCOL), ERRINFO_DEFINE(BAD_CAPABILITIES, CAT_PROTOCOL),
|
2019-10-03 11:59:45 +03:00
|
|
|
ERRINFO_DEFINE(VIRTUAL_CHANNEL_DECOMPRESSION, CAT_PROTOCOL),
|
|
|
|
ERRINFO_DEFINE(INVALID_VC_COMPRESSION_TYPE, CAT_PROTOCOL),
|
|
|
|
ERRINFO_DEFINE(INVALID_CHANNEL_ID, CAT_PROTOCOL),
|
|
|
|
ERRINFO_DEFINE(VCHANNELS_TOO_MANY, CAT_PROTOCOL),
|
|
|
|
ERRINFO_DEFINE(REMOTEAPP_NOT_ENABLED, CAT_ADMIN),
|
|
|
|
ERRINFO_DEFINE(CACHE_CAP_NOT_SET, CAT_PROTOCOL),
|
|
|
|
ERRINFO_DEFINE(BITMAP_CACHE_ERROR_PDU_BAD_LENGTH2, CAT_PROTOCOL),
|
|
|
|
ERRINFO_DEFINE(OFFSCREEN_CACHE_ERROR_PDU_BAD_LENGTH, CAT_PROTOCOL),
|
|
|
|
ERRINFO_DEFINE(DRAWNINEGRID_CACHE_ERROR_PDU_BAD_LENGTH, CAT_PROTOCOL),
|
|
|
|
ERRINFO_DEFINE(GDIPLUS_PDU_BAD_LENGTH, CAT_PROTOCOL),
|
|
|
|
ERRINFO_DEFINE(SECURITY_DATA_TOO_SHORT2, CAT_PROTOCOL),
|
|
|
|
ERRINFO_DEFINE(SECURITY_DATA_TOO_SHORT3, CAT_PROTOCOL),
|
|
|
|
ERRINFO_DEFINE(SECURITY_DATA_TOO_SHORT4, CAT_PROTOCOL),
|
|
|
|
ERRINFO_DEFINE(SECURITY_DATA_TOO_SHORT5, CAT_PROTOCOL),
|
|
|
|
ERRINFO_DEFINE(SECURITY_DATA_TOO_SHORT6, CAT_PROTOCOL),
|
|
|
|
ERRINFO_DEFINE(SECURITY_DATA_TOO_SHORT7, CAT_PROTOCOL),
|
|
|
|
ERRINFO_DEFINE(SECURITY_DATA_TOO_SHORT8, CAT_PROTOCOL),
|
|
|
|
ERRINFO_DEFINE(SECURITY_DATA_TOO_SHORT9, CAT_PROTOCOL),
|
|
|
|
ERRINFO_DEFINE(SECURITY_DATA_TOO_SHORT10, CAT_PROTOCOL),
|
|
|
|
ERRINFO_DEFINE(SECURITY_DATA_TOO_SHORT11, CAT_PROTOCOL),
|
|
|
|
ERRINFO_DEFINE(SECURITY_DATA_TOO_SHORT12, CAT_PROTOCOL),
|
|
|
|
ERRINFO_DEFINE(SECURITY_DATA_TOO_SHORT13, CAT_PROTOCOL),
|
|
|
|
ERRINFO_DEFINE(SECURITY_DATA_TOO_SHORT14, CAT_PROTOCOL),
|
|
|
|
ERRINFO_DEFINE(SECURITY_DATA_TOO_SHORT15, CAT_PROTOCOL),
|
|
|
|
ERRINFO_DEFINE(SECURITY_DATA_TOO_SHORT16, CAT_PROTOCOL),
|
|
|
|
ERRINFO_DEFINE(SECURITY_DATA_TOO_SHORT17, CAT_PROTOCOL),
|
|
|
|
ERRINFO_DEFINE(SECURITY_DATA_TOO_SHORT18, CAT_PROTOCOL),
|
|
|
|
ERRINFO_DEFINE(SECURITY_DATA_TOO_SHORT19, CAT_PROTOCOL),
|
|
|
|
ERRINFO_DEFINE(SECURITY_DATA_TOO_SHORT20, CAT_PROTOCOL),
|
|
|
|
ERRINFO_DEFINE(SECURITY_DATA_TOO_SHORT21, CAT_PROTOCOL),
|
|
|
|
ERRINFO_DEFINE(SECURITY_DATA_TOO_SHORT22, CAT_PROTOCOL),
|
|
|
|
ERRINFO_DEFINE(SECURITY_DATA_TOO_SHORT23, CAT_PROTOCOL),
|
|
|
|
ERRINFO_DEFINE(BAD_MONITOR_DATA, CAT_PROTOCOL),
|
|
|
|
ERRINFO_DEFINE(VC_DECOMPRESSED_REASSEMBLE_FAILED, CAT_PROTOCOL),
|
|
|
|
ERRINFO_DEFINE(VC_DATA_TOO_LONG, CAT_PROTOCOL),
|
|
|
|
ERRINFO_DEFINE(BAD_FRAME_ACK_DATA, CAT_PROTOCOL),
|
|
|
|
ERRINFO_DEFINE(GRAPHICS_MODE_NOT_SUPPORTED, CAT_SERVER),
|
|
|
|
ERRINFO_DEFINE(GRAPHICS_SUBSYSTEM_RESET_FAILED, CAT_SERVER),
|
|
|
|
ERRINFO_DEFINE(GRAPHICS_SUBSYSTEM_FAILED, CAT_SERVER),
|
|
|
|
ERRINFO_DEFINE(TIMEZONE_KEY_NAME_LENGTH_TOO_SHORT, CAT_PROTOCOL),
|
|
|
|
ERRINFO_DEFINE(TIMEZONE_KEY_NAME_LENGTH_TOO_LONG, CAT_PROTOCOL),
|
|
|
|
ERRINFO_DEFINE(DYNAMIC_DST_DISABLED_FIELD_MISSING, CAT_PROTOCOL),
|
|
|
|
ERRINFO_DEFINE(VC_DECODING_ERROR, CAT_PROTOCOL),
|
|
|
|
ERRINFO_DEFINE(VIRTUALDESKTOPTOOLARGE, CAT_SERVER),
|
|
|
|
ERRINFO_DEFINE(MONITORGEOMETRYVALIDATIONFAILED, CAT_PROTOCOL),
|
|
|
|
ERRINFO_DEFINE(INVALIDMONITORCOUNT, CAT_PROTOCOL),
|
|
|
|
ERRINFO_DEFINE(UPDATE_SESSION_KEY_FAILED, CAT_PROTOCOL),
|
2019-11-06 17:24:51 +03:00
|
|
|
ERRINFO_DEFINE(DECRYPT_FAILED, CAT_PROTOCOL), ERRINFO_DEFINE(ENCRYPT_FAILED, CAT_PROTOCOL),
|
2019-10-03 11:59:45 +03:00
|
|
|
ERRINFO_DEFINE(ENCRYPTION_PACKAGE_MISMATCH, CAT_PROTOCOL),
|
2019-11-06 17:24:51 +03:00
|
|
|
ERRINFO_DEFINE(DECRYPT_FAILED2, CAT_PROTOCOL), ERRINFO_DEFINE(PEER_DISCONNECTED, CAT_USE),
|
2019-10-03 11:59:45 +03:00
|
|
|
|
|
|
|
ERRINFO_DEFINE(NONE, CAT_NONE)
|
2011-08-08 07:59:28 +04:00
|
|
|
};
|
|
|
|
|
2013-07-22 21:23:56 +04:00
|
|
|
const char* freerdp_get_error_info_string(UINT32 code)
|
|
|
|
{
|
|
|
|
const ERRINFO* errInfo;
|
|
|
|
errInfo = &ERRINFO_CODES[0];
|
|
|
|
|
|
|
|
while (errInfo->code != ERRINFO_NONE)
|
|
|
|
{
|
|
|
|
if (code == errInfo->code)
|
|
|
|
{
|
|
|
|
return errInfo->info;
|
|
|
|
}
|
|
|
|
|
|
|
|
errInfo++;
|
|
|
|
}
|
|
|
|
|
|
|
|
return "Unknown error.";
|
|
|
|
}
|
|
|
|
|
2019-10-03 11:59:45 +03:00
|
|
|
const char* freerdp_get_error_info_category(UINT32 code)
|
|
|
|
{
|
|
|
|
const ERRINFO* errInfo;
|
|
|
|
errInfo = &ERRINFO_CODES[0];
|
|
|
|
|
|
|
|
while (errInfo->code != ERRINFO_NONE)
|
|
|
|
{
|
|
|
|
if (code == errInfo->code)
|
|
|
|
{
|
|
|
|
return errInfo->category;
|
|
|
|
}
|
|
|
|
|
|
|
|
errInfo++;
|
|
|
|
}
|
|
|
|
|
|
|
|
return "ERRINFO_UNKNOWN";
|
|
|
|
}
|
|
|
|
|
2013-07-22 21:23:56 +04:00
|
|
|
const char* freerdp_get_error_info_name(UINT32 code)
|
|
|
|
{
|
|
|
|
const ERRINFO* errInfo;
|
|
|
|
errInfo = &ERRINFO_CODES[0];
|
|
|
|
|
|
|
|
while (errInfo->code != ERRINFO_NONE)
|
|
|
|
{
|
|
|
|
if (code == errInfo->code)
|
|
|
|
{
|
|
|
|
return errInfo->name;
|
|
|
|
}
|
|
|
|
|
|
|
|
errInfo++;
|
|
|
|
}
|
|
|
|
|
|
|
|
return "ERRINFO_UNKNOWN";
|
|
|
|
}
|
|
|
|
|
2012-10-09 11:26:39 +04:00
|
|
|
void rdp_print_errinfo(UINT32 code)
|
2011-08-08 07:59:28 +04:00
|
|
|
{
|
2011-11-30 05:00:27 +04:00
|
|
|
const ERRINFO* errInfo;
|
2011-08-08 07:59:28 +04:00
|
|
|
errInfo = &ERRINFO_CODES[0];
|
|
|
|
|
|
|
|
while (errInfo->code != ERRINFO_NONE)
|
|
|
|
{
|
|
|
|
if (code == errInfo->code)
|
|
|
|
{
|
2019-11-06 17:24:51 +03:00
|
|
|
WLog_INFO(TAG, "%s (0x%08" PRIX32 "):%s", errInfo->name, code, errInfo->info);
|
2011-08-08 07:59:28 +04:00
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
errInfo++;
|
|
|
|
}
|
|
|
|
|
2019-11-06 17:24:51 +03:00
|
|
|
WLog_ERR(TAG, "ERRINFO_UNKNOWN 0x%08" PRIX32 ": Unknown error.", code);
|
2011-08-08 07:59:28 +04:00
|
|
|
}
|