[libfreerdp] Add new defines for logon error info

This commit is contained in:
Martin Fleisz
2026-02-26 12:53:17 +01:00
committed by Armin Novak
parent 9f5106c0d1
commit 5146a13587
2 changed files with 22 additions and 25 deletions

View File

@@ -1189,29 +1189,24 @@ const char* freerdp_get_logon_error_info_type_ex(UINT32 type, char* buffer, size
const char* freerdp_get_logon_error_info_type(UINT32 type)
{
#define CASE_ENTRY(x) \
case x: \
return #x
switch (type)
{
case LOGON_MSG_DISCONNECT_REFUSED:
return "LOGON_MSG_DISCONNECT_REFUSED";
case LOGON_MSG_NO_PERMISSION:
return "LOGON_MSG_NO_PERMISSION";
case LOGON_MSG_BUMP_OPTIONS:
return "LOGON_MSG_BUMP_OPTIONS";
case LOGON_MSG_RECONNECT_OPTIONS:
return "LOGON_MSG_RECONNECT_OPTIONS";
case LOGON_MSG_SESSION_TERMINATE:
return "LOGON_MSG_SESSION_TERMINATE";
case LOGON_MSG_SESSION_CONTINUE:
return "LOGON_MSG_SESSION_CONTINUE";
CASE_ENTRY(LOGON_MSG_SESSION_BUSY_OPTIONS);
CASE_ENTRY(LOGON_MSG_DISCONNECT_REFUSED);
CASE_ENTRY(LOGON_MSG_NO_PERMISSION);
CASE_ENTRY(LOGON_MSG_BUMP_OPTIONS);
CASE_ENTRY(LOGON_MSG_RECONNECT_OPTIONS);
CASE_ENTRY(LOGON_MSG_SESSION_TERMINATE);
CASE_ENTRY(LOGON_MSG_SESSION_CONTINUE);
CASE_ENTRY(ERROR_CODE_ACCESS_DENIED);
default:
return "UNKNOWN";
}
#undef CASE_ENTRY
}
const char* freerdp_get_logon_error_info_data(UINT32 data)