From be2f4ca47ca4ee8376bba8690b7c94e675460de8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc-Andr=C3=A9=20Moreau?= Date: Wed, 25 Sep 2024 09:10:08 -0400 Subject: [PATCH] add AuthenticationServiceClass, EnableFrameBufferRedirection .RDP options --- dll/RdpSettings.cpp | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/dll/RdpSettings.cpp b/dll/RdpSettings.cpp index 4ee7424..b024672 100644 --- a/dll/RdpSettings.cpp +++ b/dll/RdpSettings.cpp @@ -790,6 +790,13 @@ HRESULT CMsRdpExtendedSettings::ApplyRdpFile(void* rdpFilePtr) pMsRdpExtendedSettings->PutProperty(propName, &value); } } + else if (MsRdpEx_RdpFileEntry_IsMatch(entry, 's', "AuthenticationServiceClass")) { + bstr_t propName = _com_util::ConvertStringToBSTR("AuthServiceClass"); + bstr_t propValue = _com_util::ConvertStringToBSTR(entry->value); + value.bstrVal = propValue; + value.vt = VT_BSTR; + pMsRdpExtendedSettings->put_CoreProperty(propName, &value); + } else if (MsRdpEx_RdpFileEntry_IsMatch(entry, 's', "UserSpecifiedServerName")) { bstr_t propName = _com_util::ConvertStringToBSTR(entry->name); bstr_t propValue = _com_util::ConvertStringToBSTR(entry->value); @@ -828,6 +835,12 @@ HRESULT CMsRdpExtendedSettings::ApplyRdpFile(void* rdpFilePtr) pMsRdpExtendedSettings->put_CoreProperty(propName, &value); } } + else if (MsRdpEx_RdpFileEntry_IsMatch(entry, 'i', "EnableFrameBufferRedirection")) { + if (MsRdpEx_RdpFileEntry_GetVBoolValue(entry, &value)) { + bstr_t propName = _com_util::ConvertStringToBSTR(entry->name); + pMsRdpExtendedSettings->put_Property(propName, &value); + } + } else if (MsRdpEx_RdpFileEntry_IsMatch(entry, 'i', "EnableHardwareMode")) { if (MsRdpEx_RdpFileEntry_GetVBoolValue(entry, &value)) { bstr_t propName = _com_util::ConvertStringToBSTR(entry->name);