Skip to content

Commit

Permalink
add ClientDeviceName .RDP file option
Browse files Browse the repository at this point in the history
  • Loading branch information
Marc-André Moreau authored and awakecoding committed Oct 7, 2024
1 parent be2f4ca commit ac68cfc
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 @@ -804,6 +804,13 @@ HRESULT CMsRdpExtendedSettings::ApplyRdpFile(void* rdpFilePtr)
value.vt = VT_BSTR;
pMsRdpExtendedSettings->put_CoreProperty(propName, &value);
}
else if (MsRdpEx_RdpFileEntry_IsMatch(entry, 's', "ClientDeviceName")) {
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_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);
Expand Down

0 comments on commit ac68cfc

Please sign in to comment.