Skip to content

Commit

Permalink
Add AutoReconnectEnabled, MaxReconnectAttempts .RDP file options
Browse files Browse the repository at this point in the history
  • Loading branch information
Marc-André Moreau authored and awakecoding committed Jun 10, 2024
1 parent a4dbc74 commit 5ced887
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions dll/RdpSettings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -803,6 +803,18 @@ HRESULT CMsRdpExtendedSettings::ApplyRdpFile(void* rdpFilePtr)
pMsRdpExtendedSettings->put_CoreProperty(propName, &value);
}
}
else if (MsRdpEx_RdpFileEntry_IsMatch(entry, 'i', "AutoReconnectEnabled")) {
if (MsRdpEx_RdpFileEntry_GetVBoolValue(entry, &value)) {
bstr_t propName = _com_util::ConvertStringToBSTR(entry->name);
pMsRdpExtendedSettings->put_CoreProperty(propName, &value);
}
}
else if (MsRdpEx_RdpFileEntry_IsMatch(entry, 'i', "MaxReconnectAttempts")) {
if (MsRdpEx_RdpFileEntry_GetIntValue(entry, &value)) {
bstr_t propName = _com_util::ConvertStringToBSTR("MaxAutoReconnectAttempts");
pMsRdpExtendedSettings->put_Property(propName, &value);
}
}
else if (MsRdpEx_RdpFileEntry_IsMatch(entry, 'i', "ConnectToChildSession")) {
if (MsRdpEx_RdpFileEntry_GetVBoolValue(entry, &value)) {
bstr_t propName = _com_util::ConvertStringToBSTR(entry->name);
Expand Down

0 comments on commit 5ced887

Please sign in to comment.