Skip to content

Commit

Permalink
add ConnectionBarText .RDP file option
Browse files Browse the repository at this point in the history
  • Loading branch information
Marc-André Moreau authored and awakecoding committed Sep 23, 2024
1 parent f13914c commit 784afe7
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions dll/RdpSettings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -797,6 +797,13 @@ HRESULT CMsRdpExtendedSettings::ApplyRdpFile(void* rdpFilePtr)
value.vt = VT_BSTR;
pMsRdpExtendedSettings->put_CoreProperty(propName, &value);
}
else if (MsRdpEx_RdpFileEntry_IsMatch(entry, 's', "ConnectionBarText")) {
bstr_t propName = _com_util::ConvertStringToBSTR(entry->name);
bstr_t propValue = _com_util::ConvertStringToBSTR(entry->value);
value.bstrVal = propValue;
value.vt = VT_BSTR;
pMsRdpExtendedSettings->put_BaseProperty(propName, &value);
}
else if (MsRdpEx_RdpFileEntry_IsMatch(entry, 'i', "DisableUDPTransport")) {
if (MsRdpEx_RdpFileEntry_GetVBoolValue(entry, &value)) {
bstr_t propName = _com_util::ConvertStringToBSTR(entry->name);
Expand Down

0 comments on commit 784afe7

Please sign in to comment.