FreeRDP
include/freerdp/error.h
1 
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
28 extern "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 
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 
184 #define MAKE_FREERDP_ERROR(_class, _type) (((FREERDP_ERROR_##_class##_CLASS) << 16) | (_type))
185 
186 #define GET_FREERDP_ERROR_CLASS(_errorCode) ((_errorCode >> 16) & 0xFFFF)
187 
188 #define GET_FREERDP_ERROR_TYPE(_errorCode) (_errorCode & 0xFFFF)
189 
190 #define GET_FREERDP_ERROR_SUBCODE
191 
192 #define FREERDP_ERROR_BASE 0
193 
197 #define FREERDP_ERROR_ERRBASE_CLASS (FREERDP_ERROR_BASE + 0)
198 
199 #define ERRBASE_SUCCESS ERRINFO_SUCCESS
200 #define ERRBASE_NONE ERRINFO_NONE
201 
202  FREERDP_API const char* freerdp_get_error_base_string(UINT32 code);
203  FREERDP_API const char* freerdp_get_error_base_name(UINT32 code);
204  FREERDP_API const char* freerdp_get_error_base_category(UINT32 code);
205 
206 #define FREERDP_ERROR_SUCCESS ERRINFO_SUCCESS
207 #define FREERDP_ERROR_NONE ERRINFO_NONE
208 
209  /* Error Info Codes */
210 
211 #define FREERDP_ERROR_ERRINFO_CLASS (FREERDP_ERROR_BASE + 1)
212 
213 #define FREERDP_ERROR_RPC_INITIATED_DISCONNECT \
214  MAKE_FREERDP_ERROR(ERRINFO, ERRINFO_RPC_INITIATED_DISCONNECT)
215 #define FREERDP_ERROR_RPC_INITIATED_LOGOFF MAKE_FREERDP_ERROR(ERRINFO, ERRINFO_RPC_INITIATED_LOGOFF)
216 #define FREERDP_ERROR_IDLE_TIMEOUT MAKE_FREERDP_ERROR(ERRINFO, ERRINFO_IDLE_TIMEOUT)
217 #define FREERDP_ERROR_LOGON_TIMEOUT MAKE_FREERDP_ERROR(ERRINFO, ERRINFO_LOGON_TIMEOUT)
218 #define FREERDP_ERROR_DISCONNECTED_BY_OTHER_CONNECTION \
219  MAKE_FREERDP_ERROR(ERRINFO, ERRINFO_DISCONNECTED_BY_OTHER_CONNECTION)
220 #define FREERDP_ERROR_OUT_OF_MEMORY MAKE_FREERDP_ERROR(ERRINFO, ERRINFO_OUT_OF_MEMORY)
221 #define FREERDP_ERROR_SERVER_DENIED_CONNECTION \
222  MAKE_FREERDP_ERROR(ERRINFO, ERRINFO_SERVER_DENIED_CONNECTION)
223 #define FREERDP_ERROR_SERVER_INSUFFICIENT_PRIVILEGES \
224  MAKE_FREERDP_ERROR(ERRINFO, ERRINFO_SERVER_INSUFFICIENT_PRIVILEGES)
225 #define FREERDP_ERROR_SERVER_FRESH_CREDENTIALS_REQUIRED \
226  MAKE_FREERDP_ERROR(ERRINFO, ERRINFO_SERVER_FRESH_CREDENTIALS_REQUIRED)
227 #define FREERDP_ERROR_RPC_INITIATED_DISCONNECT_BY_USER \
228  MAKE_FREERDP_ERROR(ERRINFO, ERRINFO_RPC_INITIATED_DISCONNECT_BY_USER)
229 #define FREERDP_ERROR_LOGOFF_BY_USER MAKE_FREERDP_ERROR(ERRINFO, ERRINFO_LOGOFF_BY_USER)
230 
231 #define FREERDP_ERROR_CLOSE_STACK_ON_DRIVER_NOT_READY \
232  MAKE_FREERDP_ERROR(ERRINFO, ERRINFO_CLOSE_STACK_ON_DRIVER_NOT_READY)
233 #define FREERDP_ERROR_SERVER_DWM_CRASH MAKE_FREERDP_ERROR(ERRINFO, ERRINFO_SERVER_DWM_CRASH)
234 #define FREERDP_ERROR_CLOSE_STACK_ON_DRIVER_FAILURE \
235  MAKE_FREERDP_ERROR(ERRINFO, ERRINFO_CLOSE_STACK_ON_DRIVER_FAILURE)
236 #define FREERDP_ERROR_CLOSE_STACK_ON_DRIVER_IFACE_FAILURE \
237  MAKE_FREERDP_ERROR(ERRINFO, ERRINFO_CLOSE_STACK_ON_DRIVER_IFACE_FAILURE)
238 #define FREERDP_ERROR_SERVER_WINLOGON_CRASH \
239  MAKE_FREERDP_ERROR(ERRINFO, ERRINFO_SERVER_WINLOGON_CRASH)
240 #define FREERDP_ERROR_SERVER_CSRSS_CRASH MAKE_FREERDP_ERROR(ERRINFO, ERRINFO_SERVER_CSRSS_CRASH)
241 
242 /* Connection Error Codes */
243 #define ERRCONNECT_PRE_CONNECT_FAILED 0x00000001
244 #define ERRCONNECT_CONNECT_UNDEFINED 0x00000002
245 #define ERRCONNECT_POST_CONNECT_FAILED 0x00000003
246 #define ERRCONNECT_DNS_ERROR 0x00000004
247 #define ERRCONNECT_DNS_NAME_NOT_FOUND 0x00000005
248 #define ERRCONNECT_CONNECT_FAILED 0x00000006
249 #define ERRCONNECT_MCS_CONNECT_INITIAL_ERROR 0x00000007
250 #define ERRCONNECT_TLS_CONNECT_FAILED 0x00000008
251 #define ERRCONNECT_AUTHENTICATION_FAILED 0x00000009
252 #define ERRCONNECT_INSUFFICIENT_PRIVILEGES 0x0000000A
253 #define ERRCONNECT_CONNECT_CANCELLED 0x0000000B
254 #define ERRCONNECT_SECURITY_NEGO_CONNECT_FAILED 0x0000000C
255 #define ERRCONNECT_CONNECT_TRANSPORT_FAILED 0x0000000D
256 #define ERRCONNECT_PASSWORD_EXPIRED 0x0000000E
257 /* For non-domain workstation where we can't contact a kerberos server */
258 #define ERRCONNECT_PASSWORD_CERTAINLY_EXPIRED 0x0000000F
259 #define ERRCONNECT_CLIENT_REVOKED 0x00000010
260 #define ERRCONNECT_KDC_UNREACHABLE 0x00000011
261 
262 #define ERRCONNECT_ACCOUNT_DISABLED 0x00000012
263 #define ERRCONNECT_PASSWORD_MUST_CHANGE 0x00000013
264 #define ERRCONNECT_LOGON_FAILURE 0x00000014
265 #define ERRCONNECT_WRONG_PASSWORD 0x00000015
266 #define ERRCONNECT_ACCESS_DENIED 0x00000016
267 #define ERRCONNECT_ACCOUNT_RESTRICTION 0x00000017
268 #define ERRCONNECT_ACCOUNT_LOCKED_OUT 0x00000018
269 #define ERRCONNECT_ACCOUNT_EXPIRED 0x00000019
270 #define ERRCONNECT_LOGON_TYPE_NOT_GRANTED 0x0000001A
271 #define ERRCONNECT_NO_OR_MISSING_CREDENTIALS 0x0000001B
272 #define ERRCONNECT_ACTIVATION_TIMEOUT 0x0000001C
273 
274 #define ERRCONNECT_SUCCESS ERRINFO_SUCCESS
275 #define ERRCONNECT_NONE ERRINFO_NONE
276 
277  FREERDP_API const char* freerdp_get_error_connect_string(UINT32 code);
278  FREERDP_API const char* freerdp_get_error_connect_name(UINT32 code);
279  FREERDP_API const char* freerdp_get_error_connect_category(UINT32 code);
280 
281 #define FREERDP_ERROR_CONNECT_CLASS (FREERDP_ERROR_BASE + 2)
282 
283 #define FREERDP_ERROR_PRE_CONNECT_FAILED MAKE_FREERDP_ERROR(CONNECT, ERRCONNECT_PRE_CONNECT_FAILED)
284 
285 #define FREERDP_ERROR_CONNECT_UNDEFINED MAKE_FREERDP_ERROR(CONNECT, ERRCONNECT_CONNECT_UNDEFINED)
286 
287 #define FREERDP_ERROR_POST_CONNECT_FAILED \
288  MAKE_FREERDP_ERROR(CONNECT, ERRCONNECT_POST_CONNECT_FAILED)
289 
290 #define FREERDP_ERROR_DNS_ERROR MAKE_FREERDP_ERROR(CONNECT, ERRCONNECT_DNS_ERROR)
291 
292 #define FREERDP_ERROR_DNS_NAME_NOT_FOUND MAKE_FREERDP_ERROR(CONNECT, ERRCONNECT_DNS_NAME_NOT_FOUND)
293 
294 #define FREERDP_ERROR_CONNECT_FAILED MAKE_FREERDP_ERROR(CONNECT, ERRCONNECT_CONNECT_FAILED)
295 
296 #define FREERDP_ERROR_MCS_CONNECT_INITIAL_ERROR \
297  MAKE_FREERDP_ERROR(CONNECT, ERRCONNECT_MCS_CONNECT_INITIAL_ERROR)
298 
299 #define FREERDP_ERROR_TLS_CONNECT_FAILED MAKE_FREERDP_ERROR(CONNECT, ERRCONNECT_TLS_CONNECT_FAILED)
300 
301 #define FREERDP_ERROR_AUTHENTICATION_FAILED \
302  MAKE_FREERDP_ERROR(CONNECT, ERRCONNECT_AUTHENTICATION_FAILED)
303 
304 #define FREERDP_ERROR_INSUFFICIENT_PRIVILEGES \
305  MAKE_FREERDP_ERROR(CONNECT, ERRCONNECT_INSUFFICIENT_PRIVILEGES)
306 
307 #define FREERDP_ERROR_CONNECT_CANCELLED MAKE_FREERDP_ERROR(CONNECT, ERRCONNECT_CONNECT_CANCELLED)
308 
309 #define FREERDP_ERROR_SECURITY_NEGO_CONNECT_FAILED \
310  MAKE_FREERDP_ERROR(CONNECT, ERRCONNECT_SECURITY_NEGO_CONNECT_FAILED)
311 
312 #define FREERDP_ERROR_CONNECT_TRANSPORT_FAILED \
313  MAKE_FREERDP_ERROR(CONNECT, ERRCONNECT_CONNECT_TRANSPORT_FAILED)
314 
315 #define FREERDP_ERROR_CONNECT_PASSWORD_EXPIRED \
316  MAKE_FREERDP_ERROR(CONNECT, ERRCONNECT_PASSWORD_EXPIRED)
317 
318 #define FREERDP_ERROR_CONNECT_PASSWORD_MUST_CHANGE \
319  MAKE_FREERDP_ERROR(CONNECT, ERRCONNECT_PASSWORD_MUST_CHANGE)
320 
321 #define FREERDP_ERROR_CONNECT_KDC_UNREACHABLE \
322  MAKE_FREERDP_ERROR(CONNECT, ERRCONNECT_KDC_UNREACHABLE)
323 
324 #define FREERDP_ERROR_CONNECT_ACCOUNT_DISABLED \
325  MAKE_FREERDP_ERROR(CONNECT, ERRCONNECT_ACCOUNT_DISABLED)
326 
327 #define FREERDP_ERROR_CONNECT_PASSWORD_CERTAINLY_EXPIRED \
328  MAKE_FREERDP_ERROR(CONNECT, ERRCONNECT_PASSWORD_CERTAINLY_EXPIRED)
329 
330 #define FREERDP_ERROR_CONNECT_CLIENT_REVOKED MAKE_FREERDP_ERROR(CONNECT, ERRCONNECT_CLIENT_REVOKED)
331 
332 #define FREERDP_ERROR_CONNECT_LOGON_FAILURE MAKE_FREERDP_ERROR(CONNECT, ERRCONNECT_LOGON_FAILURE)
333 
334 #define FREERDP_ERROR_CONNECT_WRONG_PASSWORD MAKE_FREERDP_ERROR(CONNECT, ERRCONNECT_WRONG_PASSWORD)
335 
336 #define FREERDP_ERROR_CONNECT_ACCESS_DENIED MAKE_FREERDP_ERROR(CONNECT, ERRCONNECT_ACCESS_DENIED)
337 
338 #define FREERDP_ERROR_CONNECT_ACCOUNT_RESTRICTION \
339  MAKE_FREERDP_ERROR(CONNECT, ERRCONNECT_ACCOUNT_RESTRICTION)
340 
341 #define FREERDP_ERROR_CONNECT_ACCOUNT_LOCKED_OUT \
342  MAKE_FREERDP_ERROR(CONNECT, ERRCONNECT_ACCOUNT_LOCKED_OUT)
343 
344 #define FREERDP_ERROR_CONNECT_ACCOUNT_EXPIRED \
345  MAKE_FREERDP_ERROR(CONNECT, ERRCONNECT_ACCOUNT_EXPIRED)
346 
347 #define FREERDP_ERROR_CONNECT_LOGON_TYPE_NOT_GRANTED \
348  MAKE_FREERDP_ERROR(CONNECT, ERRCONNECT_LOGON_TYPE_NOT_GRANTED)
349 
350 #define FREERDP_ERROR_CONNECT_NO_OR_MISSING_CREDENTIALS \
351  MAKE_FREERDP_ERROR(CONNECT, ERRCONNECT_NO_OR_MISSING_CREDENTIALS)
352 
353 #define FREERDP_ERROR_CONNECT_ACTIVATION_TIMEOUT \
354  MAKE_FREERDP_ERROR(CONNECT, ERRCONNECT_ACTIVATION_TIMEOUT)
355 
356 #ifdef __cplusplus
357 }
358 #endif
359 
360 #endif /* FREERDP_ERROR_H */