error.h (16498B)
1/** 2 * FreeRDP: A Remote Desktop Protocol Implementation 3 * Error Codes 4 * 5 * Copyright 2012 Marc-Andre Moreau <marcandre.moreau@gmail.com> 6 * 7 * Licensed under the Apache License, Version 2.0 (the "License"); 8 * you may not use this file except in compliance with the License. 9 * You may obtain a copy of the License at 10 * 11 * http://www.apache.org/licenses/LICENSE-2.0 12 * 13 * Unless required by applicable law or agreed to in writing, software 14 * distributed under the License is distributed on an "AS IS" BASIS, 15 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 16 * See the License for the specific language governing permissions and 17 * limitations under the License. 18 */ 19 20#ifndef FREERDP_ERROR_H 21#define FREERDP_ERROR_H 22 23#include <winpr/crt.h> 24 25#include <freerdp/api.h> 26 27#ifdef __cplusplus 28extern "C" 29{ 30#endif 31 32/* Error categories */ 33#define CAT_NONE "success" 34#define CAT_USE "use" 35#define CAT_BROKER "broker" 36#define CAT_GATEWAY "gateway" 37#define CAT_LICENSING "licensing" 38#define CAT_SERVER "server" 39#define CAT_CONFIG "config" 40#define CAT_PROTOCOL "protocol" 41#define CAT_ADMIN "administrative" 42 43/** 44 * Error Info Codes (Error Info PDU) 45 */ 46 47/* Protocol-independent codes */ 48#define ERRINFO_RPC_INITIATED_DISCONNECT 0x00000001 49#define ERRINFO_RPC_INITIATED_LOGOFF 0x00000002 50#define ERRINFO_IDLE_TIMEOUT 0x00000003 51#define ERRINFO_LOGON_TIMEOUT 0x00000004 52#define ERRINFO_DISCONNECTED_BY_OTHER_CONNECTION 0x00000005 53#define ERRINFO_OUT_OF_MEMORY 0x00000006 54#define ERRINFO_SERVER_DENIED_CONNECTION 0x00000007 55#define ERRINFO_SERVER_INSUFFICIENT_PRIVILEGES 0x00000009 56#define ERRINFO_SERVER_FRESH_CREDENTIALS_REQUIRED 0x0000000A 57#define ERRINFO_RPC_INITIATED_DISCONNECT_BY_USER 0x0000000B 58#define ERRINFO_LOGOFF_BY_USER 0x0000000C 59#define ERRINFO_CLOSE_STACK_ON_DRIVER_NOT_READY 0x0000000F 60#define ERRINFO_SERVER_DWM_CRASH 0x00000010 61#define ERRINFO_CLOSE_STACK_ON_DRIVER_FAILURE 0x00000011 62#define ERRINFO_CLOSE_STACK_ON_DRIVER_IFACE_FAILURE 0x00000012 63#define ERRINFO_SERVER_WINLOGON_CRASH 0x00000017 64#define ERRINFO_SERVER_CSRSS_CRASH 0x00000018 65 66/* Protocol-independent licensing codes */ 67#define ERRINFO_LICENSE_INTERNAL 0x00000100 68#define ERRINFO_LICENSE_NO_LICENSE_SERVER 0x00000101 69#define ERRINFO_LICENSE_NO_LICENSE 0x00000102 70#define ERRINFO_LICENSE_BAD_CLIENT_MSG 0x00000103 71#define ERRINFO_LICENSE_HWID_DOESNT_MATCH_LICENSE 0x00000104 72#define ERRINFO_LICENSE_BAD_CLIENT_LICENSE 0x00000105 73#define ERRINFO_LICENSE_CANT_FINISH_PROTOCOL 0x00000106 74#define ERRINFO_LICENSE_CLIENT_ENDED_PROTOCOL 0x00000107 75#define ERRINFO_LICENSE_BAD_CLIENT_ENCRYPTION 0x00000108 76#define ERRINFO_LICENSE_CANT_UPGRADE_LICENSE 0x00000109 77#define ERRINFO_LICENSE_NO_REMOTE_CONNECTIONS 0x0000010A 78 79/* Protocol-independent codes generated by the Connection Broker */ 80#define ERRINFO_CB_DESTINATION_NOT_FOUND 0x0000400 81#define ERRINFO_CB_LOADING_DESTINATION 0x0000402 82#define ERRINFO_CB_REDIRECTING_TO_DESTINATION 0x0000404 83#define ERRINFO_CB_SESSION_ONLINE_VM_WAKE 0x0000405 84#define ERRINFO_CB_SESSION_ONLINE_VM_BOOT 0x0000406 85#define ERRINFO_CB_SESSION_ONLINE_VM_NO_DNS 0x0000407 86#define ERRINFO_CB_DESTINATION_POOL_NOT_FREE 0x0000408 87#define ERRINFO_CB_CONNECTION_CANCELLED 0x0000409 88#define ERRINFO_CB_CONNECTION_ERROR_INVALID_SETTINGS 0x0000410 89#define ERRINFO_CB_SESSION_ONLINE_VM_BOOT_TIMEOUT 0x0000411 90#define ERRINFO_CB_SESSION_ONLINE_VM_SESSMON_FAILED 0x0000412 91 92/* RDP specific codes */ 93#define ERRINFO_UNKNOWN_DATA_PDU_TYPE 0x000010C9 94#define ERRINFO_UNKNOWN_PDU_TYPE 0x000010CA 95#define ERRINFO_DATA_PDU_SEQUENCE 0x000010CB 96#define ERRINFO_CONTROL_PDU_SEQUENCE 0x000010CD 97#define ERRINFO_INVALID_CONTROL_PDU_ACTION 0x000010CE 98#define ERRINFO_INVALID_INPUT_PDU_TYPE 0x000010CF 99#define ERRINFO_INVALID_INPUT_PDU_MOUSE 0x000010D0 100#define ERRINFO_INVALID_REFRESH_RECT_PDU 0x000010D1 101#define ERRINFO_CREATE_USER_DATA_FAILED 0x000010D2 102#define ERRINFO_CONNECT_FAILED 0x000010D3 103#define ERRINFO_CONFIRM_ACTIVE_HAS_WRONG_SHAREID 0x000010D4 104#define ERRINFO_CONFIRM_ACTIVE_HAS_WRONG_ORIGINATOR 0x000010D5 105#define ERRINFO_PERSISTENT_KEY_PDU_BAD_LENGTH 0x000010DA 106#define ERRINFO_PERSISTENT_KEY_PDU_ILLEGAL_FIRST 0x000010DB 107#define ERRINFO_PERSISTENT_KEY_PDU_TOO_MANY_TOTAL_KEYS 0x000010DC 108#define ERRINFO_PERSISTENT_KEY_PDU_TOO_MANY_CACHE_KEYS 0x000010DD 109#define ERRINFO_INPUT_PDU_BAD_LENGTH 0x000010DE 110#define ERRINFO_BITMAP_CACHE_ERROR_PDU_BAD_LENGTH 0x000010DF 111#define ERRINFO_SECURITY_DATA_TOO_SHORT 0x000010E0 112#define ERRINFO_VCHANNEL_DATA_TOO_SHORT 0x000010E1 113#define ERRINFO_SHARE_DATA_TOO_SHORT 0x000010E2 114#define ERRINFO_BAD_SUPPRESS_OUTPUT_PDU 0x000010E3 115#define ERRINFO_CONFIRM_ACTIVE_PDU_TOO_SHORT 0x000010E5 116#define ERRINFO_CAPABILITY_SET_TOO_SMALL 0x000010E7 117#define ERRINFO_CAPABILITY_SET_TOO_LARGE 0x000010E8 118#define ERRINFO_NO_CURSOR_CACHE 0x000010E9 119#define ERRINFO_BAD_CAPABILITIES 0x000010EA 120#define ERRINFO_VIRTUAL_CHANNEL_DECOMPRESSION 0x000010EC 121#define ERRINFO_INVALID_VC_COMPRESSION_TYPE 0x000010ED 122#define ERRINFO_INVALID_CHANNEL_ID 0x000010EF 123#define ERRINFO_VCHANNELS_TOO_MANY 0x000010F0 124#define ERRINFO_REMOTEAPP_NOT_ENABLED 0x000010F3 125#define ERRINFO_CACHE_CAP_NOT_SET 0x000010F4 126#define ERRINFO_BITMAP_CACHE_ERROR_PDU_BAD_LENGTH2 0x000010F5 127#define ERRINFO_OFFSCREEN_CACHE_ERROR_PDU_BAD_LENGTH 0x000010F6 128#define ERRINFO_DRAWNINEGRID_CACHE_ERROR_PDU_BAD_LENGTH 0x000010F7 129#define ERRINFO_GDIPLUS_PDU_BAD_LENGTH 0x000010F8 130#define ERRINFO_SECURITY_DATA_TOO_SHORT2 0x00001111 131#define ERRINFO_SECURITY_DATA_TOO_SHORT3 0x00001112 132#define ERRINFO_SECURITY_DATA_TOO_SHORT4 0x00001113 133#define ERRINFO_SECURITY_DATA_TOO_SHORT5 0x00001114 134#define ERRINFO_SECURITY_DATA_TOO_SHORT6 0x00001115 135#define ERRINFO_SECURITY_DATA_TOO_SHORT7 0x00001116 136#define ERRINFO_SECURITY_DATA_TOO_SHORT8 0x00001117 137#define ERRINFO_SECURITY_DATA_TOO_SHORT9 0x00001118 138#define ERRINFO_SECURITY_DATA_TOO_SHORT10 0x00001119 139#define ERRINFO_SECURITY_DATA_TOO_SHORT11 0x0000111A 140#define ERRINFO_SECURITY_DATA_TOO_SHORT12 0x0000111B 141#define ERRINFO_SECURITY_DATA_TOO_SHORT13 0x0000111C 142#define ERRINFO_SECURITY_DATA_TOO_SHORT14 0x0000111D 143#define ERRINFO_SECURITY_DATA_TOO_SHORT15 0x0000111E 144#define ERRINFO_SECURITY_DATA_TOO_SHORT16 0x0000111F 145#define ERRINFO_SECURITY_DATA_TOO_SHORT17 0x00001120 146#define ERRINFO_SECURITY_DATA_TOO_SHORT18 0x00001121 147#define ERRINFO_SECURITY_DATA_TOO_SHORT19 0x00001122 148#define ERRINFO_SECURITY_DATA_TOO_SHORT20 0x00001123 149#define ERRINFO_SECURITY_DATA_TOO_SHORT21 0x00001124 150#define ERRINFO_SECURITY_DATA_TOO_SHORT22 0x00001125 151#define ERRINFO_SECURITY_DATA_TOO_SHORT23 0x00001126 152#define ERRINFO_BAD_MONITOR_DATA 0x00001129 153#define ERRINFO_VC_DECOMPRESSED_REASSEMBLE_FAILED 0x0000112A 154#define ERRINFO_VC_DATA_TOO_LONG 0x0000112B 155#define ERRINFO_BAD_FRAME_ACK_DATA 0x0000112C 156#define ERRINFO_GRAPHICS_MODE_NOT_SUPPORTED 0x0000112D 157#define ERRINFO_GRAPHICS_SUBSYSTEM_RESET_FAILED 0x0000112E 158#define ERRINFO_GRAPHICS_SUBSYSTEM_FAILED 0x0000112F 159#define ERRINFO_TIMEZONE_KEY_NAME_LENGTH_TOO_SHORT 0x00001130 160#define ERRINFO_TIMEZONE_KEY_NAME_LENGTH_TOO_LONG 0x00001131 161#define ERRINFO_DYNAMIC_DST_DISABLED_FIELD_MISSING 0x00001132 162#define ERRINFO_VC_DECODING_ERROR 0x00001133 163#define ERRINFO_VIRTUALDESKTOPTOOLARGE 0x00001134 164#define ERRINFO_MONITORGEOMETRYVALIDATIONFAILED 0x00001135 165#define ERRINFO_INVALIDMONITORCOUNT 0x00001136 166#define ERRINFO_UPDATE_SESSION_KEY_FAILED 0x00001191 167#define ERRINFO_DECRYPT_FAILED 0x00001192 168#define ERRINFO_ENCRYPT_FAILED 0x00001193 169#define ERRINFO_ENCRYPTION_PACKAGE_MISMATCH 0x00001194 170#define ERRINFO_DECRYPT_FAILED2 0x00001195 171#define ERRINFO_PEER_DISCONNECTED 0x00001196 172 173#define ERRINFO_SUCCESS 0x00000000 174#define ERRINFO_NONE 0xFFFFFFFF 175 176 FREERDP_API const char* freerdp_get_error_info_string(UINT32 code); 177 FREERDP_API const char* freerdp_get_error_info_name(UINT32 code); 178 FREERDP_API const char* freerdp_get_error_info_category(UINT32 code); 179 180#if !defined(DEFINE_NO_DEPRECATED) 181 /** 182 * DEPRECATED! 183 * This static variable holds an error code if the return value from connect is FALSE. 184 * This variable is always set to 0 in the beginning of the connect sequence. 185 * The returned code can be used to inform the user of the detailed connect error. 186 * The value can hold one of the defined error codes below OR an error according to errno 187 */ 188 189 FREERDP_API WINPR_DEPRECATED(extern int connectErrorCode); 190 191#define ERRORSTART 10000 192#define PREECONNECTERROR ERRORSTART + 1 193#define UNDEFINEDCONNECTERROR ERRORSTART + 2 194#define POSTCONNECTERROR ERRORSTART + 3 195#define DNSERROR ERRORSTART + 4 /* general DNS ERROR */ 196#define DNSNAMENOTFOUND ERRORSTART + 5 /* EAI_NONAME */ 197#define CONNECTERROR \ 198 ERRORSTART + 6 /* a connect error if errno is not define during tcp connect \ 199 */ 200#define MCSCONNECTINITIALERROR ERRORSTART + 7 201#define TLSCONNECTERROR ERRORSTART + 8 202#define AUTHENTICATIONERROR ERRORSTART + 9 203#define INSUFFICIENTPRIVILEGESERROR ERRORSTART + 10 204#define CANCELEDBYUSER ERRORSTART + 11 205#endif 206 207 /** 208 * FreeRDP Context Error Codes 209 */ 210 211#define MAKE_FREERDP_ERROR(_class, _type) (((FREERDP_ERROR_##_class##_CLASS) << 16) | (_type)) 212 213#define GET_FREERDP_ERROR_CLASS(_errorCode) ((_errorCode >> 16) & 0xFFFF) 214 215#define GET_FREERDP_ERROR_TYPE(_errorCode) (_errorCode & 0xFFFF) 216 217#define GET_FREERDP_ERROR_SUBCODE 218 219#define FREERDP_ERROR_BASE 0 220 221/** 222 * Error Base Codes 223 */ 224#define FREERDP_ERROR_ERRBASE_CLASS (FREERDP_ERROR_BASE + 0) 225 226#define ERRBASE_SUCCESS ERRINFO_SUCCESS 227#define ERRBASE_NONE ERRINFO_NONE 228 229 FREERDP_API const char* freerdp_get_error_base_string(UINT32 code); 230 FREERDP_API const char* freerdp_get_error_base_name(UINT32 code); 231 FREERDP_API const char* freerdp_get_error_base_category(UINT32 code); 232 233#define FREERDP_ERROR_SUCCESS ERRINFO_SUCCESS 234#define FREERDP_ERROR_NONE ERRINFO_NONE 235 236 /* Error Info Codes */ 237 238#define FREERDP_ERROR_ERRINFO_CLASS (FREERDP_ERROR_BASE + 1) 239 240#define FREERDP_ERROR_RPC_INITIATED_DISCONNECT \ 241 MAKE_FREERDP_ERROR(ERRINFO, ERRINFO_RPC_INITIATED_DISCONNECT) 242#define FREERDP_ERROR_RPC_INITIATED_LOGOFF MAKE_FREERDP_ERROR(ERRINFO, ERRINFO_RPC_INITIATED_LOGOFF) 243#define FREERDP_ERROR_IDLE_TIMEOUT MAKE_FREERDP_ERROR(ERRINFO, ERRINFO_IDLE_TIMEOUT) 244#define FREERDP_ERROR_LOGON_TIMEOUT MAKE_FREERDP_ERROR(ERRINFO, ERRINFO_LOGON_TIMEOUT) 245#define FREERDP_ERROR_DISCONNECTED_BY_OTHER_CONNECTION \ 246 MAKE_FREERDP_ERROR(ERRINFO, ERRINFO_DISCONNECTED_BY_OTHER_CONNECTION) 247#define FREERDP_ERROR_OUT_OF_MEMORY MAKE_FREERDP_ERROR(ERRINFO, ERRINFO_OUT_OF_MEMORY) 248#define FREERDP_ERROR_SERVER_DENIED_CONNECTION \ 249 MAKE_FREERDP_ERROR(ERRINFO, ERRINFO_SERVER_DENIED_CONNECTION) 250#define FREERDP_ERROR_SERVER_INSUFFICIENT_PRIVILEGES \ 251 MAKE_FREERDP_ERROR(ERRINFO, ERRINFO_SERVER_INSUFFICIENT_PRIVILEGES) 252#define FREERDP_ERROR_SERVER_FRESH_CREDENTIALS_REQUIRED \ 253 MAKE_FREERDP_ERROR(ERRINFO, ERRINFO_SERVER_FRESH_CREDENTIALS_REQUIRED) 254#define FREERDP_ERROR_RPC_INITIATED_DISCONNECT_BY_USER \ 255 MAKE_FREERDP_ERROR(ERRINFO, ERRINFO_RPC_INITIATED_DISCONNECT_BY_USER) 256#define FREERDP_ERROR_LOGOFF_BY_USER MAKE_FREERDP_ERROR(ERRINFO, ERRINFO_LOGOFF_BY_USER) 257 258#define FREERDP_ERROR_CLOSE_STACK_ON_DRIVER_NOT_READY \ 259 MAKE_FREERDP_ERROR(ERRINFO, ERRINFO_CLOSE_STACK_ON_DRIVER_NOT_READY) 260#define FREERDP_ERROR_SERVER_DWM_CRASH MAKE_FREERDP_ERROR(ERRINFO, ERRINFO_SERVER_DWM_CRASH) 261#define FREERDP_ERROR_CLOSE_STACK_ON_DRIVER_FAILURE \ 262 MAKE_FREERDP_ERROR(ERRINFO, ERRINFO_CLOSE_STACK_ON_DRIVER_FAILURE) 263#define FREERDP_ERROR_CLOSE_STACK_ON_DRIVER_IFACE_FAILURE \ 264 MAKE_FREERDP_ERROR(ERRINFO, ERRINFO_CLOSE_STACK_ON_DRIVER_IFACE_FAILURE) 265#define FREERDP_ERROR_SERVER_WINLOGON_CRASH \ 266 MAKE_FREERDP_ERROR(ERRINFO, ERRINFO_SERVER_WINLOGON_CRASH) 267#define FREERDP_ERROR_SERVER_CSRSS_CRASH MAKE_FREERDP_ERROR(ERRINFO, ERRINFO_SERVER_CSRSS_CRASH) 268 269/* Connection Error Codes */ 270#define ERRCONNECT_PRE_CONNECT_FAILED 0x00000001 271#define ERRCONNECT_CONNECT_UNDEFINED 0x00000002 272#define ERRCONNECT_POST_CONNECT_FAILED 0x00000003 273#define ERRCONNECT_DNS_ERROR 0x00000004 274#define ERRCONNECT_DNS_NAME_NOT_FOUND 0x00000005 275#define ERRCONNECT_CONNECT_FAILED 0x00000006 276#define ERRCONNECT_MCS_CONNECT_INITIAL_ERROR 0x00000007 277#define ERRCONNECT_TLS_CONNECT_FAILED 0x00000008 278#define ERRCONNECT_AUTHENTICATION_FAILED 0x00000009 279#define ERRCONNECT_INSUFFICIENT_PRIVILEGES 0x0000000A 280#define ERRCONNECT_CONNECT_CANCELLED 0x0000000B 281#define ERRCONNECT_SECURITY_NEGO_CONNECT_FAILED 0x0000000C 282#define ERRCONNECT_CONNECT_TRANSPORT_FAILED 0x0000000D 283#define ERRCONNECT_PASSWORD_EXPIRED 0x0000000E 284/* For non-domain workstation where we can't contact a kerberos server */ 285#define ERRCONNECT_PASSWORD_CERTAINLY_EXPIRED 0x0000000F 286#define ERRCONNECT_CLIENT_REVOKED 0x00000010 287#define ERRCONNECT_KDC_UNREACHABLE 0x00000011 288 289#define ERRCONNECT_ACCOUNT_DISABLED 0x00000012 290#define ERRCONNECT_PASSWORD_MUST_CHANGE 0x00000013 291#define ERRCONNECT_LOGON_FAILURE 0x00000014 292#define ERRCONNECT_WRONG_PASSWORD 0x00000015 293#define ERRCONNECT_ACCESS_DENIED 0x00000016 294#define ERRCONNECT_ACCOUNT_RESTRICTION 0x00000017 295#define ERRCONNECT_ACCOUNT_LOCKED_OUT 0x00000018 296#define ERRCONNECT_ACCOUNT_EXPIRED 0x00000019 297#define ERRCONNECT_LOGON_TYPE_NOT_GRANTED 0x0000001A 298#define ERRCONNECT_NO_OR_MISSING_CREDENTIALS 0x0000001B 299 300#define ERRCONNECT_SUCCESS ERRINFO_SUCCESS 301#define ERRCONNECT_NONE ERRINFO_NONE 302 303 FREERDP_API const char* freerdp_get_error_connect_string(UINT32 code); 304 FREERDP_API const char* freerdp_get_error_connect_name(UINT32 code); 305 FREERDP_API const char* freerdp_get_error_connect_category(UINT32 code); 306 307#define FREERDP_ERROR_CONNECT_CLASS (FREERDP_ERROR_BASE + 2) 308 309#define FREERDP_ERROR_PRE_CONNECT_FAILED MAKE_FREERDP_ERROR(CONNECT, ERRCONNECT_PRE_CONNECT_FAILED) 310 311#define FREERDP_ERROR_CONNECT_UNDEFINED MAKE_FREERDP_ERROR(CONNECT, ERRCONNECT_CONNECT_UNDEFINED) 312 313#define FREERDP_ERROR_POST_CONNECT_FAILED \ 314 MAKE_FREERDP_ERROR(CONNECT, ERRCONNECT_POST_CONNECT_FAILED) 315 316#define FREERDP_ERROR_DNS_ERROR MAKE_FREERDP_ERROR(CONNECT, ERRCONNECT_DNS_ERROR) 317 318#define FREERDP_ERROR_DNS_NAME_NOT_FOUND MAKE_FREERDP_ERROR(CONNECT, ERRCONNECT_DNS_NAME_NOT_FOUND) 319 320#define FREERDP_ERROR_CONNECT_FAILED MAKE_FREERDP_ERROR(CONNECT, ERRCONNECT_CONNECT_FAILED) 321 322#define FREERDP_ERROR_MCS_CONNECT_INITIAL_ERROR \ 323 MAKE_FREERDP_ERROR(CONNECT, ERRCONNECT_MCS_CONNECT_INITIAL_ERROR) 324 325#define FREERDP_ERROR_TLS_CONNECT_FAILED MAKE_FREERDP_ERROR(CONNECT, ERRCONNECT_TLS_CONNECT_FAILED) 326 327#define FREERDP_ERROR_AUTHENTICATION_FAILED \ 328 MAKE_FREERDP_ERROR(CONNECT, ERRCONNECT_AUTHENTICATION_FAILED) 329 330#define FREERDP_ERROR_INSUFFICIENT_PRIVILEGES \ 331 MAKE_FREERDP_ERROR(CONNECT, ERRCONNECT_INSUFFICIENT_PRIVILEGES) 332 333#define FREERDP_ERROR_CONNECT_CANCELLED MAKE_FREERDP_ERROR(CONNECT, ERRCONNECT_CONNECT_CANCELLED) 334 335#define FREERDP_ERROR_SECURITY_NEGO_CONNECT_FAILED \ 336 MAKE_FREERDP_ERROR(CONNECT, ERRCONNECT_SECURITY_NEGO_CONNECT_FAILED) 337 338#define FREERDP_ERROR_CONNECT_TRANSPORT_FAILED \ 339 MAKE_FREERDP_ERROR(CONNECT, ERRCONNECT_CONNECT_TRANSPORT_FAILED) 340 341#define FREERDP_ERROR_CONNECT_PASSWORD_EXPIRED \ 342 MAKE_FREERDP_ERROR(CONNECT, ERRCONNECT_PASSWORD_EXPIRED) 343 344#define FREERDP_ERROR_CONNECT_PASSWORD_MUST_CHANGE \ 345 MAKE_FREERDP_ERROR(CONNECT, ERRCONNECT_PASSWORD_MUST_CHANGE) 346 347#define FREERDP_ERROR_CONNECT_KDC_UNREACHABLE \ 348 MAKE_FREERDP_ERROR(CONNECT, ERRCONNECT_KDC_UNREACHABLE) 349 350#define FREERDP_ERROR_CONNECT_ACCOUNT_DISABLED \ 351 MAKE_FREERDP_ERROR(CONNECT, ERRCONNECT_ACCOUNT_DISABLED) 352 353#define FREERDP_ERROR_CONNECT_PASSWORD_CERTAINLY_EXPIRED \ 354 MAKE_FREERDP_ERROR(CONNECT, ERRCONNECT_PASSWORD_CERTAINLY_EXPIRED) 355 356#define FREERDP_ERROR_CONNECT_CLIENT_REVOKED MAKE_FREERDP_ERROR(CONNECT, ERRCONNECT_CLIENT_REVOKED) 357 358#define FREERDP_ERROR_CONNECT_LOGON_FAILURE MAKE_FREERDP_ERROR(CONNECT, ERRCONNECT_LOGON_FAILURE) 359 360#define FREERDP_ERROR_CONNECT_WRONG_PASSWORD MAKE_FREERDP_ERROR(CONNECT, ERRCONNECT_WRONG_PASSWORD) 361 362#define FREERDP_ERROR_CONNECT_ACCESS_DENIED MAKE_FREERDP_ERROR(CONNECT, ERRCONNECT_ACCESS_DENIED) 363 364#define FREERDP_ERROR_CONNECT_ACCOUNT_RESTRICTION \ 365 MAKE_FREERDP_ERROR(CONNECT, ERRCONNECT_ACCOUNT_RESTRICTION) 366 367#define FREERDP_ERROR_CONNECT_ACCOUNT_LOCKED_OUT \ 368 MAKE_FREERDP_ERROR(CONNECT, ERRCONNECT_ACCOUNT_LOCKED_OUT) 369 370#define FREERDP_ERROR_CONNECT_ACCOUNT_EXPIRED \ 371 MAKE_FREERDP_ERROR(CONNECT, ERRCONNECT_ACCOUNT_EXPIRED) 372 373#define FREERDP_ERROR_CONNECT_LOGON_TYPE_NOT_GRANTED \ 374 MAKE_FREERDP_ERROR(CONNECT, ERRCONNECT_LOGON_TYPE_NOT_GRANTED) 375 376#define FREERDP_ERROR_CONNECT_NO_OR_MISSING_CREDENTIALS \ 377 MAKE_FREERDP_ERROR(CONNECT, ERRCONNECT_NO_OR_MISSING_CREDENTIALS) 378 379#ifdef __cplusplus 380} 381#endif 382 383#endif /* FREERDP_ERROR_H */