Skip to content

Commit

Permalink
add AuthenticationServiceClass, EnableFrameBufferRedirection .RDP opt…
Browse files Browse the repository at this point in the history
…ions
  • Loading branch information
Marc-André Moreau authored and awakecoding committed Sep 25, 2024
1 parent 784afe7 commit be2f4ca
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions dll/RdpSettings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit be2f4ca

Please sign in to comment.