2019-03-21 15:08:59 +03:00
|
|
|
/* Generated by */
|
|
|
|
|
2021-09-03 09:26:55 +03:00
|
|
|
#include <winpr/assert.h>
|
2019-03-21 15:08:59 +03:00
|
|
|
#include <freerdp/settings.h>
|
|
|
|
#include <freerdp/log.h>
|
|
|
|
|
2020-11-19 12:09:34 +03:00
|
|
|
#include "../core/settings.h"
|
|
|
|
|
2019-03-21 15:08:59 +03:00
|
|
|
#define TAG FREERDP_TAG("common.settings")
|
|
|
|
|
2021-05-18 12:22:27 +03:00
|
|
|
static BOOL update_string(char** current, const char* next, size_t next_len, BOOL cleanup)
|
|
|
|
{
|
|
|
|
if (cleanup)
|
|
|
|
{
|
|
|
|
if (*current)
|
|
|
|
memset(*current, 0, strlen(*current));
|
|
|
|
free(*current);
|
|
|
|
}
|
|
|
|
|
2021-11-24 15:32:44 +03:00
|
|
|
if (!next && (next_len > 0))
|
|
|
|
{
|
|
|
|
*current = calloc(next_len, 1);
|
|
|
|
return (*current != NULL);
|
|
|
|
}
|
|
|
|
|
2021-05-18 12:22:27 +03:00
|
|
|
*current = (next ? strndup(next, next_len) : NULL);
|
|
|
|
return !next || (*current != NULL);
|
|
|
|
}
|
|
|
|
|
2019-11-07 14:39:22 +03:00
|
|
|
BOOL freerdp_settings_get_bool(const rdpSettings* settings, size_t id)
|
2019-03-21 15:08:59 +03:00
|
|
|
{
|
2021-09-03 09:26:55 +03:00
|
|
|
WINPR_ASSERT(settings);
|
2019-03-21 15:08:59 +03:00
|
|
|
|
|
|
|
switch (id)
|
|
|
|
{
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_AllowCacheWaitingList:
|
|
|
|
return settings->AllowCacheWaitingList;
|
2019-03-21 15:08:59 +03:00
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_AllowDesktopComposition:
|
|
|
|
return settings->AllowDesktopComposition;
|
2019-03-21 15:08:59 +03:00
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_AllowFontSmoothing:
|
|
|
|
return settings->AllowFontSmoothing;
|
2019-03-21 15:08:59 +03:00
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_AllowUnanouncedOrdersFromServer:
|
|
|
|
return settings->AllowUnanouncedOrdersFromServer;
|
2019-03-21 15:08:59 +03:00
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_AltSecFrameMarkerSupport:
|
|
|
|
return settings->AltSecFrameMarkerSupport;
|
2019-03-21 15:08:59 +03:00
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_AsyncChannels:
|
|
|
|
return settings->AsyncChannels;
|
2019-03-21 15:08:59 +03:00
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_AsyncUpdate:
|
|
|
|
return settings->AsyncUpdate;
|
2019-03-21 15:08:59 +03:00
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_AudioCapture:
|
|
|
|
return settings->AudioCapture;
|
2019-03-21 15:08:59 +03:00
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_AudioPlayback:
|
|
|
|
return settings->AudioPlayback;
|
2019-03-21 15:08:59 +03:00
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_Authentication:
|
|
|
|
return settings->Authentication;
|
2019-03-21 15:08:59 +03:00
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_AuthenticationOnly:
|
|
|
|
return settings->AuthenticationOnly;
|
2019-03-21 15:08:59 +03:00
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_AutoAcceptCertificate:
|
|
|
|
return settings->AutoAcceptCertificate;
|
2019-03-21 15:08:59 +03:00
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_AutoDenyCertificate:
|
|
|
|
return settings->AutoDenyCertificate;
|
2019-03-21 15:08:59 +03:00
|
|
|
|
|
|
|
case FreeRDP_AutoLogonEnabled:
|
|
|
|
return settings->AutoLogonEnabled;
|
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_AutoReconnectionEnabled:
|
|
|
|
return settings->AutoReconnectionEnabled;
|
2019-03-21 15:08:59 +03:00
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_BitmapCacheEnabled:
|
|
|
|
return settings->BitmapCacheEnabled;
|
2019-03-21 15:08:59 +03:00
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_BitmapCachePersistEnabled:
|
|
|
|
return settings->BitmapCachePersistEnabled;
|
2019-03-21 15:08:59 +03:00
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_BitmapCacheV3Enabled:
|
|
|
|
return settings->BitmapCacheV3Enabled;
|
2019-03-21 15:08:59 +03:00
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_BitmapCompressionDisabled:
|
|
|
|
return settings->BitmapCompressionDisabled;
|
2019-03-21 15:08:59 +03:00
|
|
|
|
2021-04-13 12:01:43 +03:00
|
|
|
case FreeRDP_CertificateCallbackPreferPEM:
|
|
|
|
return settings->CertificateCallbackPreferPEM;
|
|
|
|
|
|
|
|
case FreeRDP_CertificateUseKnownHosts:
|
|
|
|
return settings->CertificateUseKnownHosts;
|
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_ColorPointerFlag:
|
|
|
|
return settings->ColorPointerFlag;
|
2019-03-21 15:08:59 +03:00
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_CompressionEnabled:
|
|
|
|
return settings->CompressionEnabled;
|
2019-03-21 15:08:59 +03:00
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_ConsoleSession:
|
|
|
|
return settings->ConsoleSession;
|
2019-03-21 15:08:59 +03:00
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_CredentialsFromStdin:
|
|
|
|
return settings->CredentialsFromStdin;
|
2019-03-21 15:08:59 +03:00
|
|
|
|
2021-09-17 09:59:10 +03:00
|
|
|
case FreeRDP_DeactivateClientDecoding:
|
|
|
|
return settings->DeactivateClientDecoding;
|
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_Decorations:
|
|
|
|
return settings->Decorations;
|
2019-03-21 15:08:59 +03:00
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_DesktopResize:
|
|
|
|
return settings->DesktopResize;
|
2019-03-21 15:08:59 +03:00
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_DeviceRedirection:
|
|
|
|
return settings->DeviceRedirection;
|
2019-03-21 15:08:59 +03:00
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_DisableCredentialsDelegation:
|
|
|
|
return settings->DisableCredentialsDelegation;
|
2019-03-21 15:08:59 +03:00
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_DisableCtrlAltDel:
|
|
|
|
return settings->DisableCtrlAltDel;
|
2019-03-21 15:08:59 +03:00
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_DisableCursorBlinking:
|
|
|
|
return settings->DisableCursorBlinking;
|
2019-03-21 15:08:59 +03:00
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_DisableCursorShadow:
|
|
|
|
return settings->DisableCursorShadow;
|
2019-03-21 15:08:59 +03:00
|
|
|
|
|
|
|
case FreeRDP_DisableFullWindowDrag:
|
|
|
|
return settings->DisableFullWindowDrag;
|
|
|
|
|
|
|
|
case FreeRDP_DisableMenuAnims:
|
|
|
|
return settings->DisableMenuAnims;
|
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_DisableRemoteAppCapsCheck:
|
|
|
|
return settings->DisableRemoteAppCapsCheck;
|
|
|
|
|
2019-03-21 15:08:59 +03:00
|
|
|
case FreeRDP_DisableThemes:
|
|
|
|
return settings->DisableThemes;
|
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_DisableWallpaper:
|
|
|
|
return settings->DisableWallpaper;
|
2019-03-21 15:08:59 +03:00
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_DrawAllowColorSubsampling:
|
|
|
|
return settings->DrawAllowColorSubsampling;
|
2019-03-21 15:08:59 +03:00
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_DrawAllowDynamicColorFidelity:
|
|
|
|
return settings->DrawAllowDynamicColorFidelity;
|
2019-03-21 15:08:59 +03:00
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_DrawAllowSkipAlpha:
|
|
|
|
return settings->DrawAllowSkipAlpha;
|
2019-03-21 15:08:59 +03:00
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_DrawGdiPlusCacheEnabled:
|
|
|
|
return settings->DrawGdiPlusCacheEnabled;
|
2019-03-21 15:08:59 +03:00
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_DrawGdiPlusEnabled:
|
|
|
|
return settings->DrawGdiPlusEnabled;
|
2019-11-25 11:54:56 +03:00
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_DrawNineGridEnabled:
|
|
|
|
return settings->DrawNineGridEnabled;
|
2019-03-21 15:08:59 +03:00
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_DumpRemoteFx:
|
|
|
|
return settings->DumpRemoteFx;
|
2019-03-21 15:08:59 +03:00
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_DynamicDaylightTimeDisabled:
|
|
|
|
return settings->DynamicDaylightTimeDisabled;
|
2019-03-21 15:08:59 +03:00
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_DynamicResolutionUpdate:
|
|
|
|
return settings->DynamicResolutionUpdate;
|
2019-03-21 15:08:59 +03:00
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_EmbeddedWindow:
|
|
|
|
return settings->EmbeddedWindow;
|
2019-03-21 15:08:59 +03:00
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_EnableWindowsKey:
|
|
|
|
return settings->EnableWindowsKey;
|
2019-03-21 15:08:59 +03:00
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_EncomspVirtualChannel:
|
|
|
|
return settings->EncomspVirtualChannel;
|
2019-03-21 15:08:59 +03:00
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_ExtSecurity:
|
|
|
|
return settings->ExtSecurity;
|
2019-03-21 15:08:59 +03:00
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_ExternalCertificateManagement:
|
|
|
|
return settings->ExternalCertificateManagement;
|
2019-03-21 15:08:59 +03:00
|
|
|
|
|
|
|
case FreeRDP_FIPSMode:
|
|
|
|
return settings->FIPSMode;
|
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_FastPathInput:
|
|
|
|
return settings->FastPathInput;
|
2019-03-21 15:08:59 +03:00
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_FastPathOutput:
|
|
|
|
return settings->FastPathOutput;
|
2019-03-21 15:08:59 +03:00
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_ForceEncryptedCsPdu:
|
|
|
|
return settings->ForceEncryptedCsPdu;
|
2019-03-21 15:08:59 +03:00
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_ForceMultimon:
|
|
|
|
return settings->ForceMultimon;
|
2019-03-21 15:08:59 +03:00
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_FrameMarkerCommandEnabled:
|
|
|
|
return settings->FrameMarkerCommandEnabled;
|
2019-03-21 15:08:59 +03:00
|
|
|
|
|
|
|
case FreeRDP_Fullscreen:
|
|
|
|
return settings->Fullscreen;
|
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_GatewayBypassLocal:
|
|
|
|
return settings->GatewayBypassLocal;
|
2019-03-21 15:08:59 +03:00
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_GatewayEnabled:
|
|
|
|
return settings->GatewayEnabled;
|
2019-03-21 15:08:59 +03:00
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_GatewayHttpTransport:
|
|
|
|
return settings->GatewayHttpTransport;
|
2019-03-21 15:08:59 +03:00
|
|
|
|
2021-03-05 14:59:33 +03:00
|
|
|
case FreeRDP_GatewayHttpUseWebsockets:
|
|
|
|
return settings->GatewayHttpUseWebsockets;
|
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_GatewayRpcTransport:
|
|
|
|
return settings->GatewayRpcTransport;
|
2019-03-21 15:08:59 +03:00
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_GatewayUdpTransport:
|
|
|
|
return settings->GatewayUdpTransport;
|
2019-03-21 15:08:59 +03:00
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_GatewayUseSameCredentials:
|
|
|
|
return settings->GatewayUseSameCredentials;
|
2019-03-21 15:08:59 +03:00
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_GfxAVC444:
|
|
|
|
return settings->GfxAVC444;
|
2019-03-21 15:08:59 +03:00
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_GfxAVC444v2:
|
|
|
|
return settings->GfxAVC444v2;
|
2019-03-21 15:08:59 +03:00
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_GfxH264:
|
|
|
|
return settings->GfxH264;
|
2019-03-21 15:08:59 +03:00
|
|
|
|
2021-07-01 11:43:19 +03:00
|
|
|
case FreeRDP_GfxPlanar:
|
|
|
|
return settings->GfxPlanar;
|
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_GfxProgressive:
|
|
|
|
return settings->GfxProgressive;
|
2019-03-21 15:08:59 +03:00
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_GfxProgressiveV2:
|
|
|
|
return settings->GfxProgressiveV2;
|
2019-03-21 15:08:59 +03:00
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_GfxSendQoeAck:
|
|
|
|
return settings->GfxSendQoeAck;
|
2019-03-21 15:08:59 +03:00
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_GfxSmallCache:
|
|
|
|
return settings->GfxSmallCache;
|
2019-03-21 15:08:59 +03:00
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_GfxThinClient:
|
|
|
|
return settings->GfxThinClient;
|
2019-03-21 15:08:59 +03:00
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_GrabKeyboard:
|
|
|
|
return settings->GrabKeyboard;
|
2019-03-21 15:08:59 +03:00
|
|
|
|
2020-06-29 22:05:12 +03:00
|
|
|
case FreeRDP_GrabMouse:
|
|
|
|
return settings->GrabMouse;
|
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_HasExtendedMouseEvent:
|
|
|
|
return settings->HasExtendedMouseEvent;
|
2019-03-21 15:08:59 +03:00
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_HasHorizontalWheel:
|
|
|
|
return settings->HasHorizontalWheel;
|
2019-03-21 15:08:59 +03:00
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_HasMonitorAttributes:
|
|
|
|
return settings->HasMonitorAttributes;
|
2019-03-21 15:08:59 +03:00
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_HiDefRemoteApp:
|
|
|
|
return settings->HiDefRemoteApp;
|
2019-03-21 15:08:59 +03:00
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_IPv6Enabled:
|
|
|
|
return settings->IPv6Enabled;
|
2019-03-21 15:08:59 +03:00
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_IgnoreCertificate:
|
|
|
|
return settings->IgnoreCertificate;
|
2019-03-21 15:08:59 +03:00
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_JpegCodec:
|
|
|
|
return settings->JpegCodec;
|
2019-03-21 15:08:59 +03:00
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_ListMonitors:
|
|
|
|
return settings->ListMonitors;
|
2019-03-21 15:08:59 +03:00
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_LocalConnection:
|
|
|
|
return settings->LocalConnection;
|
2019-03-21 15:08:59 +03:00
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_LogonErrors:
|
|
|
|
return settings->LogonErrors;
|
2019-03-21 15:08:59 +03:00
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_LogonNotify:
|
|
|
|
return settings->LogonNotify;
|
2019-03-21 15:08:59 +03:00
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_LongCredentialsSupported:
|
|
|
|
return settings->LongCredentialsSupported;
|
2019-03-21 15:08:59 +03:00
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_LyncRdpMode:
|
|
|
|
return settings->LyncRdpMode;
|
2019-03-21 15:08:59 +03:00
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_MaximizeShell:
|
|
|
|
return settings->MaximizeShell;
|
2019-03-21 15:08:59 +03:00
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_MouseAttached:
|
|
|
|
return settings->MouseAttached;
|
2019-03-21 15:08:59 +03:00
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_MouseHasWheel:
|
|
|
|
return settings->MouseHasWheel;
|
2019-03-21 15:08:59 +03:00
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_MouseMotion:
|
|
|
|
return settings->MouseMotion;
|
2019-03-21 15:08:59 +03:00
|
|
|
|
2022-01-17 15:19:58 +03:00
|
|
|
case FreeRDP_MouseUseRelativeMove:
|
|
|
|
return settings->MouseUseRelativeMove;
|
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_MstscCookieMode:
|
|
|
|
return settings->MstscCookieMode;
|
2019-03-21 15:08:59 +03:00
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_MultiTouchGestures:
|
|
|
|
return settings->MultiTouchGestures;
|
|
|
|
|
|
|
|
case FreeRDP_MultiTouchInput:
|
|
|
|
return settings->MultiTouchInput;
|
|
|
|
|
|
|
|
case FreeRDP_NSCodec:
|
|
|
|
return settings->NSCodec;
|
|
|
|
|
|
|
|
case FreeRDP_NSCodecAllowDynamicColorFidelity:
|
|
|
|
return settings->NSCodecAllowDynamicColorFidelity;
|
|
|
|
|
|
|
|
case FreeRDP_NSCodecAllowSubsampling:
|
|
|
|
return settings->NSCodecAllowSubsampling;
|
|
|
|
|
|
|
|
case FreeRDP_NegotiateSecurityLayer:
|
|
|
|
return settings->NegotiateSecurityLayer;
|
|
|
|
|
|
|
|
case FreeRDP_NetworkAutoDetect:
|
|
|
|
return settings->NetworkAutoDetect;
|
|
|
|
|
|
|
|
case FreeRDP_NlaSecurity:
|
|
|
|
return settings->NlaSecurity;
|
2019-03-21 15:08:59 +03:00
|
|
|
|
|
|
|
case FreeRDP_NoBitmapCompressionHeader:
|
|
|
|
return settings->NoBitmapCompressionHeader;
|
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_OldLicenseBehaviour:
|
|
|
|
return settings->OldLicenseBehaviour;
|
2019-03-21 15:08:59 +03:00
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_PasswordIsSmartcardPin:
|
|
|
|
return settings->PasswordIsSmartcardPin;
|
2019-03-21 15:08:59 +03:00
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_PercentScreenUseHeight:
|
|
|
|
return settings->PercentScreenUseHeight;
|
2019-03-21 15:08:59 +03:00
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_PercentScreenUseWidth:
|
|
|
|
return settings->PercentScreenUseWidth;
|
2019-03-21 15:08:59 +03:00
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_PlayRemoteFx:
|
|
|
|
return settings->PlayRemoteFx;
|
2019-03-21 15:08:59 +03:00
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_PreferIPv6OverIPv4:
|
|
|
|
return settings->PreferIPv6OverIPv4;
|
2019-03-21 15:08:59 +03:00
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_PrintReconnectCookie:
|
|
|
|
return settings->PrintReconnectCookie;
|
2019-03-21 15:08:59 +03:00
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_PromptForCredentials:
|
|
|
|
return settings->PromptForCredentials;
|
2019-03-21 15:08:59 +03:00
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_RdpSecurity:
|
|
|
|
return settings->RdpSecurity;
|
2019-03-21 15:08:59 +03:00
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_RedirectClipboard:
|
|
|
|
return settings->RedirectClipboard;
|
2019-03-21 15:08:59 +03:00
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_RedirectDrives:
|
|
|
|
return settings->RedirectDrives;
|
2019-03-21 15:08:59 +03:00
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_RedirectHomeDrive:
|
|
|
|
return settings->RedirectHomeDrive;
|
2019-03-21 15:08:59 +03:00
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_RedirectParallelPorts:
|
|
|
|
return settings->RedirectParallelPorts;
|
2019-03-21 15:08:59 +03:00
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_RedirectPrinters:
|
|
|
|
return settings->RedirectPrinters;
|
2019-03-21 15:08:59 +03:00
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_RedirectSerialPorts:
|
|
|
|
return settings->RedirectSerialPorts;
|
2019-03-21 15:08:59 +03:00
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_RedirectSmartCards:
|
|
|
|
return settings->RedirectSmartCards;
|
2019-03-21 15:08:59 +03:00
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_RefreshRect:
|
|
|
|
return settings->RefreshRect;
|
2019-03-21 15:08:59 +03:00
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_RemdeskVirtualChannel:
|
|
|
|
return settings->RemdeskVirtualChannel;
|
2019-03-21 15:08:59 +03:00
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_RemoteAppLanguageBarSupported:
|
|
|
|
return settings->RemoteAppLanguageBarSupported;
|
2019-03-21 15:08:59 +03:00
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_RemoteApplicationMode:
|
|
|
|
return settings->RemoteApplicationMode;
|
2019-03-21 15:08:59 +03:00
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_RemoteAssistanceMode:
|
|
|
|
return settings->RemoteAssistanceMode;
|
2019-03-21 15:08:59 +03:00
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_RemoteAssistanceRequestControl:
|
|
|
|
return settings->RemoteAssistanceRequestControl;
|
2019-03-21 15:08:59 +03:00
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_RemoteConsoleAudio:
|
|
|
|
return settings->RemoteConsoleAudio;
|
2019-03-21 15:08:59 +03:00
|
|
|
|
|
|
|
case FreeRDP_RemoteFxCodec:
|
|
|
|
return settings->RemoteFxCodec;
|
|
|
|
|
|
|
|
case FreeRDP_RemoteFxImageCodec:
|
|
|
|
return settings->RemoteFxImageCodec;
|
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_RemoteFxOnly:
|
|
|
|
return settings->RemoteFxOnly;
|
2019-03-21 15:08:59 +03:00
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_RestrictedAdminModeRequired:
|
|
|
|
return settings->RestrictedAdminModeRequired;
|
2019-03-21 15:08:59 +03:00
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_SaltedChecksum:
|
|
|
|
return settings->SaltedChecksum;
|
2019-03-21 15:08:59 +03:00
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_SendPreconnectionPdu:
|
|
|
|
return settings->SendPreconnectionPdu;
|
2019-03-21 15:08:59 +03:00
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_ServerMode:
|
|
|
|
return settings->ServerMode;
|
2019-03-21 15:08:59 +03:00
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_SmartSizing:
|
|
|
|
return settings->SmartSizing;
|
2019-03-21 15:08:59 +03:00
|
|
|
|
2022-01-23 19:28:49 +03:00
|
|
|
case FreeRDP_SmartcardEmulation:
|
|
|
|
return settings->SmartcardEmulation;
|
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_SmartcardLogon:
|
|
|
|
return settings->SmartcardLogon;
|
2019-03-21 15:08:59 +03:00
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_SoftwareGdi:
|
|
|
|
return settings->SoftwareGdi;
|
2019-03-21 15:08:59 +03:00
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_SoundBeepsEnabled:
|
|
|
|
return settings->SoundBeepsEnabled;
|
2019-03-21 15:08:59 +03:00
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_SpanMonitors:
|
|
|
|
return settings->SpanMonitors;
|
2019-03-21 15:08:59 +03:00
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_SupportAsymetricKeys:
|
|
|
|
return settings->SupportAsymetricKeys;
|
2019-03-21 15:08:59 +03:00
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_SupportDisplayControl:
|
|
|
|
return settings->SupportDisplayControl;
|
2019-03-21 15:08:59 +03:00
|
|
|
|
|
|
|
case FreeRDP_SupportDynamicChannels:
|
|
|
|
return settings->SupportDynamicChannels;
|
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_SupportDynamicTimeZone:
|
|
|
|
return settings->SupportDynamicTimeZone;
|
|
|
|
|
2019-03-21 15:08:59 +03:00
|
|
|
case FreeRDP_SupportEchoChannel:
|
|
|
|
return settings->SupportEchoChannel;
|
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_SupportErrorInfoPdu:
|
|
|
|
return settings->SupportErrorInfoPdu;
|
2019-03-21 15:08:59 +03:00
|
|
|
|
|
|
|
case FreeRDP_SupportGeometryTracking:
|
|
|
|
return settings->SupportGeometryTracking;
|
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_SupportGraphicsPipeline:
|
|
|
|
return settings->SupportGraphicsPipeline;
|
|
|
|
|
|
|
|
case FreeRDP_SupportHeartbeatPdu:
|
|
|
|
return settings->SupportHeartbeatPdu;
|
|
|
|
|
|
|
|
case FreeRDP_SupportMonitorLayoutPdu:
|
|
|
|
return settings->SupportMonitorLayoutPdu;
|
|
|
|
|
|
|
|
case FreeRDP_SupportMultitransport:
|
|
|
|
return settings->SupportMultitransport;
|
|
|
|
|
2019-03-21 15:08:59 +03:00
|
|
|
case FreeRDP_SupportSSHAgentChannel:
|
|
|
|
return settings->SupportSSHAgentChannel;
|
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_SupportStatusInfoPdu:
|
|
|
|
return settings->SupportStatusInfoPdu;
|
|
|
|
|
2019-03-21 15:08:59 +03:00
|
|
|
case FreeRDP_SupportVideoOptimized:
|
|
|
|
return settings->SupportVideoOptimized;
|
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_SuppressOutput:
|
|
|
|
return settings->SuppressOutput;
|
|
|
|
|
|
|
|
case FreeRDP_SurfaceCommandsEnabled:
|
|
|
|
return settings->SurfaceCommandsEnabled;
|
|
|
|
|
|
|
|
case FreeRDP_SurfaceFrameMarkerEnabled:
|
|
|
|
return settings->SurfaceFrameMarkerEnabled;
|
|
|
|
|
2021-06-21 14:59:41 +03:00
|
|
|
case FreeRDP_SuspendInput:
|
|
|
|
return settings->SuspendInput;
|
|
|
|
|
2019-11-07 14:39:22 +03:00
|
|
|
case FreeRDP_TcpKeepAlive:
|
|
|
|
return settings->TcpKeepAlive;
|
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_TlsSecurity:
|
|
|
|
return settings->TlsSecurity;
|
|
|
|
|
|
|
|
case FreeRDP_ToggleFullscreen:
|
|
|
|
return settings->ToggleFullscreen;
|
|
|
|
|
2021-09-23 15:52:03 +03:00
|
|
|
case FreeRDP_TransportDump:
|
|
|
|
return settings->TransportDump;
|
|
|
|
|
|
|
|
case FreeRDP_TransportDumpReplay:
|
|
|
|
return settings->TransportDumpReplay;
|
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_UnicodeInput:
|
|
|
|
return settings->UnicodeInput;
|
|
|
|
|
|
|
|
case FreeRDP_UnmapButtons:
|
|
|
|
return settings->UnmapButtons;
|
|
|
|
|
|
|
|
case FreeRDP_UseMultimon:
|
|
|
|
return settings->UseMultimon;
|
|
|
|
|
|
|
|
case FreeRDP_UseRdpSecurityLayer:
|
|
|
|
return settings->UseRdpSecurityLayer;
|
|
|
|
|
|
|
|
case FreeRDP_UsingSavedCredentials:
|
|
|
|
return settings->UsingSavedCredentials;
|
|
|
|
|
|
|
|
case FreeRDP_VideoDisable:
|
|
|
|
return settings->VideoDisable;
|
|
|
|
|
|
|
|
case FreeRDP_VmConnectMode:
|
|
|
|
return settings->VmConnectMode;
|
|
|
|
|
|
|
|
case FreeRDP_WaitForOutputBufferFlush:
|
|
|
|
return settings->WaitForOutputBufferFlush;
|
|
|
|
|
|
|
|
case FreeRDP_Workarea:
|
|
|
|
return settings->Workarea;
|
|
|
|
|
2019-03-21 15:08:59 +03:00
|
|
|
default:
|
2019-11-06 17:24:51 +03:00
|
|
|
WLog_ERR(TAG, "[%s] Invalid key index %" PRIuz, __FUNCTION__, id);
|
2019-03-21 15:08:59 +03:00
|
|
|
return FALSE;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-05-08 15:35:25 +03:00
|
|
|
BOOL freerdp_settings_set_bool(rdpSettings* settings, size_t id, BOOL val)
|
2019-03-21 15:08:59 +03:00
|
|
|
{
|
2021-10-07 10:16:20 +03:00
|
|
|
union
|
|
|
|
{
|
|
|
|
void* v;
|
|
|
|
const void* cv;
|
|
|
|
BOOL c;
|
|
|
|
const BOOL cc;
|
|
|
|
} cnv;
|
2021-09-03 09:26:55 +03:00
|
|
|
WINPR_ASSERT(settings);
|
2019-03-21 15:08:59 +03:00
|
|
|
|
2021-10-07 10:16:20 +03:00
|
|
|
cnv.c = val;
|
|
|
|
|
2019-03-21 15:08:59 +03:00
|
|
|
switch (id)
|
|
|
|
{
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_AllowCacheWaitingList:
|
2021-10-07 10:16:20 +03:00
|
|
|
settings->AllowCacheWaitingList = cnv.c;
|
2019-03-21 15:08:59 +03:00
|
|
|
break;
|
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_AllowDesktopComposition:
|
2021-10-07 10:16:20 +03:00
|
|
|
settings->AllowDesktopComposition = cnv.c;
|
2019-03-21 15:08:59 +03:00
|
|
|
break;
|
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_AllowFontSmoothing:
|
2021-10-07 10:16:20 +03:00
|
|
|
settings->AllowFontSmoothing = cnv.c;
|
2019-03-21 15:08:59 +03:00
|
|
|
break;
|
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_AllowUnanouncedOrdersFromServer:
|
2021-10-07 10:16:20 +03:00
|
|
|
settings->AllowUnanouncedOrdersFromServer = cnv.c;
|
2019-03-21 15:08:59 +03:00
|
|
|
break;
|
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_AltSecFrameMarkerSupport:
|
2021-10-07 10:16:20 +03:00
|
|
|
settings->AltSecFrameMarkerSupport = cnv.c;
|
2019-03-21 15:08:59 +03:00
|
|
|
break;
|
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_AsyncChannels:
|
2021-10-07 10:16:20 +03:00
|
|
|
settings->AsyncChannels = cnv.c;
|
2019-03-21 15:08:59 +03:00
|
|
|
break;
|
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_AsyncUpdate:
|
2021-10-07 10:16:20 +03:00
|
|
|
settings->AsyncUpdate = cnv.c;
|
2019-03-21 15:08:59 +03:00
|
|
|
break;
|
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_AudioCapture:
|
2021-10-07 10:16:20 +03:00
|
|
|
settings->AudioCapture = cnv.c;
|
2019-03-21 15:08:59 +03:00
|
|
|
break;
|
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_AudioPlayback:
|
2021-10-07 10:16:20 +03:00
|
|
|
settings->AudioPlayback = cnv.c;
|
2019-03-21 15:08:59 +03:00
|
|
|
break;
|
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_Authentication:
|
2021-10-07 10:16:20 +03:00
|
|
|
settings->Authentication = cnv.c;
|
2019-03-21 15:08:59 +03:00
|
|
|
break;
|
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_AuthenticationOnly:
|
2021-10-07 10:16:20 +03:00
|
|
|
settings->AuthenticationOnly = cnv.c;
|
2019-03-21 15:08:59 +03:00
|
|
|
break;
|
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_AutoAcceptCertificate:
|
2021-10-07 10:16:20 +03:00
|
|
|
settings->AutoAcceptCertificate = cnv.c;
|
2019-03-21 15:08:59 +03:00
|
|
|
break;
|
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_AutoDenyCertificate:
|
2021-10-07 10:16:20 +03:00
|
|
|
settings->AutoDenyCertificate = cnv.c;
|
2019-03-21 15:08:59 +03:00
|
|
|
break;
|
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_AutoLogonEnabled:
|
2021-10-07 10:16:20 +03:00
|
|
|
settings->AutoLogonEnabled = cnv.c;
|
2019-03-21 15:08:59 +03:00
|
|
|
break;
|
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_AutoReconnectionEnabled:
|
2021-10-07 10:16:20 +03:00
|
|
|
settings->AutoReconnectionEnabled = cnv.c;
|
2019-03-21 15:08:59 +03:00
|
|
|
break;
|
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_BitmapCacheEnabled:
|
2021-10-07 10:16:20 +03:00
|
|
|
settings->BitmapCacheEnabled = cnv.c;
|
2019-03-21 15:08:59 +03:00
|
|
|
break;
|
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_BitmapCachePersistEnabled:
|
2021-10-07 10:16:20 +03:00
|
|
|
settings->BitmapCachePersistEnabled = cnv.c;
|
2019-03-21 15:08:59 +03:00
|
|
|
break;
|
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_BitmapCacheV3Enabled:
|
2021-10-07 10:16:20 +03:00
|
|
|
settings->BitmapCacheV3Enabled = cnv.c;
|
2019-03-21 15:08:59 +03:00
|
|
|
break;
|
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_BitmapCompressionDisabled:
|
2021-10-07 10:16:20 +03:00
|
|
|
settings->BitmapCompressionDisabled = cnv.c;
|
2019-03-21 15:08:59 +03:00
|
|
|
break;
|
|
|
|
|
2021-04-13 12:01:43 +03:00
|
|
|
case FreeRDP_CertificateCallbackPreferPEM:
|
2021-10-07 10:16:20 +03:00
|
|
|
settings->CertificateCallbackPreferPEM = cnv.c;
|
2021-04-13 12:01:43 +03:00
|
|
|
break;
|
|
|
|
|
|
|
|
case FreeRDP_CertificateUseKnownHosts:
|
2021-10-07 10:16:20 +03:00
|
|
|
settings->CertificateUseKnownHosts = cnv.c;
|
2021-04-13 12:01:43 +03:00
|
|
|
break;
|
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_ColorPointerFlag:
|
2021-10-07 10:16:20 +03:00
|
|
|
settings->ColorPointerFlag = cnv.c;
|
2019-03-21 15:08:59 +03:00
|
|
|
break;
|
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_CompressionEnabled:
|
2021-10-07 10:16:20 +03:00
|
|
|
settings->CompressionEnabled = cnv.c;
|
2019-03-21 15:08:59 +03:00
|
|
|
break;
|
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_ConsoleSession:
|
2021-10-07 10:16:20 +03:00
|
|
|
settings->ConsoleSession = cnv.c;
|
2019-03-21 15:08:59 +03:00
|
|
|
break;
|
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_CredentialsFromStdin:
|
2021-10-07 10:16:20 +03:00
|
|
|
settings->CredentialsFromStdin = cnv.c;
|
2019-03-21 15:08:59 +03:00
|
|
|
break;
|
|
|
|
|
2021-09-17 09:59:10 +03:00
|
|
|
case FreeRDP_DeactivateClientDecoding:
|
2021-10-07 10:16:20 +03:00
|
|
|
settings->DeactivateClientDecoding = cnv.c;
|
2021-09-17 09:59:10 +03:00
|
|
|
break;
|
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_Decorations:
|
2021-10-07 10:16:20 +03:00
|
|
|
settings->Decorations = cnv.c;
|
2019-03-21 15:08:59 +03:00
|
|
|
break;
|
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_DesktopResize:
|
2021-10-07 10:16:20 +03:00
|
|
|
settings->DesktopResize = cnv.c;
|
2019-03-21 15:08:59 +03:00
|
|
|
break;
|
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_DeviceRedirection:
|
2021-10-07 10:16:20 +03:00
|
|
|
settings->DeviceRedirection = cnv.c;
|
2019-03-21 15:08:59 +03:00
|
|
|
break;
|
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_DisableCredentialsDelegation:
|
2021-10-07 10:16:20 +03:00
|
|
|
settings->DisableCredentialsDelegation = cnv.c;
|
2019-03-21 15:08:59 +03:00
|
|
|
break;
|
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_DisableCtrlAltDel:
|
2021-10-07 10:16:20 +03:00
|
|
|
settings->DisableCtrlAltDel = cnv.c;
|
2019-03-21 15:08:59 +03:00
|
|
|
break;
|
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_DisableCursorBlinking:
|
2021-10-07 10:16:20 +03:00
|
|
|
settings->DisableCursorBlinking = cnv.c;
|
2019-03-21 15:08:59 +03:00
|
|
|
break;
|
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_DisableCursorShadow:
|
2021-10-07 10:16:20 +03:00
|
|
|
settings->DisableCursorShadow = cnv.c;
|
2019-03-21 15:08:59 +03:00
|
|
|
break;
|
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_DisableFullWindowDrag:
|
2021-10-07 10:16:20 +03:00
|
|
|
settings->DisableFullWindowDrag = cnv.c;
|
2019-03-21 15:08:59 +03:00
|
|
|
break;
|
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_DisableMenuAnims:
|
2021-10-07 10:16:20 +03:00
|
|
|
settings->DisableMenuAnims = cnv.c;
|
2019-03-21 15:08:59 +03:00
|
|
|
break;
|
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_DisableRemoteAppCapsCheck:
|
2021-10-07 10:16:20 +03:00
|
|
|
settings->DisableRemoteAppCapsCheck = cnv.c;
|
2019-03-21 15:08:59 +03:00
|
|
|
break;
|
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_DisableThemes:
|
2021-10-07 10:16:20 +03:00
|
|
|
settings->DisableThemes = cnv.c;
|
2019-03-21 15:08:59 +03:00
|
|
|
break;
|
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_DisableWallpaper:
|
2021-10-07 10:16:20 +03:00
|
|
|
settings->DisableWallpaper = cnv.c;
|
2019-03-21 15:08:59 +03:00
|
|
|
break;
|
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_DrawAllowColorSubsampling:
|
2021-10-07 10:16:20 +03:00
|
|
|
settings->DrawAllowColorSubsampling = cnv.c;
|
2019-03-21 15:08:59 +03:00
|
|
|
break;
|
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_DrawAllowDynamicColorFidelity:
|
2021-10-07 10:16:20 +03:00
|
|
|
settings->DrawAllowDynamicColorFidelity = cnv.c;
|
2019-03-21 15:08:59 +03:00
|
|
|
break;
|
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_DrawAllowSkipAlpha:
|
2021-10-07 10:16:20 +03:00
|
|
|
settings->DrawAllowSkipAlpha = cnv.c;
|
2019-03-21 15:08:59 +03:00
|
|
|
break;
|
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_DrawGdiPlusCacheEnabled:
|
2021-10-07 10:16:20 +03:00
|
|
|
settings->DrawGdiPlusCacheEnabled = cnv.c;
|
2019-03-21 15:08:59 +03:00
|
|
|
break;
|
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_DrawGdiPlusEnabled:
|
2021-10-07 10:16:20 +03:00
|
|
|
settings->DrawGdiPlusEnabled = cnv.c;
|
2019-03-21 15:08:59 +03:00
|
|
|
break;
|
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_DrawNineGridEnabled:
|
2021-10-07 10:16:20 +03:00
|
|
|
settings->DrawNineGridEnabled = cnv.c;
|
2019-03-21 15:08:59 +03:00
|
|
|
break;
|
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_DumpRemoteFx:
|
2021-10-07 10:16:20 +03:00
|
|
|
settings->DumpRemoteFx = cnv.c;
|
2019-03-21 15:08:59 +03:00
|
|
|
break;
|
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_DynamicDaylightTimeDisabled:
|
2021-10-07 10:16:20 +03:00
|
|
|
settings->DynamicDaylightTimeDisabled = cnv.c;
|
2019-03-21 15:08:59 +03:00
|
|
|
break;
|
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_DynamicResolutionUpdate:
|
2021-10-07 10:16:20 +03:00
|
|
|
settings->DynamicResolutionUpdate = cnv.c;
|
2019-03-21 15:08:59 +03:00
|
|
|
break;
|
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_EmbeddedWindow:
|
2021-10-07 10:16:20 +03:00
|
|
|
settings->EmbeddedWindow = cnv.c;
|
2019-03-21 15:08:59 +03:00
|
|
|
break;
|
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_EnableWindowsKey:
|
2021-10-07 10:16:20 +03:00
|
|
|
settings->EnableWindowsKey = cnv.c;
|
2019-03-21 15:08:59 +03:00
|
|
|
break;
|
|
|
|
|
|
|
|
case FreeRDP_EncomspVirtualChannel:
|
2021-10-07 10:16:20 +03:00
|
|
|
settings->EncomspVirtualChannel = cnv.c;
|
2019-03-21 15:08:59 +03:00
|
|
|
break;
|
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_ExtSecurity:
|
2021-10-07 10:16:20 +03:00
|
|
|
settings->ExtSecurity = cnv.c;
|
2019-03-21 15:08:59 +03:00
|
|
|
break;
|
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_ExternalCertificateManagement:
|
2021-10-07 10:16:20 +03:00
|
|
|
settings->ExternalCertificateManagement = cnv.c;
|
2019-03-21 15:08:59 +03:00
|
|
|
break;
|
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_FIPSMode:
|
2021-10-07 10:16:20 +03:00
|
|
|
settings->FIPSMode = cnv.c;
|
2019-11-25 11:54:56 +03:00
|
|
|
break;
|
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_FastPathInput:
|
2021-10-07 10:16:20 +03:00
|
|
|
settings->FastPathInput = cnv.c;
|
2019-03-21 15:08:59 +03:00
|
|
|
break;
|
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_FastPathOutput:
|
2021-10-07 10:16:20 +03:00
|
|
|
settings->FastPathOutput = cnv.c;
|
2019-03-21 15:08:59 +03:00
|
|
|
break;
|
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_ForceEncryptedCsPdu:
|
2021-10-07 10:16:20 +03:00
|
|
|
settings->ForceEncryptedCsPdu = cnv.c;
|
2019-03-21 15:08:59 +03:00
|
|
|
break;
|
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_ForceMultimon:
|
2021-10-07 10:16:20 +03:00
|
|
|
settings->ForceMultimon = cnv.c;
|
2019-03-21 15:08:59 +03:00
|
|
|
break;
|
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_FrameMarkerCommandEnabled:
|
2021-10-07 10:16:20 +03:00
|
|
|
settings->FrameMarkerCommandEnabled = cnv.c;
|
2019-03-21 15:08:59 +03:00
|
|
|
break;
|
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_Fullscreen:
|
2021-10-07 10:16:20 +03:00
|
|
|
settings->Fullscreen = cnv.c;
|
2019-03-21 15:08:59 +03:00
|
|
|
break;
|
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_GatewayBypassLocal:
|
2021-10-07 10:16:20 +03:00
|
|
|
settings->GatewayBypassLocal = cnv.c;
|
2019-03-21 15:08:59 +03:00
|
|
|
break;
|
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_GatewayEnabled:
|
2021-10-07 10:16:20 +03:00
|
|
|
settings->GatewayEnabled = cnv.c;
|
2019-03-21 15:08:59 +03:00
|
|
|
break;
|
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_GatewayHttpTransport:
|
2021-10-07 10:16:20 +03:00
|
|
|
settings->GatewayHttpTransport = cnv.c;
|
2019-03-21 15:08:59 +03:00
|
|
|
break;
|
|
|
|
|
2021-03-05 14:59:33 +03:00
|
|
|
case FreeRDP_GatewayHttpUseWebsockets:
|
2021-10-07 10:16:20 +03:00
|
|
|
settings->GatewayHttpUseWebsockets = cnv.c;
|
2021-03-05 14:59:33 +03:00
|
|
|
break;
|
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_GatewayRpcTransport:
|
2021-10-07 10:16:20 +03:00
|
|
|
settings->GatewayRpcTransport = cnv.c;
|
2019-03-21 15:08:59 +03:00
|
|
|
break;
|
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_GatewayUdpTransport:
|
2021-10-07 10:16:20 +03:00
|
|
|
settings->GatewayUdpTransport = cnv.c;
|
2019-03-21 15:08:59 +03:00
|
|
|
break;
|
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_GatewayUseSameCredentials:
|
2021-10-07 10:16:20 +03:00
|
|
|
settings->GatewayUseSameCredentials = cnv.c;
|
2019-03-21 15:08:59 +03:00
|
|
|
break;
|
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_GfxAVC444:
|
2021-10-07 10:16:20 +03:00
|
|
|
settings->GfxAVC444 = cnv.c;
|
2019-03-21 15:08:59 +03:00
|
|
|
break;
|
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_GfxAVC444v2:
|
2021-10-07 10:16:20 +03:00
|
|
|
settings->GfxAVC444v2 = cnv.c;
|
2019-07-15 11:08:39 +03:00
|
|
|
break;
|
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_GfxH264:
|
2021-10-07 10:16:20 +03:00
|
|
|
settings->GfxH264 = cnv.c;
|
2019-03-21 15:08:59 +03:00
|
|
|
break;
|
|
|
|
|
2021-07-01 11:43:19 +03:00
|
|
|
case FreeRDP_GfxPlanar:
|
2021-10-07 10:16:20 +03:00
|
|
|
settings->GfxPlanar = cnv.c;
|
2021-07-01 11:43:19 +03:00
|
|
|
break;
|
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_GfxProgressive:
|
2021-10-07 10:16:20 +03:00
|
|
|
settings->GfxProgressive = cnv.c;
|
2019-03-21 15:08:59 +03:00
|
|
|
break;
|
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_GfxProgressiveV2:
|
2021-10-07 10:16:20 +03:00
|
|
|
settings->GfxProgressiveV2 = cnv.c;
|
2019-03-21 15:08:59 +03:00
|
|
|
break;
|
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_GfxSendQoeAck:
|
2021-10-07 10:16:20 +03:00
|
|
|
settings->GfxSendQoeAck = cnv.c;
|
2019-03-21 15:08:59 +03:00
|
|
|
break;
|
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_GfxSmallCache:
|
2021-10-07 10:16:20 +03:00
|
|
|
settings->GfxSmallCache = cnv.c;
|
2019-03-21 15:08:59 +03:00
|
|
|
break;
|
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_GfxThinClient:
|
2021-10-07 10:16:20 +03:00
|
|
|
settings->GfxThinClient = cnv.c;
|
2019-03-21 15:08:59 +03:00
|
|
|
break;
|
|
|
|
|
|
|
|
case FreeRDP_GrabKeyboard:
|
2021-10-07 10:16:20 +03:00
|
|
|
settings->GrabKeyboard = cnv.c;
|
2019-03-21 15:08:59 +03:00
|
|
|
break;
|
|
|
|
|
2020-06-29 22:05:12 +03:00
|
|
|
case FreeRDP_GrabMouse:
|
2021-10-07 10:16:20 +03:00
|
|
|
settings->GrabMouse = cnv.c;
|
2020-06-29 22:05:12 +03:00
|
|
|
break;
|
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_HasExtendedMouseEvent:
|
2021-10-07 10:16:20 +03:00
|
|
|
settings->HasExtendedMouseEvent = cnv.c;
|
2019-03-21 15:08:59 +03:00
|
|
|
break;
|
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_HasHorizontalWheel:
|
2021-10-07 10:16:20 +03:00
|
|
|
settings->HasHorizontalWheel = cnv.c;
|
2019-03-21 15:08:59 +03:00
|
|
|
break;
|
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_HasMonitorAttributes:
|
2021-10-07 10:16:20 +03:00
|
|
|
settings->HasMonitorAttributes = cnv.c;
|
2019-03-21 15:08:59 +03:00
|
|
|
break;
|
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_HiDefRemoteApp:
|
2021-10-07 10:16:20 +03:00
|
|
|
settings->HiDefRemoteApp = cnv.c;
|
2019-03-21 15:08:59 +03:00
|
|
|
break;
|
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_IPv6Enabled:
|
2021-10-07 10:16:20 +03:00
|
|
|
settings->IPv6Enabled = cnv.c;
|
2019-03-21 15:08:59 +03:00
|
|
|
break;
|
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_IgnoreCertificate:
|
2021-10-07 10:16:20 +03:00
|
|
|
settings->IgnoreCertificate = cnv.c;
|
2019-03-21 15:08:59 +03:00
|
|
|
break;
|
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_JpegCodec:
|
2021-10-07 10:16:20 +03:00
|
|
|
settings->JpegCodec = cnv.c;
|
2019-03-21 15:08:59 +03:00
|
|
|
break;
|
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_ListMonitors:
|
2021-10-07 10:16:20 +03:00
|
|
|
settings->ListMonitors = cnv.c;
|
2019-03-21 15:08:59 +03:00
|
|
|
break;
|
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_LocalConnection:
|
2021-10-07 10:16:20 +03:00
|
|
|
settings->LocalConnection = cnv.c;
|
2019-03-21 15:08:59 +03:00
|
|
|
break;
|
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_LogonErrors:
|
2021-10-07 10:16:20 +03:00
|
|
|
settings->LogonErrors = cnv.c;
|
2019-03-21 15:08:59 +03:00
|
|
|
break;
|
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_LogonNotify:
|
2021-10-07 10:16:20 +03:00
|
|
|
settings->LogonNotify = cnv.c;
|
2019-03-21 15:08:59 +03:00
|
|
|
break;
|
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_LongCredentialsSupported:
|
2021-10-07 10:16:20 +03:00
|
|
|
settings->LongCredentialsSupported = cnv.c;
|
2019-03-21 15:08:59 +03:00
|
|
|
break;
|
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_LyncRdpMode:
|
2021-10-07 10:16:20 +03:00
|
|
|
settings->LyncRdpMode = cnv.c;
|
2019-03-21 15:08:59 +03:00
|
|
|
break;
|
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_MaximizeShell:
|
2021-10-07 10:16:20 +03:00
|
|
|
settings->MaximizeShell = cnv.c;
|
2019-03-21 15:08:59 +03:00
|
|
|
break;
|
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_MouseAttached:
|
2021-10-07 10:16:20 +03:00
|
|
|
settings->MouseAttached = cnv.c;
|
2019-03-21 15:08:59 +03:00
|
|
|
break;
|
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_MouseHasWheel:
|
2021-10-07 10:16:20 +03:00
|
|
|
settings->MouseHasWheel = cnv.c;
|
2019-03-21 15:08:59 +03:00
|
|
|
break;
|
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_MouseMotion:
|
2021-10-07 10:16:20 +03:00
|
|
|
settings->MouseMotion = cnv.c;
|
2019-03-21 15:08:59 +03:00
|
|
|
break;
|
|
|
|
|
2022-01-17 15:19:58 +03:00
|
|
|
case FreeRDP_MouseUseRelativeMove:
|
|
|
|
settings->MouseUseRelativeMove = cnv.c;
|
|
|
|
break;
|
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_MstscCookieMode:
|
2021-10-07 10:16:20 +03:00
|
|
|
settings->MstscCookieMode = cnv.c;
|
2019-03-21 15:08:59 +03:00
|
|
|
break;
|
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_MultiTouchGestures:
|
2021-10-07 10:16:20 +03:00
|
|
|
settings->MultiTouchGestures = cnv.c;
|
2019-03-21 15:08:59 +03:00
|
|
|
break;
|
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_MultiTouchInput:
|
2021-10-07 10:16:20 +03:00
|
|
|
settings->MultiTouchInput = cnv.c;
|
2019-03-21 15:08:59 +03:00
|
|
|
break;
|
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_NSCodec:
|
2021-10-07 10:16:20 +03:00
|
|
|
settings->NSCodec = cnv.c;
|
2019-03-21 15:08:59 +03:00
|
|
|
break;
|
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_NSCodecAllowDynamicColorFidelity:
|
2021-10-07 10:16:20 +03:00
|
|
|
settings->NSCodecAllowDynamicColorFidelity = cnv.c;
|
2019-03-21 15:08:59 +03:00
|
|
|
break;
|
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_NSCodecAllowSubsampling:
|
2021-10-07 10:16:20 +03:00
|
|
|
settings->NSCodecAllowSubsampling = cnv.c;
|
2019-03-21 15:08:59 +03:00
|
|
|
break;
|
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_NegotiateSecurityLayer:
|
2021-10-07 10:16:20 +03:00
|
|
|
settings->NegotiateSecurityLayer = cnv.c;
|
2019-03-21 15:08:59 +03:00
|
|
|
break;
|
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_NetworkAutoDetect:
|
2021-10-07 10:16:20 +03:00
|
|
|
settings->NetworkAutoDetect = cnv.c;
|
2019-03-21 15:08:59 +03:00
|
|
|
break;
|
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_NlaSecurity:
|
2021-10-07 10:16:20 +03:00
|
|
|
settings->NlaSecurity = cnv.c;
|
2019-03-21 15:08:59 +03:00
|
|
|
break;
|
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_NoBitmapCompressionHeader:
|
2021-10-07 10:16:20 +03:00
|
|
|
settings->NoBitmapCompressionHeader = cnv.c;
|
2019-03-21 15:08:59 +03:00
|
|
|
break;
|
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_OldLicenseBehaviour:
|
2021-10-07 10:16:20 +03:00
|
|
|
settings->OldLicenseBehaviour = cnv.c;
|
2019-03-21 15:08:59 +03:00
|
|
|
break;
|
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_PasswordIsSmartcardPin:
|
2021-10-07 10:16:20 +03:00
|
|
|
settings->PasswordIsSmartcardPin = cnv.c;
|
2019-03-21 15:08:59 +03:00
|
|
|
break;
|
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_PercentScreenUseHeight:
|
2021-10-07 10:16:20 +03:00
|
|
|
settings->PercentScreenUseHeight = cnv.c;
|
2019-03-21 15:08:59 +03:00
|
|
|
break;
|
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_PercentScreenUseWidth:
|
2021-10-07 10:16:20 +03:00
|
|
|
settings->PercentScreenUseWidth = cnv.c;
|
2019-03-21 15:08:59 +03:00
|
|
|
break;
|
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_PlayRemoteFx:
|
2021-10-07 10:16:20 +03:00
|
|
|
settings->PlayRemoteFx = cnv.c;
|
2019-03-21 15:08:59 +03:00
|
|
|
break;
|
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_PreferIPv6OverIPv4:
|
2021-10-07 10:16:20 +03:00
|
|
|
settings->PreferIPv6OverIPv4 = cnv.c;
|
2019-03-21 15:08:59 +03:00
|
|
|
break;
|
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_PrintReconnectCookie:
|
2021-10-07 10:16:20 +03:00
|
|
|
settings->PrintReconnectCookie = cnv.c;
|
2019-03-21 15:08:59 +03:00
|
|
|
break;
|
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_PromptForCredentials:
|
2021-10-07 10:16:20 +03:00
|
|
|
settings->PromptForCredentials = cnv.c;
|
2019-03-21 15:08:59 +03:00
|
|
|
break;
|
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_RdpSecurity:
|
2021-10-07 10:16:20 +03:00
|
|
|
settings->RdpSecurity = cnv.c;
|
2019-03-21 15:08:59 +03:00
|
|
|
break;
|
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_RedirectClipboard:
|
2021-10-07 10:16:20 +03:00
|
|
|
settings->RedirectClipboard = cnv.c;
|
2019-03-21 15:08:59 +03:00
|
|
|
break;
|
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_RedirectDrives:
|
2021-10-07 10:16:20 +03:00
|
|
|
settings->RedirectDrives = cnv.c;
|
2019-03-21 15:08:59 +03:00
|
|
|
break;
|
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_RedirectHomeDrive:
|
2021-10-07 10:16:20 +03:00
|
|
|
settings->RedirectHomeDrive = cnv.c;
|
2019-03-21 15:08:59 +03:00
|
|
|
break;
|
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_RedirectParallelPorts:
|
2021-10-07 10:16:20 +03:00
|
|
|
settings->RedirectParallelPorts = cnv.c;
|
2019-03-21 15:08:59 +03:00
|
|
|
break;
|
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_RedirectPrinters:
|
2021-10-07 10:16:20 +03:00
|
|
|
settings->RedirectPrinters = cnv.c;
|
2019-03-21 15:08:59 +03:00
|
|
|
break;
|
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_RedirectSerialPorts:
|
2021-10-07 10:16:20 +03:00
|
|
|
settings->RedirectSerialPorts = cnv.c;
|
2019-03-21 15:08:59 +03:00
|
|
|
break;
|
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_RedirectSmartCards:
|
2021-10-07 10:16:20 +03:00
|
|
|
settings->RedirectSmartCards = cnv.c;
|
2019-03-21 15:08:59 +03:00
|
|
|
break;
|
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_RefreshRect:
|
2021-10-07 10:16:20 +03:00
|
|
|
settings->RefreshRect = cnv.c;
|
2019-03-21 15:08:59 +03:00
|
|
|
break;
|
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_RemdeskVirtualChannel:
|
2021-10-07 10:16:20 +03:00
|
|
|
settings->RemdeskVirtualChannel = cnv.c;
|
2019-03-21 15:08:59 +03:00
|
|
|
break;
|
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_RemoteAppLanguageBarSupported:
|
2021-10-07 10:16:20 +03:00
|
|
|
settings->RemoteAppLanguageBarSupported = cnv.c;
|
2019-03-21 15:08:59 +03:00
|
|
|
break;
|
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_RemoteApplicationMode:
|
2021-10-07 10:16:20 +03:00
|
|
|
settings->RemoteApplicationMode = cnv.c;
|
2019-03-21 15:08:59 +03:00
|
|
|
break;
|
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_RemoteAssistanceMode:
|
2021-10-07 10:16:20 +03:00
|
|
|
settings->RemoteAssistanceMode = cnv.c;
|
2019-03-21 15:08:59 +03:00
|
|
|
break;
|
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_RemoteAssistanceRequestControl:
|
2021-10-07 10:16:20 +03:00
|
|
|
settings->RemoteAssistanceRequestControl = cnv.c;
|
2019-03-21 15:08:59 +03:00
|
|
|
break;
|
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_RemoteConsoleAudio:
|
2021-10-07 10:16:20 +03:00
|
|
|
settings->RemoteConsoleAudio = cnv.c;
|
2019-03-21 15:08:59 +03:00
|
|
|
break;
|
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_RemoteFxCodec:
|
2021-10-07 10:16:20 +03:00
|
|
|
settings->RemoteFxCodec = cnv.c;
|
2019-03-21 15:08:59 +03:00
|
|
|
break;
|
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_RemoteFxImageCodec:
|
2021-10-07 10:16:20 +03:00
|
|
|
settings->RemoteFxImageCodec = cnv.c;
|
2019-03-21 15:08:59 +03:00
|
|
|
break;
|
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_RemoteFxOnly:
|
2021-10-07 10:16:20 +03:00
|
|
|
settings->RemoteFxOnly = cnv.c;
|
2019-03-21 15:08:59 +03:00
|
|
|
break;
|
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_RestrictedAdminModeRequired:
|
2021-10-07 10:16:20 +03:00
|
|
|
settings->RestrictedAdminModeRequired = cnv.c;
|
2019-03-21 15:08:59 +03:00
|
|
|
break;
|
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_SaltedChecksum:
|
2021-10-07 10:16:20 +03:00
|
|
|
settings->SaltedChecksum = cnv.c;
|
2019-03-21 15:08:59 +03:00
|
|
|
break;
|
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_SendPreconnectionPdu:
|
2021-10-07 10:16:20 +03:00
|
|
|
settings->SendPreconnectionPdu = cnv.c;
|
2019-03-21 15:08:59 +03:00
|
|
|
break;
|
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_ServerMode:
|
2021-10-07 10:16:20 +03:00
|
|
|
settings->ServerMode = cnv.c;
|
2019-03-21 15:08:59 +03:00
|
|
|
break;
|
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_SmartSizing:
|
2021-10-07 10:16:20 +03:00
|
|
|
settings->SmartSizing = cnv.c;
|
2019-03-21 15:08:59 +03:00
|
|
|
break;
|
|
|
|
|
2022-01-23 19:28:49 +03:00
|
|
|
case FreeRDP_SmartcardEmulation:
|
|
|
|
settings->SmartcardEmulation = cnv.c;
|
|
|
|
break;
|
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_SmartcardLogon:
|
2021-10-07 10:16:20 +03:00
|
|
|
settings->SmartcardLogon = cnv.c;
|
2019-03-21 15:08:59 +03:00
|
|
|
break;
|
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_SoftwareGdi:
|
2021-10-07 10:16:20 +03:00
|
|
|
settings->SoftwareGdi = cnv.c;
|
2019-03-21 15:08:59 +03:00
|
|
|
break;
|
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_SoundBeepsEnabled:
|
2021-10-07 10:16:20 +03:00
|
|
|
settings->SoundBeepsEnabled = cnv.c;
|
2019-03-21 15:08:59 +03:00
|
|
|
break;
|
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_SpanMonitors:
|
2021-10-07 10:16:20 +03:00
|
|
|
settings->SpanMonitors = cnv.c;
|
2019-03-21 15:08:59 +03:00
|
|
|
break;
|
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_SupportAsymetricKeys:
|
2021-10-07 10:16:20 +03:00
|
|
|
settings->SupportAsymetricKeys = cnv.c;
|
2019-03-21 15:08:59 +03:00
|
|
|
break;
|
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_SupportDisplayControl:
|
2021-10-07 10:16:20 +03:00
|
|
|
settings->SupportDisplayControl = cnv.c;
|
2019-03-21 15:08:59 +03:00
|
|
|
break;
|
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_SupportDynamicChannels:
|
2021-10-07 10:16:20 +03:00
|
|
|
settings->SupportDynamicChannels = cnv.c;
|
2019-03-21 15:08:59 +03:00
|
|
|
break;
|
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_SupportDynamicTimeZone:
|
2021-10-07 10:16:20 +03:00
|
|
|
settings->SupportDynamicTimeZone = cnv.c;
|
2019-03-21 15:08:59 +03:00
|
|
|
break;
|
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_SupportEchoChannel:
|
2021-10-07 10:16:20 +03:00
|
|
|
settings->SupportEchoChannel = cnv.c;
|
2019-03-21 15:08:59 +03:00
|
|
|
break;
|
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_SupportErrorInfoPdu:
|
2021-10-07 10:16:20 +03:00
|
|
|
settings->SupportErrorInfoPdu = cnv.c;
|
2019-03-21 15:08:59 +03:00
|
|
|
break;
|
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_SupportGeometryTracking:
|
2021-10-07 10:16:20 +03:00
|
|
|
settings->SupportGeometryTracking = cnv.c;
|
2019-03-21 15:08:59 +03:00
|
|
|
break;
|
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_SupportGraphicsPipeline:
|
2021-10-07 10:16:20 +03:00
|
|
|
settings->SupportGraphicsPipeline = cnv.c;
|
2019-03-21 15:08:59 +03:00
|
|
|
break;
|
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_SupportHeartbeatPdu:
|
2021-10-07 10:16:20 +03:00
|
|
|
settings->SupportHeartbeatPdu = cnv.c;
|
2019-03-21 15:08:59 +03:00
|
|
|
break;
|
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_SupportMonitorLayoutPdu:
|
2021-10-07 10:16:20 +03:00
|
|
|
settings->SupportMonitorLayoutPdu = cnv.c;
|
2019-03-21 15:08:59 +03:00
|
|
|
break;
|
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_SupportMultitransport:
|
2021-10-07 10:16:20 +03:00
|
|
|
settings->SupportMultitransport = cnv.c;
|
2019-03-21 15:08:59 +03:00
|
|
|
break;
|
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_SupportSSHAgentChannel:
|
2021-10-07 10:16:20 +03:00
|
|
|
settings->SupportSSHAgentChannel = cnv.c;
|
2019-03-21 15:08:59 +03:00
|
|
|
break;
|
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_SupportStatusInfoPdu:
|
2021-10-07 10:16:20 +03:00
|
|
|
settings->SupportStatusInfoPdu = cnv.c;
|
2019-03-21 15:08:59 +03:00
|
|
|
break;
|
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_SupportVideoOptimized:
|
2021-10-07 10:16:20 +03:00
|
|
|
settings->SupportVideoOptimized = cnv.c;
|
2019-03-21 15:08:59 +03:00
|
|
|
break;
|
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_SuppressOutput:
|
2021-10-07 10:16:20 +03:00
|
|
|
settings->SuppressOutput = cnv.c;
|
2019-03-21 15:08:59 +03:00
|
|
|
break;
|
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_SurfaceCommandsEnabled:
|
2021-10-07 10:16:20 +03:00
|
|
|
settings->SurfaceCommandsEnabled = cnv.c;
|
2019-03-21 15:08:59 +03:00
|
|
|
break;
|
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_SurfaceFrameMarkerEnabled:
|
2021-10-07 10:16:20 +03:00
|
|
|
settings->SurfaceFrameMarkerEnabled = cnv.c;
|
2019-03-21 15:08:59 +03:00
|
|
|
break;
|
|
|
|
|
2021-06-21 14:59:41 +03:00
|
|
|
case FreeRDP_SuspendInput:
|
2021-10-07 10:16:20 +03:00
|
|
|
settings->SuspendInput = cnv.c;
|
2021-06-21 14:59:41 +03:00
|
|
|
break;
|
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_TcpKeepAlive:
|
2021-10-07 10:16:20 +03:00
|
|
|
settings->TcpKeepAlive = cnv.c;
|
2019-03-21 15:08:59 +03:00
|
|
|
break;
|
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_TlsSecurity:
|
2021-10-07 10:16:20 +03:00
|
|
|
settings->TlsSecurity = cnv.c;
|
2019-03-21 15:08:59 +03:00
|
|
|
break;
|
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_ToggleFullscreen:
|
2021-10-07 10:16:20 +03:00
|
|
|
settings->ToggleFullscreen = cnv.c;
|
2019-03-21 15:08:59 +03:00
|
|
|
break;
|
|
|
|
|
2021-09-23 15:52:03 +03:00
|
|
|
case FreeRDP_TransportDump:
|
2021-10-07 10:16:20 +03:00
|
|
|
settings->TransportDump = cnv.c;
|
2021-09-23 15:52:03 +03:00
|
|
|
break;
|
|
|
|
|
|
|
|
case FreeRDP_TransportDumpReplay:
|
2021-10-07 10:16:20 +03:00
|
|
|
settings->TransportDumpReplay = cnv.c;
|
2021-09-23 15:52:03 +03:00
|
|
|
break;
|
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_UnicodeInput:
|
2021-10-07 10:16:20 +03:00
|
|
|
settings->UnicodeInput = cnv.c;
|
2019-03-21 15:08:59 +03:00
|
|
|
break;
|
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_UnmapButtons:
|
2021-10-07 10:16:20 +03:00
|
|
|
settings->UnmapButtons = cnv.c;
|
2019-03-21 15:08:59 +03:00
|
|
|
break;
|
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_UseMultimon:
|
2021-10-07 10:16:20 +03:00
|
|
|
settings->UseMultimon = cnv.c;
|
2019-03-21 15:08:59 +03:00
|
|
|
break;
|
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_UseRdpSecurityLayer:
|
2021-10-07 10:16:20 +03:00
|
|
|
settings->UseRdpSecurityLayer = cnv.c;
|
2019-03-21 15:08:59 +03:00
|
|
|
break;
|
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_UsingSavedCredentials:
|
2021-10-07 10:16:20 +03:00
|
|
|
settings->UsingSavedCredentials = cnv.c;
|
2019-03-21 15:08:59 +03:00
|
|
|
break;
|
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_VideoDisable:
|
2021-10-07 10:16:20 +03:00
|
|
|
settings->VideoDisable = cnv.c;
|
2019-03-21 15:08:59 +03:00
|
|
|
break;
|
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_VmConnectMode:
|
2021-10-07 10:16:20 +03:00
|
|
|
settings->VmConnectMode = cnv.c;
|
2019-03-21 15:08:59 +03:00
|
|
|
break;
|
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_WaitForOutputBufferFlush:
|
2021-10-07 10:16:20 +03:00
|
|
|
settings->WaitForOutputBufferFlush = cnv.c;
|
2020-04-11 12:55:11 +03:00
|
|
|
break;
|
|
|
|
|
|
|
|
case FreeRDP_Workarea:
|
2021-10-07 10:16:20 +03:00
|
|
|
settings->Workarea = cnv.c;
|
2019-11-07 14:39:22 +03:00
|
|
|
break;
|
|
|
|
|
2019-03-21 15:08:59 +03:00
|
|
|
default:
|
2019-11-06 17:24:51 +03:00
|
|
|
WLog_ERR(TAG, "[%s] Invalid key index %" PRIuz, __FUNCTION__, id);
|
2019-03-21 15:08:59 +03:00
|
|
|
return FALSE;
|
|
|
|
}
|
|
|
|
return TRUE;
|
|
|
|
}
|
|
|
|
|
2019-11-07 14:39:22 +03:00
|
|
|
UINT16 freerdp_settings_get_uint16(const rdpSettings* settings, size_t id)
|
2019-03-21 15:08:59 +03:00
|
|
|
{
|
2021-09-03 09:26:55 +03:00
|
|
|
WINPR_ASSERT(settings);
|
2019-03-21 15:08:59 +03:00
|
|
|
|
|
|
|
switch (id)
|
|
|
|
{
|
|
|
|
case FreeRDP_DesktopOrientation:
|
|
|
|
return settings->DesktopOrientation;
|
|
|
|
|
|
|
|
case FreeRDP_ProxyPort:
|
|
|
|
return settings->ProxyPort;
|
|
|
|
|
2022-07-05 16:57:55 +03:00
|
|
|
case FreeRDP_TLSMaxVersion:
|
|
|
|
return settings->TLSMaxVersion;
|
|
|
|
|
|
|
|
case FreeRDP_TLSMinVersion:
|
|
|
|
return settings->TLSMinVersion;
|
|
|
|
|
2019-03-21 15:08:59 +03:00
|
|
|
default:
|
2019-11-06 17:24:51 +03:00
|
|
|
WLog_ERR(TAG, "[%s] Invalid key index %" PRIuz, __FUNCTION__, id);
|
2019-03-21 15:08:59 +03:00
|
|
|
return FALSE;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-05-08 15:35:25 +03:00
|
|
|
BOOL freerdp_settings_set_uint16(rdpSettings* settings, size_t id, UINT16 val)
|
2019-03-21 15:08:59 +03:00
|
|
|
{
|
2021-10-07 10:16:20 +03:00
|
|
|
union
|
|
|
|
{
|
|
|
|
void* v;
|
|
|
|
const void* cv;
|
|
|
|
UINT16 c;
|
|
|
|
const UINT16 cc;
|
|
|
|
} cnv;
|
2021-09-03 09:26:55 +03:00
|
|
|
WINPR_ASSERT(settings);
|
2019-03-21 15:08:59 +03:00
|
|
|
|
2021-10-07 10:16:20 +03:00
|
|
|
cnv.c = val;
|
|
|
|
|
2019-03-21 15:08:59 +03:00
|
|
|
switch (id)
|
|
|
|
{
|
|
|
|
case FreeRDP_DesktopOrientation:
|
2021-10-07 10:16:20 +03:00
|
|
|
settings->DesktopOrientation = cnv.c;
|
2019-03-21 15:08:59 +03:00
|
|
|
break;
|
|
|
|
|
|
|
|
case FreeRDP_ProxyPort:
|
2021-10-07 10:16:20 +03:00
|
|
|
settings->ProxyPort = cnv.c;
|
2019-03-21 15:08:59 +03:00
|
|
|
break;
|
|
|
|
|
2022-07-05 16:57:55 +03:00
|
|
|
case FreeRDP_TLSMaxVersion:
|
|
|
|
settings->TLSMaxVersion = cnv.c;
|
|
|
|
break;
|
|
|
|
|
|
|
|
case FreeRDP_TLSMinVersion:
|
|
|
|
settings->TLSMinVersion = cnv.c;
|
|
|
|
break;
|
|
|
|
|
2019-03-21 15:08:59 +03:00
|
|
|
default:
|
2019-11-06 17:24:51 +03:00
|
|
|
WLog_ERR(TAG, "[%s] Invalid key index %" PRIuz, __FUNCTION__, id);
|
2019-03-21 15:08:59 +03:00
|
|
|
return FALSE;
|
|
|
|
}
|
|
|
|
return TRUE;
|
|
|
|
}
|
|
|
|
|
2019-11-07 14:39:22 +03:00
|
|
|
INT16 freerdp_settings_get_int16(const rdpSettings* settings, size_t id)
|
2019-03-21 15:08:59 +03:00
|
|
|
{
|
2021-09-03 09:26:55 +03:00
|
|
|
WINPR_ASSERT(settings);
|
2019-03-21 15:08:59 +03:00
|
|
|
|
|
|
|
switch (id)
|
|
|
|
{
|
|
|
|
default:
|
2019-11-06 17:24:51 +03:00
|
|
|
WLog_ERR(TAG, "[%s] Invalid key index %" PRIuz, __FUNCTION__, id);
|
2019-03-21 15:08:59 +03:00
|
|
|
return FALSE;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-05-08 15:35:25 +03:00
|
|
|
BOOL freerdp_settings_set_int16(rdpSettings* settings, size_t id, INT16 val)
|
2019-03-21 15:08:59 +03:00
|
|
|
{
|
2021-10-07 10:16:20 +03:00
|
|
|
union
|
|
|
|
{
|
|
|
|
void* v;
|
|
|
|
const void* cv;
|
|
|
|
INT16 c;
|
|
|
|
const INT16 cc;
|
|
|
|
} cnv;
|
2021-09-03 09:26:55 +03:00
|
|
|
WINPR_ASSERT(settings);
|
2019-03-21 15:08:59 +03:00
|
|
|
|
2021-10-07 10:16:20 +03:00
|
|
|
cnv.c = val;
|
|
|
|
|
2019-03-21 15:08:59 +03:00
|
|
|
switch (id)
|
|
|
|
{
|
|
|
|
default:
|
2019-11-06 17:24:51 +03:00
|
|
|
WLog_ERR(TAG, "[%s] Invalid key index %" PRIuz, __FUNCTION__, id);
|
2019-03-21 15:08:59 +03:00
|
|
|
return FALSE;
|
|
|
|
}
|
|
|
|
return TRUE;
|
|
|
|
}
|
|
|
|
|
2019-11-07 14:39:22 +03:00
|
|
|
UINT32 freerdp_settings_get_uint32(const rdpSettings* settings, size_t id)
|
2019-03-21 15:08:59 +03:00
|
|
|
{
|
2021-09-03 09:26:55 +03:00
|
|
|
WINPR_ASSERT(settings);
|
2019-03-21 15:08:59 +03:00
|
|
|
|
|
|
|
switch (id)
|
|
|
|
{
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_AcceptedCertLength:
|
|
|
|
return settings->AcceptedCertLength;
|
2019-03-21 15:08:59 +03:00
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_AuthenticationLevel:
|
|
|
|
return settings->AuthenticationLevel;
|
2019-03-21 15:08:59 +03:00
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_AutoReconnectMaxRetries:
|
|
|
|
return settings->AutoReconnectMaxRetries;
|
2019-03-21 15:08:59 +03:00
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_BitmapCacheV2NumCells:
|
|
|
|
return settings->BitmapCacheV2NumCells;
|
2019-03-21 15:08:59 +03:00
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_BitmapCacheV3CodecId:
|
|
|
|
return settings->BitmapCacheV3CodecId;
|
2019-03-21 15:08:59 +03:00
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_BitmapCacheVersion:
|
|
|
|
return settings->BitmapCacheVersion;
|
2019-03-21 15:08:59 +03:00
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_BrushSupportLevel:
|
|
|
|
return settings->BrushSupportLevel;
|
2019-03-21 15:08:59 +03:00
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_ChannelCount:
|
|
|
|
return settings->ChannelCount;
|
|
|
|
|
|
|
|
case FreeRDP_ChannelDefArraySize:
|
|
|
|
return settings->ChannelDefArraySize;
|
|
|
|
|
|
|
|
case FreeRDP_ClientBuild:
|
|
|
|
return settings->ClientBuild;
|
|
|
|
|
|
|
|
case FreeRDP_ClientRandomLength:
|
|
|
|
return settings->ClientRandomLength;
|
|
|
|
|
2022-04-19 15:29:17 +03:00
|
|
|
case FreeRDP_ClientSessionId:
|
|
|
|
return settings->ClientSessionId;
|
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_ClusterInfoFlags:
|
|
|
|
return settings->ClusterInfoFlags;
|
2019-03-21 15:08:59 +03:00
|
|
|
|
|
|
|
case FreeRDP_ColorDepth:
|
|
|
|
return settings->ColorDepth;
|
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_CompDeskSupportLevel:
|
|
|
|
return settings->CompDeskSupportLevel;
|
|
|
|
|
|
|
|
case FreeRDP_CompressionLevel:
|
|
|
|
return settings->CompressionLevel;
|
|
|
|
|
2019-03-21 15:08:59 +03:00
|
|
|
case FreeRDP_ConnectionType:
|
|
|
|
return settings->ConnectionType;
|
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_CookieMaxLength:
|
|
|
|
return settings->CookieMaxLength;
|
2019-03-21 15:08:59 +03:00
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_DesktopHeight:
|
|
|
|
return settings->DesktopHeight;
|
|
|
|
|
|
|
|
case FreeRDP_DesktopPhysicalHeight:
|
|
|
|
return settings->DesktopPhysicalHeight;
|
2019-03-21 15:08:59 +03:00
|
|
|
|
|
|
|
case FreeRDP_DesktopPhysicalWidth:
|
|
|
|
return settings->DesktopPhysicalWidth;
|
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_DesktopPosX:
|
|
|
|
return settings->DesktopPosX;
|
|
|
|
|
|
|
|
case FreeRDP_DesktopPosY:
|
|
|
|
return settings->DesktopPosY;
|
2019-03-21 15:08:59 +03:00
|
|
|
|
|
|
|
case FreeRDP_DesktopScaleFactor:
|
|
|
|
return settings->DesktopScaleFactor;
|
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_DesktopWidth:
|
|
|
|
return settings->DesktopWidth;
|
|
|
|
|
|
|
|
case FreeRDP_DeviceArraySize:
|
|
|
|
return settings->DeviceArraySize;
|
|
|
|
|
|
|
|
case FreeRDP_DeviceCount:
|
|
|
|
return settings->DeviceCount;
|
|
|
|
|
2019-03-21 15:08:59 +03:00
|
|
|
case FreeRDP_DeviceScaleFactor:
|
|
|
|
return settings->DeviceScaleFactor;
|
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_DrawNineGridCacheEntries:
|
|
|
|
return settings->DrawNineGridCacheEntries;
|
|
|
|
|
|
|
|
case FreeRDP_DrawNineGridCacheSize:
|
|
|
|
return settings->DrawNineGridCacheSize;
|
|
|
|
|
|
|
|
case FreeRDP_DynamicChannelArraySize:
|
|
|
|
return settings->DynamicChannelArraySize;
|
|
|
|
|
|
|
|
case FreeRDP_DynamicChannelCount:
|
|
|
|
return settings->DynamicChannelCount;
|
|
|
|
|
|
|
|
case FreeRDP_EarlyCapabilityFlags:
|
|
|
|
return settings->EarlyCapabilityFlags;
|
|
|
|
|
|
|
|
case FreeRDP_EncryptionLevel:
|
|
|
|
return settings->EncryptionLevel;
|
|
|
|
|
2019-03-21 15:08:59 +03:00
|
|
|
case FreeRDP_EncryptionMethods:
|
|
|
|
return settings->EncryptionMethods;
|
|
|
|
|
|
|
|
case FreeRDP_ExtEncryptionMethods:
|
|
|
|
return settings->ExtEncryptionMethods;
|
|
|
|
|
2020-11-19 12:09:34 +03:00
|
|
|
case FreeRDP_Floatbar:
|
|
|
|
return settings->Floatbar;
|
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_FrameAcknowledge:
|
|
|
|
return settings->FrameAcknowledge;
|
2019-03-21 15:08:59 +03:00
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_GatewayAcceptedCertLength:
|
|
|
|
return settings->GatewayAcceptedCertLength;
|
2019-03-21 15:08:59 +03:00
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_GatewayCredentialsSource:
|
|
|
|
return settings->GatewayCredentialsSource;
|
2019-03-21 15:08:59 +03:00
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_GatewayPort:
|
|
|
|
return settings->GatewayPort;
|
2019-03-21 15:08:59 +03:00
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_GatewayUsageMethod:
|
|
|
|
return settings->GatewayUsageMethod;
|
2019-03-21 15:08:59 +03:00
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_GfxCapsFilter:
|
|
|
|
return settings->GfxCapsFilter;
|
2019-03-21 15:08:59 +03:00
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_GlyphSupportLevel:
|
|
|
|
return settings->GlyphSupportLevel;
|
2019-03-21 15:08:59 +03:00
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_JpegCodecId:
|
|
|
|
return settings->JpegCodecId;
|
|
|
|
|
|
|
|
case FreeRDP_JpegQuality:
|
|
|
|
return settings->JpegQuality;
|
|
|
|
|
2022-02-02 01:23:34 +03:00
|
|
|
case FreeRDP_KeySpec:
|
|
|
|
return settings->KeySpec;
|
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_KeyboardCodePage:
|
|
|
|
return settings->KeyboardCodePage;
|
|
|
|
|
|
|
|
case FreeRDP_KeyboardFunctionKey:
|
|
|
|
return settings->KeyboardFunctionKey;
|
|
|
|
|
|
|
|
case FreeRDP_KeyboardHook:
|
|
|
|
return settings->KeyboardHook;
|
|
|
|
|
|
|
|
case FreeRDP_KeyboardLayout:
|
|
|
|
return settings->KeyboardLayout;
|
|
|
|
|
|
|
|
case FreeRDP_KeyboardSubType:
|
|
|
|
return settings->KeyboardSubType;
|
|
|
|
|
|
|
|
case FreeRDP_KeyboardType:
|
|
|
|
return settings->KeyboardType;
|
|
|
|
|
|
|
|
case FreeRDP_LargePointerFlag:
|
|
|
|
return settings->LargePointerFlag;
|
|
|
|
|
|
|
|
case FreeRDP_LoadBalanceInfoLength:
|
|
|
|
return settings->LoadBalanceInfoLength;
|
|
|
|
|
|
|
|
case FreeRDP_MaxTimeInCheckLoop:
|
|
|
|
return settings->MaxTimeInCheckLoop;
|
2019-03-21 15:08:59 +03:00
|
|
|
|
2022-04-19 15:29:17 +03:00
|
|
|
case FreeRDP_MonitorAttributeFlags:
|
|
|
|
return settings->MonitorAttributeFlags;
|
|
|
|
|
2019-03-21 15:08:59 +03:00
|
|
|
case FreeRDP_MonitorCount:
|
|
|
|
return settings->MonitorCount;
|
|
|
|
|
|
|
|
case FreeRDP_MonitorDefArraySize:
|
|
|
|
return settings->MonitorDefArraySize;
|
|
|
|
|
2022-04-19 15:29:17 +03:00
|
|
|
case FreeRDP_MonitorFlags:
|
|
|
|
return settings->MonitorFlags;
|
|
|
|
|
2019-03-21 15:08:59 +03:00
|
|
|
case FreeRDP_MonitorLocalShiftX:
|
|
|
|
return settings->MonitorLocalShiftX;
|
|
|
|
|
|
|
|
case FreeRDP_MonitorLocalShiftY:
|
|
|
|
return settings->MonitorLocalShiftY;
|
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_MultifragMaxRequestSize:
|
|
|
|
return settings->MultifragMaxRequestSize;
|
|
|
|
|
2019-03-21 15:08:59 +03:00
|
|
|
case FreeRDP_MultitransportFlags:
|
|
|
|
return settings->MultitransportFlags;
|
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_NSCodecColorLossLevel:
|
|
|
|
return settings->NSCodecColorLossLevel;
|
2019-03-21 15:08:59 +03:00
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_NSCodecId:
|
|
|
|
return settings->NSCodecId;
|
2019-03-21 15:08:59 +03:00
|
|
|
|
|
|
|
case FreeRDP_NegotiationFlags:
|
|
|
|
return settings->NegotiationFlags;
|
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_NumMonitorIds:
|
|
|
|
return settings->NumMonitorIds;
|
2019-03-21 15:08:59 +03:00
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_OffscreenCacheEntries:
|
|
|
|
return settings->OffscreenCacheEntries;
|
2019-03-21 15:08:59 +03:00
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_OffscreenCacheSize:
|
|
|
|
return settings->OffscreenCacheSize;
|
2019-03-21 15:08:59 +03:00
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_OffscreenSupportLevel:
|
|
|
|
return settings->OffscreenSupportLevel;
|
2019-03-21 15:08:59 +03:00
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_OsMajorType:
|
|
|
|
return settings->OsMajorType;
|
2019-03-21 15:08:59 +03:00
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_OsMinorType:
|
|
|
|
return settings->OsMinorType;
|
2019-03-21 15:08:59 +03:00
|
|
|
|
|
|
|
case FreeRDP_Password51Length:
|
|
|
|
return settings->Password51Length;
|
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_PduSource:
|
|
|
|
return settings->PduSource;
|
|
|
|
|
2019-03-21 15:08:59 +03:00
|
|
|
case FreeRDP_PercentScreen:
|
|
|
|
return settings->PercentScreen;
|
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_PerformanceFlags:
|
|
|
|
return settings->PerformanceFlags;
|
2019-03-21 15:08:59 +03:00
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_PointerCacheSize:
|
|
|
|
return settings->PointerCacheSize;
|
2019-03-21 15:08:59 +03:00
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_PreconnectionId:
|
|
|
|
return settings->PreconnectionId;
|
2019-03-21 15:08:59 +03:00
|
|
|
|
|
|
|
case FreeRDP_ProxyType:
|
|
|
|
return settings->ProxyType;
|
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_RdpVersion:
|
|
|
|
return settings->RdpVersion;
|
2019-05-09 15:24:58 +03:00
|
|
|
|
2019-03-21 15:08:59 +03:00
|
|
|
case FreeRDP_ReceivedCapabilitiesSize:
|
|
|
|
return settings->ReceivedCapabilitiesSize;
|
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_RedirectedSessionId:
|
|
|
|
return settings->RedirectedSessionId;
|
2019-03-21 15:08:59 +03:00
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_RedirectionAcceptedCertLength:
|
|
|
|
return settings->RedirectionAcceptedCertLength;
|
2019-03-21 15:08:59 +03:00
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_RedirectionFlags:
|
|
|
|
return settings->RedirectionFlags;
|
2019-03-21 15:08:59 +03:00
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_RedirectionPasswordLength:
|
|
|
|
return settings->RedirectionPasswordLength;
|
2019-03-21 15:08:59 +03:00
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_RedirectionPreferType:
|
|
|
|
return settings->RedirectionPreferType;
|
2019-03-21 15:08:59 +03:00
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_RedirectionTsvUrlLength:
|
|
|
|
return settings->RedirectionTsvUrlLength;
|
2019-03-21 15:08:59 +03:00
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_RemoteAppNumIconCacheEntries:
|
|
|
|
return settings->RemoteAppNumIconCacheEntries;
|
2019-03-21 15:08:59 +03:00
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_RemoteAppNumIconCaches:
|
|
|
|
return settings->RemoteAppNumIconCaches;
|
2019-03-21 15:08:59 +03:00
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_RemoteApplicationExpandCmdLine:
|
|
|
|
return settings->RemoteApplicationExpandCmdLine;
|
2019-03-21 15:08:59 +03:00
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_RemoteApplicationExpandWorkingDir:
|
|
|
|
return settings->RemoteApplicationExpandWorkingDir;
|
2019-03-21 15:08:59 +03:00
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_RemoteApplicationSupportLevel:
|
|
|
|
return settings->RemoteApplicationSupportLevel;
|
2019-03-21 15:08:59 +03:00
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_RemoteApplicationSupportMask:
|
|
|
|
return settings->RemoteApplicationSupportMask;
|
2019-03-21 15:08:59 +03:00
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_RemoteFxCaptureFlags:
|
|
|
|
return settings->RemoteFxCaptureFlags;
|
2019-03-21 15:08:59 +03:00
|
|
|
|
|
|
|
case FreeRDP_RemoteFxCodecId:
|
|
|
|
return settings->RemoteFxCodecId;
|
|
|
|
|
|
|
|
case FreeRDP_RemoteFxCodecMode:
|
|
|
|
return settings->RemoteFxCodecMode;
|
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_RemoteWndSupportLevel:
|
|
|
|
return settings->RemoteWndSupportLevel;
|
2019-03-21 15:08:59 +03:00
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_RequestedProtocols:
|
|
|
|
return settings->RequestedProtocols;
|
2019-03-21 15:08:59 +03:00
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_SelectedProtocol:
|
|
|
|
return settings->SelectedProtocol;
|
2019-05-08 15:35:25 +03:00
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_ServerCertificateLength:
|
|
|
|
return settings->ServerCertificateLength;
|
2019-03-21 15:08:59 +03:00
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_ServerPort:
|
|
|
|
return settings->ServerPort;
|
2019-03-21 15:08:59 +03:00
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_ServerRandomLength:
|
|
|
|
return settings->ServerRandomLength;
|
2019-03-21 15:08:59 +03:00
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_ShareId:
|
|
|
|
return settings->ShareId;
|
2019-03-21 15:08:59 +03:00
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_SmartSizingHeight:
|
|
|
|
return settings->SmartSizingHeight;
|
2019-03-21 15:08:59 +03:00
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_SmartSizingWidth:
|
|
|
|
return settings->SmartSizingWidth;
|
2019-03-21 15:08:59 +03:00
|
|
|
|
|
|
|
case FreeRDP_StaticChannelArraySize:
|
|
|
|
return settings->StaticChannelArraySize;
|
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_StaticChannelCount:
|
|
|
|
return settings->StaticChannelCount;
|
2019-03-21 15:08:59 +03:00
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_TargetNetAddressCount:
|
|
|
|
return settings->TargetNetAddressCount;
|
2019-03-21 15:08:59 +03:00
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_TcpAckTimeout:
|
|
|
|
return settings->TcpAckTimeout;
|
2019-11-07 14:45:05 +03:00
|
|
|
|
2021-06-02 17:51:49 +03:00
|
|
|
case FreeRDP_TcpConnectTimeout:
|
|
|
|
return settings->TcpConnectTimeout;
|
|
|
|
|
2019-11-07 15:15:44 +03:00
|
|
|
case FreeRDP_TcpKeepAliveDelay:
|
|
|
|
return settings->TcpKeepAliveDelay;
|
|
|
|
|
2019-11-07 14:45:05 +03:00
|
|
|
case FreeRDP_TcpKeepAliveInterval:
|
|
|
|
return settings->TcpKeepAliveInterval;
|
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_TcpKeepAliveRetries:
|
|
|
|
return settings->TcpKeepAliveRetries;
|
|
|
|
|
2021-03-12 18:54:45 +03:00
|
|
|
case FreeRDP_ThreadingFlags:
|
|
|
|
return settings->ThreadingFlags;
|
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_TlsSecLevel:
|
|
|
|
return settings->TlsSecLevel;
|
|
|
|
|
|
|
|
case FreeRDP_VirtualChannelChunkSize:
|
|
|
|
return settings->VirtualChannelChunkSize;
|
|
|
|
|
|
|
|
case FreeRDP_VirtualChannelCompressionFlags:
|
|
|
|
return settings->VirtualChannelCompressionFlags;
|
2019-11-07 14:45:05 +03:00
|
|
|
|
2019-03-21 15:08:59 +03:00
|
|
|
default:
|
2019-11-06 17:24:51 +03:00
|
|
|
WLog_ERR(TAG, "[%s] Invalid key index %" PRIuz, __FUNCTION__, id);
|
2019-03-21 15:08:59 +03:00
|
|
|
return FALSE;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-05-08 15:35:25 +03:00
|
|
|
BOOL freerdp_settings_set_uint32(rdpSettings* settings, size_t id, UINT32 val)
|
2019-03-21 15:08:59 +03:00
|
|
|
{
|
2021-10-07 10:16:20 +03:00
|
|
|
union
|
|
|
|
{
|
|
|
|
void* v;
|
|
|
|
const void* cv;
|
|
|
|
UINT32 c;
|
|
|
|
const UINT32 cc;
|
|
|
|
} cnv;
|
2021-09-03 09:26:55 +03:00
|
|
|
WINPR_ASSERT(settings);
|
2019-03-21 15:08:59 +03:00
|
|
|
|
2021-10-07 10:16:20 +03:00
|
|
|
cnv.c = val;
|
|
|
|
|
2019-03-21 15:08:59 +03:00
|
|
|
switch (id)
|
|
|
|
{
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_AcceptedCertLength:
|
2021-10-07 10:16:20 +03:00
|
|
|
settings->AcceptedCertLength = cnv.c;
|
2019-03-21 15:08:59 +03:00
|
|
|
break;
|
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_AuthenticationLevel:
|
2021-10-07 10:16:20 +03:00
|
|
|
settings->AuthenticationLevel = cnv.c;
|
2019-03-21 15:08:59 +03:00
|
|
|
break;
|
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_AutoReconnectMaxRetries:
|
2021-10-07 10:16:20 +03:00
|
|
|
settings->AutoReconnectMaxRetries = cnv.c;
|
2019-03-21 15:08:59 +03:00
|
|
|
break;
|
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_BitmapCacheV2NumCells:
|
2021-10-07 10:16:20 +03:00
|
|
|
settings->BitmapCacheV2NumCells = cnv.c;
|
2019-03-21 15:08:59 +03:00
|
|
|
break;
|
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_BitmapCacheV3CodecId:
|
2021-10-07 10:16:20 +03:00
|
|
|
settings->BitmapCacheV3CodecId = cnv.c;
|
2019-03-21 15:08:59 +03:00
|
|
|
break;
|
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_BitmapCacheVersion:
|
2021-10-07 10:16:20 +03:00
|
|
|
settings->BitmapCacheVersion = cnv.c;
|
2019-03-21 15:08:59 +03:00
|
|
|
break;
|
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_BrushSupportLevel:
|
2021-10-07 10:16:20 +03:00
|
|
|
settings->BrushSupportLevel = cnv.c;
|
2019-03-21 15:08:59 +03:00
|
|
|
break;
|
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_ChannelCount:
|
2021-10-07 10:16:20 +03:00
|
|
|
settings->ChannelCount = cnv.c;
|
2019-03-21 15:08:59 +03:00
|
|
|
break;
|
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_ChannelDefArraySize:
|
2021-10-07 10:16:20 +03:00
|
|
|
settings->ChannelDefArraySize = cnv.c;
|
2019-03-21 15:08:59 +03:00
|
|
|
break;
|
|
|
|
|
|
|
|
case FreeRDP_ClientBuild:
|
2021-10-07 10:16:20 +03:00
|
|
|
settings->ClientBuild = cnv.c;
|
2019-03-21 15:08:59 +03:00
|
|
|
break;
|
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_ClientRandomLength:
|
2021-10-07 10:16:20 +03:00
|
|
|
settings->ClientRandomLength = cnv.c;
|
2019-03-21 15:08:59 +03:00
|
|
|
break;
|
|
|
|
|
2022-04-19 15:29:17 +03:00
|
|
|
case FreeRDP_ClientSessionId:
|
|
|
|
settings->ClientSessionId = cnv.c;
|
|
|
|
break;
|
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_ClusterInfoFlags:
|
2021-10-07 10:16:20 +03:00
|
|
|
settings->ClusterInfoFlags = cnv.c;
|
2019-03-21 15:08:59 +03:00
|
|
|
break;
|
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_ColorDepth:
|
2021-10-07 10:16:20 +03:00
|
|
|
settings->ColorDepth = cnv.c;
|
2019-03-21 15:08:59 +03:00
|
|
|
break;
|
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_CompDeskSupportLevel:
|
2021-10-07 10:16:20 +03:00
|
|
|
settings->CompDeskSupportLevel = cnv.c;
|
2019-03-21 15:08:59 +03:00
|
|
|
break;
|
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_CompressionLevel:
|
2021-10-07 10:16:20 +03:00
|
|
|
settings->CompressionLevel = cnv.c;
|
2019-03-21 15:08:59 +03:00
|
|
|
break;
|
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_ConnectionType:
|
2021-10-07 10:16:20 +03:00
|
|
|
settings->ConnectionType = cnv.c;
|
2019-03-21 15:08:59 +03:00
|
|
|
break;
|
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_CookieMaxLength:
|
2021-10-07 10:16:20 +03:00
|
|
|
settings->CookieMaxLength = cnv.c;
|
2019-03-21 15:08:59 +03:00
|
|
|
break;
|
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_DesktopHeight:
|
2021-10-07 10:16:20 +03:00
|
|
|
settings->DesktopHeight = cnv.c;
|
2019-03-21 15:08:59 +03:00
|
|
|
break;
|
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_DesktopPhysicalHeight:
|
2021-10-07 10:16:20 +03:00
|
|
|
settings->DesktopPhysicalHeight = cnv.c;
|
2019-03-21 15:08:59 +03:00
|
|
|
break;
|
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_DesktopPhysicalWidth:
|
2021-10-07 10:16:20 +03:00
|
|
|
settings->DesktopPhysicalWidth = cnv.c;
|
2019-03-21 15:08:59 +03:00
|
|
|
break;
|
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_DesktopPosX:
|
2021-10-07 10:16:20 +03:00
|
|
|
settings->DesktopPosX = cnv.c;
|
2019-03-21 15:08:59 +03:00
|
|
|
break;
|
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_DesktopPosY:
|
2021-10-07 10:16:20 +03:00
|
|
|
settings->DesktopPosY = cnv.c;
|
2019-03-21 15:08:59 +03:00
|
|
|
break;
|
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_DesktopScaleFactor:
|
2021-10-07 10:16:20 +03:00
|
|
|
settings->DesktopScaleFactor = cnv.c;
|
2019-03-21 15:08:59 +03:00
|
|
|
break;
|
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_DesktopWidth:
|
2021-10-07 10:16:20 +03:00
|
|
|
settings->DesktopWidth = cnv.c;
|
2019-03-21 15:08:59 +03:00
|
|
|
break;
|
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_DeviceArraySize:
|
2021-10-07 10:16:20 +03:00
|
|
|
settings->DeviceArraySize = cnv.c;
|
2019-03-21 15:08:59 +03:00
|
|
|
break;
|
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_DeviceCount:
|
2021-10-07 10:16:20 +03:00
|
|
|
settings->DeviceCount = cnv.c;
|
2019-03-21 15:08:59 +03:00
|
|
|
break;
|
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_DeviceScaleFactor:
|
2021-10-07 10:16:20 +03:00
|
|
|
settings->DeviceScaleFactor = cnv.c;
|
2019-03-21 15:08:59 +03:00
|
|
|
break;
|
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_DrawNineGridCacheEntries:
|
2021-10-07 10:16:20 +03:00
|
|
|
settings->DrawNineGridCacheEntries = cnv.c;
|
2019-03-21 15:08:59 +03:00
|
|
|
break;
|
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_DrawNineGridCacheSize:
|
2021-10-07 10:16:20 +03:00
|
|
|
settings->DrawNineGridCacheSize = cnv.c;
|
2019-03-21 15:08:59 +03:00
|
|
|
break;
|
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_DynamicChannelArraySize:
|
2021-10-07 10:16:20 +03:00
|
|
|
settings->DynamicChannelArraySize = cnv.c;
|
2019-03-21 15:08:59 +03:00
|
|
|
break;
|
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_DynamicChannelCount:
|
2021-10-07 10:16:20 +03:00
|
|
|
settings->DynamicChannelCount = cnv.c;
|
2019-03-21 15:08:59 +03:00
|
|
|
break;
|
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_EarlyCapabilityFlags:
|
2021-10-07 10:16:20 +03:00
|
|
|
settings->EarlyCapabilityFlags = cnv.c;
|
2019-03-21 15:08:59 +03:00
|
|
|
break;
|
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_EncryptionLevel:
|
2021-10-07 10:16:20 +03:00
|
|
|
settings->EncryptionLevel = cnv.c;
|
2019-03-21 15:08:59 +03:00
|
|
|
break;
|
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_EncryptionMethods:
|
2021-10-07 10:16:20 +03:00
|
|
|
settings->EncryptionMethods = cnv.c;
|
2019-03-21 15:08:59 +03:00
|
|
|
break;
|
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_ExtEncryptionMethods:
|
2021-10-07 10:16:20 +03:00
|
|
|
settings->ExtEncryptionMethods = cnv.c;
|
2019-03-21 15:08:59 +03:00
|
|
|
break;
|
|
|
|
|
2020-11-19 12:09:34 +03:00
|
|
|
case FreeRDP_Floatbar:
|
2021-10-07 10:16:20 +03:00
|
|
|
settings->Floatbar = cnv.c;
|
2020-11-19 12:09:34 +03:00
|
|
|
break;
|
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_FrameAcknowledge:
|
2021-10-07 10:16:20 +03:00
|
|
|
settings->FrameAcknowledge = cnv.c;
|
2019-03-21 15:08:59 +03:00
|
|
|
break;
|
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_GatewayAcceptedCertLength:
|
2021-10-07 10:16:20 +03:00
|
|
|
settings->GatewayAcceptedCertLength = cnv.c;
|
2019-03-21 15:08:59 +03:00
|
|
|
break;
|
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_GatewayCredentialsSource:
|
2021-10-07 10:16:20 +03:00
|
|
|
settings->GatewayCredentialsSource = cnv.c;
|
2019-03-21 15:08:59 +03:00
|
|
|
break;
|
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_GatewayPort:
|
2021-10-07 10:16:20 +03:00
|
|
|
settings->GatewayPort = cnv.c;
|
2019-03-21 15:08:59 +03:00
|
|
|
break;
|
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_GatewayUsageMethod:
|
2021-10-07 10:16:20 +03:00
|
|
|
settings->GatewayUsageMethod = cnv.c;
|
2019-03-21 15:08:59 +03:00
|
|
|
break;
|
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_GfxCapsFilter:
|
2021-10-07 10:16:20 +03:00
|
|
|
settings->GfxCapsFilter = cnv.c;
|
2019-03-21 15:08:59 +03:00
|
|
|
break;
|
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_GlyphSupportLevel:
|
2021-10-07 10:16:20 +03:00
|
|
|
settings->GlyphSupportLevel = cnv.c;
|
2019-03-21 15:08:59 +03:00
|
|
|
break;
|
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_JpegCodecId:
|
2021-10-07 10:16:20 +03:00
|
|
|
settings->JpegCodecId = cnv.c;
|
2019-03-21 15:08:59 +03:00
|
|
|
break;
|
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_JpegQuality:
|
2021-10-07 10:16:20 +03:00
|
|
|
settings->JpegQuality = cnv.c;
|
2019-03-21 15:08:59 +03:00
|
|
|
break;
|
|
|
|
|
2022-02-02 01:23:34 +03:00
|
|
|
case FreeRDP_KeySpec:
|
|
|
|
settings->KeySpec = cnv.c;
|
|
|
|
break;
|
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_KeyboardCodePage:
|
2021-10-07 10:16:20 +03:00
|
|
|
settings->KeyboardCodePage = cnv.c;
|
2019-03-21 15:08:59 +03:00
|
|
|
break;
|
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_KeyboardFunctionKey:
|
2021-10-07 10:16:20 +03:00
|
|
|
settings->KeyboardFunctionKey = cnv.c;
|
2019-03-21 15:08:59 +03:00
|
|
|
break;
|
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_KeyboardHook:
|
2021-10-07 10:16:20 +03:00
|
|
|
settings->KeyboardHook = cnv.c;
|
2019-03-21 15:08:59 +03:00
|
|
|
break;
|
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_KeyboardLayout:
|
2021-10-07 10:16:20 +03:00
|
|
|
settings->KeyboardLayout = cnv.c;
|
2019-03-21 15:08:59 +03:00
|
|
|
break;
|
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_KeyboardSubType:
|
2021-10-07 10:16:20 +03:00
|
|
|
settings->KeyboardSubType = cnv.c;
|
2019-03-21 15:08:59 +03:00
|
|
|
break;
|
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_KeyboardType:
|
2021-10-07 10:16:20 +03:00
|
|
|
settings->KeyboardType = cnv.c;
|
2019-03-21 15:08:59 +03:00
|
|
|
break;
|
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_LargePointerFlag:
|
2021-10-07 10:16:20 +03:00
|
|
|
settings->LargePointerFlag = cnv.c;
|
2019-03-21 15:08:59 +03:00
|
|
|
break;
|
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_LoadBalanceInfoLength:
|
2021-10-07 10:16:20 +03:00
|
|
|
settings->LoadBalanceInfoLength = cnv.c;
|
2019-03-21 15:08:59 +03:00
|
|
|
break;
|
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_MaxTimeInCheckLoop:
|
2021-10-07 10:16:20 +03:00
|
|
|
settings->MaxTimeInCheckLoop = cnv.c;
|
2019-03-21 15:08:59 +03:00
|
|
|
break;
|
|
|
|
|
2022-04-19 15:29:17 +03:00
|
|
|
case FreeRDP_MonitorAttributeFlags:
|
|
|
|
settings->MonitorAttributeFlags = cnv.c;
|
|
|
|
break;
|
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_MonitorCount:
|
2021-10-07 10:16:20 +03:00
|
|
|
settings->MonitorCount = cnv.c;
|
2019-03-21 15:08:59 +03:00
|
|
|
break;
|
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_MonitorDefArraySize:
|
2021-10-07 10:16:20 +03:00
|
|
|
settings->MonitorDefArraySize = cnv.c;
|
2019-03-21 15:08:59 +03:00
|
|
|
break;
|
|
|
|
|
2022-04-19 15:29:17 +03:00
|
|
|
case FreeRDP_MonitorFlags:
|
|
|
|
settings->MonitorFlags = cnv.c;
|
|
|
|
break;
|
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_MonitorLocalShiftX:
|
2021-10-07 10:16:20 +03:00
|
|
|
settings->MonitorLocalShiftX = cnv.c;
|
2019-03-21 15:08:59 +03:00
|
|
|
break;
|
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_MonitorLocalShiftY:
|
2021-10-07 10:16:20 +03:00
|
|
|
settings->MonitorLocalShiftY = cnv.c;
|
2019-03-21 15:08:59 +03:00
|
|
|
break;
|
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_MultifragMaxRequestSize:
|
2021-10-07 10:16:20 +03:00
|
|
|
settings->MultifragMaxRequestSize = cnv.c;
|
2019-03-21 15:08:59 +03:00
|
|
|
break;
|
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_MultitransportFlags:
|
2021-10-07 10:16:20 +03:00
|
|
|
settings->MultitransportFlags = cnv.c;
|
2019-03-21 15:08:59 +03:00
|
|
|
break;
|
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_NSCodecColorLossLevel:
|
2021-10-07 10:16:20 +03:00
|
|
|
settings->NSCodecColorLossLevel = cnv.c;
|
2019-03-21 15:08:59 +03:00
|
|
|
break;
|
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_NSCodecId:
|
2021-10-07 10:16:20 +03:00
|
|
|
settings->NSCodecId = cnv.c;
|
2019-03-21 15:08:59 +03:00
|
|
|
break;
|
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_NegotiationFlags:
|
2021-10-07 10:16:20 +03:00
|
|
|
settings->NegotiationFlags = cnv.c;
|
2019-03-21 15:08:59 +03:00
|
|
|
break;
|
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_NumMonitorIds:
|
2021-10-07 10:16:20 +03:00
|
|
|
settings->NumMonitorIds = cnv.c;
|
2019-03-21 15:08:59 +03:00
|
|
|
break;
|
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_OffscreenCacheEntries:
|
2021-10-07 10:16:20 +03:00
|
|
|
settings->OffscreenCacheEntries = cnv.c;
|
2019-05-08 15:35:25 +03:00
|
|
|
break;
|
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_OffscreenCacheSize:
|
2021-10-07 10:16:20 +03:00
|
|
|
settings->OffscreenCacheSize = cnv.c;
|
2019-05-09 15:24:58 +03:00
|
|
|
break;
|
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_OffscreenSupportLevel:
|
2021-10-07 10:16:20 +03:00
|
|
|
settings->OffscreenSupportLevel = cnv.c;
|
2019-03-21 15:08:59 +03:00
|
|
|
break;
|
|
|
|
|
|
|
|
case FreeRDP_OsMajorType:
|
2021-10-07 10:16:20 +03:00
|
|
|
settings->OsMajorType = cnv.c;
|
2019-03-21 15:08:59 +03:00
|
|
|
break;
|
|
|
|
|
|
|
|
case FreeRDP_OsMinorType:
|
2021-10-07 10:16:20 +03:00
|
|
|
settings->OsMinorType = cnv.c;
|
2019-03-21 15:08:59 +03:00
|
|
|
break;
|
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_Password51Length:
|
2021-10-07 10:16:20 +03:00
|
|
|
settings->Password51Length = cnv.c;
|
2019-03-21 15:08:59 +03:00
|
|
|
break;
|
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_PduSource:
|
2021-10-07 10:16:20 +03:00
|
|
|
settings->PduSource = cnv.c;
|
2019-03-21 15:08:59 +03:00
|
|
|
break;
|
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_PercentScreen:
|
2021-10-07 10:16:20 +03:00
|
|
|
settings->PercentScreen = cnv.c;
|
2019-03-21 15:08:59 +03:00
|
|
|
break;
|
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_PerformanceFlags:
|
2021-10-07 10:16:20 +03:00
|
|
|
settings->PerformanceFlags = cnv.c;
|
2019-11-07 21:31:26 +03:00
|
|
|
break;
|
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_PointerCacheSize:
|
2021-10-07 10:16:20 +03:00
|
|
|
settings->PointerCacheSize = cnv.c;
|
2019-03-21 15:08:59 +03:00
|
|
|
break;
|
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_PreconnectionId:
|
2021-10-07 10:16:20 +03:00
|
|
|
settings->PreconnectionId = cnv.c;
|
2019-03-21 15:08:59 +03:00
|
|
|
break;
|
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_ProxyType:
|
2021-10-07 10:16:20 +03:00
|
|
|
settings->ProxyType = cnv.c;
|
2019-03-21 15:08:59 +03:00
|
|
|
break;
|
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_RdpVersion:
|
2021-10-07 10:16:20 +03:00
|
|
|
settings->RdpVersion = cnv.c;
|
2019-03-21 15:08:59 +03:00
|
|
|
break;
|
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_ReceivedCapabilitiesSize:
|
2021-10-07 10:16:20 +03:00
|
|
|
settings->ReceivedCapabilitiesSize = cnv.c;
|
2019-03-21 15:08:59 +03:00
|
|
|
break;
|
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_RedirectedSessionId:
|
2021-10-07 10:16:20 +03:00
|
|
|
settings->RedirectedSessionId = cnv.c;
|
2019-03-21 15:08:59 +03:00
|
|
|
break;
|
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_RedirectionAcceptedCertLength:
|
2021-10-07 10:16:20 +03:00
|
|
|
settings->RedirectionAcceptedCertLength = cnv.c;
|
2019-03-21 15:08:59 +03:00
|
|
|
break;
|
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_RedirectionFlags:
|
2021-10-07 10:16:20 +03:00
|
|
|
settings->RedirectionFlags = cnv.c;
|
2019-03-21 15:08:59 +03:00
|
|
|
break;
|
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_RedirectionPasswordLength:
|
2021-10-07 10:16:20 +03:00
|
|
|
settings->RedirectionPasswordLength = cnv.c;
|
2019-03-21 15:08:59 +03:00
|
|
|
break;
|
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_RedirectionPreferType:
|
2021-10-07 10:16:20 +03:00
|
|
|
settings->RedirectionPreferType = cnv.c;
|
2019-03-21 15:08:59 +03:00
|
|
|
break;
|
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_RedirectionTsvUrlLength:
|
2021-10-07 10:16:20 +03:00
|
|
|
settings->RedirectionTsvUrlLength = cnv.c;
|
2019-03-21 15:08:59 +03:00
|
|
|
break;
|
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_RemoteAppNumIconCacheEntries:
|
2021-10-07 10:16:20 +03:00
|
|
|
settings->RemoteAppNumIconCacheEntries = cnv.c;
|
2019-03-21 15:08:59 +03:00
|
|
|
break;
|
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_RemoteAppNumIconCaches:
|
2021-10-07 10:16:20 +03:00
|
|
|
settings->RemoteAppNumIconCaches = cnv.c;
|
2019-03-21 15:08:59 +03:00
|
|
|
break;
|
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_RemoteApplicationExpandCmdLine:
|
2021-10-07 10:16:20 +03:00
|
|
|
settings->RemoteApplicationExpandCmdLine = cnv.c;
|
2019-03-21 15:08:59 +03:00
|
|
|
break;
|
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_RemoteApplicationExpandWorkingDir:
|
2021-10-07 10:16:20 +03:00
|
|
|
settings->RemoteApplicationExpandWorkingDir = cnv.c;
|
2019-03-21 15:08:59 +03:00
|
|
|
break;
|
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_RemoteApplicationSupportLevel:
|
2021-10-07 10:16:20 +03:00
|
|
|
settings->RemoteApplicationSupportLevel = cnv.c;
|
2019-03-21 15:08:59 +03:00
|
|
|
break;
|
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_RemoteApplicationSupportMask:
|
2021-10-07 10:16:20 +03:00
|
|
|
settings->RemoteApplicationSupportMask = cnv.c;
|
2019-03-21 15:08:59 +03:00
|
|
|
break;
|
|
|
|
|
|
|
|
case FreeRDP_RemoteFxCaptureFlags:
|
2021-10-07 10:16:20 +03:00
|
|
|
settings->RemoteFxCaptureFlags = cnv.c;
|
2019-03-21 15:08:59 +03:00
|
|
|
break;
|
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_RemoteFxCodecId:
|
2021-10-07 10:16:20 +03:00
|
|
|
settings->RemoteFxCodecId = cnv.c;
|
2019-03-21 15:08:59 +03:00
|
|
|
break;
|
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_RemoteFxCodecMode:
|
2021-10-07 10:16:20 +03:00
|
|
|
settings->RemoteFxCodecMode = cnv.c;
|
2019-03-21 15:08:59 +03:00
|
|
|
break;
|
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_RemoteWndSupportLevel:
|
2021-10-07 10:16:20 +03:00
|
|
|
settings->RemoteWndSupportLevel = cnv.c;
|
2019-03-21 15:08:59 +03:00
|
|
|
break;
|
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_RequestedProtocols:
|
2021-10-07 10:16:20 +03:00
|
|
|
settings->RequestedProtocols = cnv.c;
|
2019-03-21 15:08:59 +03:00
|
|
|
break;
|
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_SelectedProtocol:
|
2021-10-07 10:16:20 +03:00
|
|
|
settings->SelectedProtocol = cnv.c;
|
2019-05-08 15:35:25 +03:00
|
|
|
break;
|
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_ServerCertificateLength:
|
2021-10-07 10:16:20 +03:00
|
|
|
settings->ServerCertificateLength = cnv.c;
|
2019-03-21 15:08:59 +03:00
|
|
|
break;
|
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_ServerPort:
|
2021-10-07 10:16:20 +03:00
|
|
|
settings->ServerPort = cnv.c;
|
2019-03-21 15:08:59 +03:00
|
|
|
break;
|
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_ServerRandomLength:
|
2021-10-07 10:16:20 +03:00
|
|
|
settings->ServerRandomLength = cnv.c;
|
2019-03-21 15:08:59 +03:00
|
|
|
break;
|
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_ShareId:
|
2021-10-07 10:16:20 +03:00
|
|
|
settings->ShareId = cnv.c;
|
2019-03-21 15:08:59 +03:00
|
|
|
break;
|
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_SmartSizingHeight:
|
2021-10-07 10:16:20 +03:00
|
|
|
settings->SmartSizingHeight = cnv.c;
|
2019-03-21 15:08:59 +03:00
|
|
|
break;
|
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_SmartSizingWidth:
|
2021-10-07 10:16:20 +03:00
|
|
|
settings->SmartSizingWidth = cnv.c;
|
2019-03-21 15:08:59 +03:00
|
|
|
break;
|
|
|
|
|
|
|
|
case FreeRDP_StaticChannelArraySize:
|
2021-10-07 10:16:20 +03:00
|
|
|
settings->StaticChannelArraySize = cnv.c;
|
2019-03-21 15:08:59 +03:00
|
|
|
break;
|
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_StaticChannelCount:
|
2021-10-07 10:16:20 +03:00
|
|
|
settings->StaticChannelCount = cnv.c;
|
2019-03-21 15:08:59 +03:00
|
|
|
break;
|
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_TargetNetAddressCount:
|
2021-10-07 10:16:20 +03:00
|
|
|
settings->TargetNetAddressCount = cnv.c;
|
2019-03-21 15:08:59 +03:00
|
|
|
break;
|
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_TcpAckTimeout:
|
2021-10-07 10:16:20 +03:00
|
|
|
settings->TcpAckTimeout = cnv.c;
|
2019-11-07 14:45:05 +03:00
|
|
|
break;
|
|
|
|
|
2021-06-02 17:51:49 +03:00
|
|
|
case FreeRDP_TcpConnectTimeout:
|
2021-10-07 10:16:20 +03:00
|
|
|
settings->TcpConnectTimeout = cnv.c;
|
2021-06-02 17:51:49 +03:00
|
|
|
break;
|
|
|
|
|
2019-11-07 15:15:44 +03:00
|
|
|
case FreeRDP_TcpKeepAliveDelay:
|
2021-10-07 10:16:20 +03:00
|
|
|
settings->TcpKeepAliveDelay = cnv.c;
|
2019-11-07 15:15:44 +03:00
|
|
|
break;
|
|
|
|
|
2019-11-07 14:45:05 +03:00
|
|
|
case FreeRDP_TcpKeepAliveInterval:
|
2021-10-07 10:16:20 +03:00
|
|
|
settings->TcpKeepAliveInterval = cnv.c;
|
2019-11-07 14:45:05 +03:00
|
|
|
break;
|
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_TcpKeepAliveRetries:
|
2021-10-07 10:16:20 +03:00
|
|
|
settings->TcpKeepAliveRetries = cnv.c;
|
2020-04-11 12:55:11 +03:00
|
|
|
break;
|
|
|
|
|
2021-03-12 18:54:45 +03:00
|
|
|
case FreeRDP_ThreadingFlags:
|
2021-10-07 10:16:20 +03:00
|
|
|
settings->ThreadingFlags = cnv.c;
|
2021-03-12 18:54:45 +03:00
|
|
|
break;
|
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_TlsSecLevel:
|
2021-10-07 10:16:20 +03:00
|
|
|
settings->TlsSecLevel = cnv.c;
|
2020-04-11 12:55:11 +03:00
|
|
|
break;
|
|
|
|
|
|
|
|
case FreeRDP_VirtualChannelChunkSize:
|
2021-10-07 10:16:20 +03:00
|
|
|
settings->VirtualChannelChunkSize = cnv.c;
|
2020-04-11 12:55:11 +03:00
|
|
|
break;
|
|
|
|
|
|
|
|
case FreeRDP_VirtualChannelCompressionFlags:
|
2021-10-07 10:16:20 +03:00
|
|
|
settings->VirtualChannelCompressionFlags = cnv.c;
|
2019-11-07 14:45:05 +03:00
|
|
|
break;
|
|
|
|
|
2019-03-21 15:08:59 +03:00
|
|
|
default:
|
2019-11-06 17:24:51 +03:00
|
|
|
WLog_ERR(TAG, "[%s] Invalid key index %" PRIuz, __FUNCTION__, id);
|
2019-03-21 15:08:59 +03:00
|
|
|
return FALSE;
|
|
|
|
}
|
|
|
|
return TRUE;
|
|
|
|
}
|
|
|
|
|
2019-11-07 14:39:22 +03:00
|
|
|
INT32 freerdp_settings_get_int32(const rdpSettings* settings, size_t id)
|
2019-03-21 15:08:59 +03:00
|
|
|
{
|
2021-09-03 09:26:55 +03:00
|
|
|
WINPR_ASSERT(settings);
|
2019-03-21 15:08:59 +03:00
|
|
|
|
|
|
|
switch (id)
|
|
|
|
{
|
|
|
|
case FreeRDP_XPan:
|
|
|
|
return settings->XPan;
|
|
|
|
|
|
|
|
case FreeRDP_YPan:
|
|
|
|
return settings->YPan;
|
|
|
|
|
|
|
|
default:
|
2019-11-06 17:24:51 +03:00
|
|
|
WLog_ERR(TAG, "[%s] Invalid key index %" PRIuz, __FUNCTION__, id);
|
2019-03-21 15:08:59 +03:00
|
|
|
return FALSE;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-05-08 15:35:25 +03:00
|
|
|
BOOL freerdp_settings_set_int32(rdpSettings* settings, size_t id, INT32 val)
|
2019-03-21 15:08:59 +03:00
|
|
|
{
|
2021-10-07 10:16:20 +03:00
|
|
|
union
|
|
|
|
{
|
|
|
|
void* v;
|
|
|
|
const void* cv;
|
|
|
|
INT32 c;
|
|
|
|
const INT32 cc;
|
|
|
|
} cnv;
|
2021-09-03 09:26:55 +03:00
|
|
|
WINPR_ASSERT(settings);
|
2019-03-21 15:08:59 +03:00
|
|
|
|
2021-10-07 10:16:20 +03:00
|
|
|
cnv.c = val;
|
|
|
|
|
2019-03-21 15:08:59 +03:00
|
|
|
switch (id)
|
|
|
|
{
|
|
|
|
case FreeRDP_XPan:
|
2021-10-07 10:16:20 +03:00
|
|
|
settings->XPan = cnv.c;
|
2019-03-21 15:08:59 +03:00
|
|
|
break;
|
|
|
|
|
|
|
|
case FreeRDP_YPan:
|
2021-10-07 10:16:20 +03:00
|
|
|
settings->YPan = cnv.c;
|
2019-03-21 15:08:59 +03:00
|
|
|
break;
|
|
|
|
|
|
|
|
default:
|
2019-11-06 17:24:51 +03:00
|
|
|
WLog_ERR(TAG, "[%s] Invalid key index %" PRIuz, __FUNCTION__, id);
|
2019-03-21 15:08:59 +03:00
|
|
|
return FALSE;
|
|
|
|
}
|
|
|
|
return TRUE;
|
|
|
|
}
|
|
|
|
|
2019-11-07 14:39:22 +03:00
|
|
|
UINT64 freerdp_settings_get_uint64(const rdpSettings* settings, size_t id)
|
2019-03-21 15:08:59 +03:00
|
|
|
{
|
2021-09-03 09:26:55 +03:00
|
|
|
WINPR_ASSERT(settings);
|
2019-03-21 15:08:59 +03:00
|
|
|
|
|
|
|
switch (id)
|
|
|
|
{
|
|
|
|
case FreeRDP_ParentWindowId:
|
|
|
|
return settings->ParentWindowId;
|
|
|
|
|
|
|
|
default:
|
2019-11-06 17:24:51 +03:00
|
|
|
WLog_ERR(TAG, "[%s] Invalid key index %" PRIuz, __FUNCTION__, id);
|
2019-03-21 15:08:59 +03:00
|
|
|
return FALSE;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-05-08 15:35:25 +03:00
|
|
|
BOOL freerdp_settings_set_uint64(rdpSettings* settings, size_t id, UINT64 val)
|
2019-03-21 15:08:59 +03:00
|
|
|
{
|
2021-10-07 10:16:20 +03:00
|
|
|
union
|
|
|
|
{
|
|
|
|
void* v;
|
|
|
|
const void* cv;
|
|
|
|
UINT64 c;
|
|
|
|
const UINT64 cc;
|
|
|
|
} cnv;
|
2021-09-03 09:26:55 +03:00
|
|
|
WINPR_ASSERT(settings);
|
2019-03-21 15:08:59 +03:00
|
|
|
|
2021-10-07 10:16:20 +03:00
|
|
|
cnv.c = val;
|
|
|
|
|
2019-03-21 15:08:59 +03:00
|
|
|
switch (id)
|
|
|
|
{
|
|
|
|
case FreeRDP_ParentWindowId:
|
2021-10-07 10:16:20 +03:00
|
|
|
settings->ParentWindowId = cnv.c;
|
2019-03-21 15:08:59 +03:00
|
|
|
break;
|
|
|
|
|
|
|
|
default:
|
2019-11-06 17:24:51 +03:00
|
|
|
WLog_ERR(TAG, "[%s] Invalid key index %" PRIuz, __FUNCTION__, id);
|
2019-03-21 15:08:59 +03:00
|
|
|
return FALSE;
|
|
|
|
}
|
|
|
|
return TRUE;
|
|
|
|
}
|
|
|
|
|
2019-11-07 14:39:22 +03:00
|
|
|
INT64 freerdp_settings_get_int64(const rdpSettings* settings, size_t id)
|
2019-03-21 15:08:59 +03:00
|
|
|
{
|
2021-09-03 09:26:55 +03:00
|
|
|
WINPR_ASSERT(settings);
|
2019-03-21 15:08:59 +03:00
|
|
|
|
|
|
|
switch (id)
|
|
|
|
{
|
|
|
|
default:
|
2019-11-06 17:24:51 +03:00
|
|
|
WLog_ERR(TAG, "[%s] Invalid key index %" PRIuz, __FUNCTION__, id);
|
2019-03-21 15:08:59 +03:00
|
|
|
return FALSE;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-05-08 15:35:25 +03:00
|
|
|
BOOL freerdp_settings_set_int64(rdpSettings* settings, size_t id, INT64 val)
|
2019-03-21 15:08:59 +03:00
|
|
|
{
|
2021-10-07 10:16:20 +03:00
|
|
|
union
|
|
|
|
{
|
|
|
|
void* v;
|
|
|
|
const void* cv;
|
|
|
|
INT64 c;
|
|
|
|
const INT64 cc;
|
|
|
|
} cnv;
|
2021-09-03 09:26:55 +03:00
|
|
|
WINPR_ASSERT(settings);
|
2019-03-21 15:08:59 +03:00
|
|
|
|
2021-10-07 10:16:20 +03:00
|
|
|
cnv.c = val;
|
|
|
|
|
2019-03-21 15:08:59 +03:00
|
|
|
switch (id)
|
|
|
|
{
|
|
|
|
default:
|
2019-11-06 17:24:51 +03:00
|
|
|
WLog_ERR(TAG, "[%s] Invalid key index %" PRIuz, __FUNCTION__, id);
|
2019-03-21 15:08:59 +03:00
|
|
|
return FALSE;
|
|
|
|
}
|
|
|
|
return TRUE;
|
|
|
|
}
|
|
|
|
|
2019-11-07 14:39:22 +03:00
|
|
|
const char* freerdp_settings_get_string(const rdpSettings* settings, size_t id)
|
2019-03-21 15:08:59 +03:00
|
|
|
{
|
2021-09-03 09:26:55 +03:00
|
|
|
WINPR_ASSERT(settings);
|
2019-03-21 15:08:59 +03:00
|
|
|
|
|
|
|
switch (id)
|
|
|
|
{
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_AcceptedCert:
|
|
|
|
return settings->AcceptedCert;
|
2019-03-21 15:08:59 +03:00
|
|
|
|
2020-11-19 12:09:34 +03:00
|
|
|
case FreeRDP_ActionScript:
|
|
|
|
return settings->ActionScript;
|
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_AllowedTlsCiphers:
|
|
|
|
return settings->AllowedTlsCiphers;
|
2019-03-21 15:08:59 +03:00
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_AlternateShell:
|
|
|
|
return settings->AlternateShell;
|
2019-03-21 15:08:59 +03:00
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_AssistanceFile:
|
|
|
|
return settings->AssistanceFile;
|
2019-03-21 15:08:59 +03:00
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_AuthenticationServiceClass:
|
|
|
|
return settings->AuthenticationServiceClass;
|
2019-03-21 15:08:59 +03:00
|
|
|
|
2022-05-30 23:32:23 +03:00
|
|
|
case FreeRDP_BitmapCachePersistFile:
|
|
|
|
return settings->BitmapCachePersistFile;
|
|
|
|
|
2022-02-02 01:23:34 +03:00
|
|
|
case FreeRDP_CardName:
|
|
|
|
return settings->CardName;
|
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_CertificateAcceptedFingerprints:
|
|
|
|
return settings->CertificateAcceptedFingerprints;
|
2019-03-21 15:08:59 +03:00
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_CertificateContent:
|
|
|
|
return settings->CertificateContent;
|
2019-03-21 15:08:59 +03:00
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_CertificateFile:
|
|
|
|
return settings->CertificateFile;
|
2019-03-21 15:08:59 +03:00
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_CertificateName:
|
|
|
|
return settings->CertificateName;
|
2019-03-21 15:08:59 +03:00
|
|
|
|
|
|
|
case FreeRDP_ClientAddress:
|
|
|
|
return settings->ClientAddress;
|
|
|
|
|
|
|
|
case FreeRDP_ClientDir:
|
|
|
|
return settings->ClientDir;
|
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_ClientHostname:
|
|
|
|
return settings->ClientHostname;
|
2019-03-21 15:08:59 +03:00
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_ClientProductId:
|
|
|
|
return settings->ClientProductId;
|
2019-03-21 15:08:59 +03:00
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_ComputerName:
|
|
|
|
return settings->ComputerName;
|
2019-03-21 15:08:59 +03:00
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_ConfigPath:
|
|
|
|
return settings->ConfigPath;
|
2019-03-21 15:08:59 +03:00
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_ConnectionFile:
|
|
|
|
return settings->ConnectionFile;
|
2019-03-21 15:08:59 +03:00
|
|
|
|
2022-02-02 01:23:34 +03:00
|
|
|
case FreeRDP_ContainerName:
|
|
|
|
return settings->ContainerName;
|
|
|
|
|
|
|
|
case FreeRDP_CspName:
|
|
|
|
return settings->CspName;
|
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_CurrentPath:
|
|
|
|
return settings->CurrentPath;
|
2019-03-21 15:08:59 +03:00
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_Domain:
|
|
|
|
return settings->Domain;
|
2019-03-21 15:08:59 +03:00
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_DrivesToRedirect:
|
|
|
|
return settings->DrivesToRedirect;
|
2019-03-21 15:08:59 +03:00
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_DumpRemoteFxFile:
|
|
|
|
return settings->DumpRemoteFxFile;
|
2019-03-21 15:08:59 +03:00
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_DynamicDSTTimeZoneKeyName:
|
|
|
|
return settings->DynamicDSTTimeZoneKeyName;
|
2019-03-21 15:08:59 +03:00
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_GatewayAcceptedCert:
|
|
|
|
return settings->GatewayAcceptedCert;
|
2019-03-21 15:08:59 +03:00
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_GatewayAccessToken:
|
|
|
|
return settings->GatewayAccessToken;
|
2019-03-21 15:08:59 +03:00
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_GatewayDomain:
|
|
|
|
return settings->GatewayDomain;
|
2019-03-21 15:08:59 +03:00
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_GatewayHostname:
|
|
|
|
return settings->GatewayHostname;
|
2019-03-21 15:08:59 +03:00
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_GatewayPassword:
|
|
|
|
return settings->GatewayPassword;
|
|
|
|
|
|
|
|
case FreeRDP_GatewayUsername:
|
|
|
|
return settings->GatewayUsername;
|
|
|
|
|
|
|
|
case FreeRDP_HomePath:
|
|
|
|
return settings->HomePath;
|
|
|
|
|
|
|
|
case FreeRDP_ImeFileName:
|
|
|
|
return settings->ImeFileName;
|
2019-03-21 15:08:59 +03:00
|
|
|
|
2022-02-05 01:59:16 +03:00
|
|
|
case FreeRDP_KerberosArmor:
|
|
|
|
return settings->KerberosArmor;
|
|
|
|
|
|
|
|
case FreeRDP_KerberosCache:
|
|
|
|
return settings->KerberosCache;
|
|
|
|
|
2019-03-21 15:08:59 +03:00
|
|
|
case FreeRDP_KerberosKdc:
|
|
|
|
return settings->KerberosKdc;
|
|
|
|
|
2022-06-07 06:30:42 +03:00
|
|
|
case FreeRDP_KerberosKeytab:
|
|
|
|
return settings->KerberosKeytab;
|
|
|
|
|
2022-02-02 01:23:34 +03:00
|
|
|
case FreeRDP_KerberosLifeTime:
|
|
|
|
return settings->KerberosLifeTime;
|
|
|
|
|
2019-03-21 15:08:59 +03:00
|
|
|
case FreeRDP_KerberosRealm:
|
|
|
|
return settings->KerberosRealm;
|
|
|
|
|
2022-02-02 01:23:34 +03:00
|
|
|
case FreeRDP_KerberosRenewableLifeTime:
|
|
|
|
return settings->KerberosRenewableLifeTime;
|
|
|
|
|
|
|
|
case FreeRDP_KerberosStartTime:
|
|
|
|
return settings->KerberosStartTime;
|
|
|
|
|
2020-10-28 14:22:48 +03:00
|
|
|
case FreeRDP_KeyboardRemappingList:
|
|
|
|
return settings->KeyboardRemappingList;
|
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_NtlmSamFile:
|
|
|
|
return settings->NtlmSamFile;
|
2019-03-21 15:08:59 +03:00
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_Password:
|
|
|
|
return settings->Password;
|
2019-03-21 15:08:59 +03:00
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_PasswordHash:
|
|
|
|
return settings->PasswordHash;
|
2019-03-21 15:08:59 +03:00
|
|
|
|
2022-02-02 01:23:34 +03:00
|
|
|
case FreeRDP_Pkcs11Module:
|
|
|
|
return settings->Pkcs11Module;
|
|
|
|
|
|
|
|
case FreeRDP_PkinitAnchors:
|
|
|
|
return settings->PkinitAnchors;
|
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_PlayRemoteFxFile:
|
|
|
|
return settings->PlayRemoteFxFile;
|
2019-03-21 15:08:59 +03:00
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_PreconnectionBlob:
|
|
|
|
return settings->PreconnectionBlob;
|
2019-03-21 15:08:59 +03:00
|
|
|
|
|
|
|
case FreeRDP_PrivateKeyContent:
|
|
|
|
return settings->PrivateKeyContent;
|
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_PrivateKeyFile:
|
|
|
|
return settings->PrivateKeyFile;
|
2019-03-21 15:08:59 +03:00
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_ProxyHostname:
|
|
|
|
return settings->ProxyHostname;
|
2020-02-12 14:01:27 +03:00
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_ProxyPassword:
|
|
|
|
return settings->ProxyPassword;
|
2019-03-21 15:08:59 +03:00
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_ProxyUsername:
|
|
|
|
return settings->ProxyUsername;
|
2019-03-21 15:08:59 +03:00
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_RDP2TCPArgs:
|
|
|
|
return settings->RDP2TCPArgs;
|
2019-03-21 15:08:59 +03:00
|
|
|
|
2022-02-02 01:23:34 +03:00
|
|
|
case FreeRDP_ReaderName:
|
|
|
|
return settings->ReaderName;
|
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_RedirectionAcceptedCert:
|
|
|
|
return settings->RedirectionAcceptedCert;
|
2019-03-21 15:08:59 +03:00
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_RedirectionDomain:
|
|
|
|
return settings->RedirectionDomain;
|
2019-03-21 15:08:59 +03:00
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_RedirectionTargetFQDN:
|
|
|
|
return settings->RedirectionTargetFQDN;
|
2019-03-21 15:08:59 +03:00
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_RedirectionTargetNetBiosName:
|
|
|
|
return settings->RedirectionTargetNetBiosName;
|
2019-03-21 15:08:59 +03:00
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_RedirectionUsername:
|
|
|
|
return settings->RedirectionUsername;
|
2019-03-21 15:08:59 +03:00
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_RemoteApplicationCmdLine:
|
|
|
|
return settings->RemoteApplicationCmdLine;
|
2019-03-21 15:08:59 +03:00
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_RemoteApplicationFile:
|
|
|
|
return settings->RemoteApplicationFile;
|
2019-03-21 15:08:59 +03:00
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_RemoteApplicationGuid:
|
|
|
|
return settings->RemoteApplicationGuid;
|
2019-03-21 15:08:59 +03:00
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_RemoteApplicationIcon:
|
|
|
|
return settings->RemoteApplicationIcon;
|
2019-03-21 15:08:59 +03:00
|
|
|
|
|
|
|
case FreeRDP_RemoteApplicationName:
|
|
|
|
return settings->RemoteApplicationName;
|
|
|
|
|
|
|
|
case FreeRDP_RemoteApplicationProgram:
|
|
|
|
return settings->RemoteApplicationProgram;
|
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_RemoteApplicationWorkingDir:
|
|
|
|
return settings->RemoteApplicationWorkingDir;
|
2019-03-21 15:08:59 +03:00
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_RemoteAssistancePassStub:
|
|
|
|
return settings->RemoteAssistancePassStub;
|
2019-03-21 15:08:59 +03:00
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_RemoteAssistancePassword:
|
|
|
|
return settings->RemoteAssistancePassword;
|
2019-03-21 15:08:59 +03:00
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_RemoteAssistanceRCTicket:
|
|
|
|
return settings->RemoteAssistanceRCTicket;
|
2019-05-22 17:36:40 +03:00
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_RemoteAssistanceSessionId:
|
|
|
|
return settings->RemoteAssistanceSessionId;
|
2019-03-21 15:08:59 +03:00
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_ServerHostname:
|
|
|
|
return settings->ServerHostname;
|
2019-03-21 15:08:59 +03:00
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_ShellWorkingDirectory:
|
|
|
|
return settings->ShellWorkingDirectory;
|
|
|
|
|
2021-11-05 15:09:42 +03:00
|
|
|
case FreeRDP_SmartcardCertificate:
|
|
|
|
return settings->SmartcardCertificate;
|
|
|
|
|
|
|
|
case FreeRDP_SmartcardPrivateKey:
|
|
|
|
return settings->SmartcardPrivateKey;
|
|
|
|
|
2022-05-26 18:42:28 +03:00
|
|
|
case FreeRDP_SspiModule:
|
|
|
|
return settings->SspiModule;
|
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_TargetNetAddress:
|
|
|
|
return settings->TargetNetAddress;
|
|
|
|
|
2022-08-16 11:40:32 +03:00
|
|
|
case FreeRDP_TlsSecretsFile:
|
|
|
|
return settings->TlsSecretsFile;
|
|
|
|
|
2021-09-23 15:52:03 +03:00
|
|
|
case FreeRDP_TransportDumpFile:
|
|
|
|
return settings->TransportDumpFile;
|
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_Username:
|
|
|
|
return settings->Username;
|
|
|
|
|
|
|
|
case FreeRDP_WindowTitle:
|
|
|
|
return settings->WindowTitle;
|
|
|
|
|
|
|
|
case FreeRDP_WmClass:
|
|
|
|
return settings->WmClass;
|
2019-07-15 11:08:39 +03:00
|
|
|
|
2019-03-21 15:08:59 +03:00
|
|
|
default:
|
2019-11-06 17:24:51 +03:00
|
|
|
WLog_ERR(TAG, "[%s] Invalid key index %" PRIuz, __FUNCTION__, id);
|
2019-03-21 15:08:59 +03:00
|
|
|
return FALSE;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-01-20 13:12:36 +03:00
|
|
|
char* freerdp_settings_get_string_writable(rdpSettings* settings, size_t id)
|
|
|
|
{
|
|
|
|
WINPR_ASSERT(settings);
|
|
|
|
|
|
|
|
switch (id)
|
|
|
|
{
|
|
|
|
case FreeRDP_AcceptedCert:
|
|
|
|
return settings->AcceptedCert;
|
|
|
|
|
|
|
|
case FreeRDP_ActionScript:
|
|
|
|
return settings->ActionScript;
|
|
|
|
|
|
|
|
case FreeRDP_AllowedTlsCiphers:
|
|
|
|
return settings->AllowedTlsCiphers;
|
|
|
|
|
|
|
|
case FreeRDP_AlternateShell:
|
|
|
|
return settings->AlternateShell;
|
|
|
|
|
|
|
|
case FreeRDP_AssistanceFile:
|
|
|
|
return settings->AssistanceFile;
|
|
|
|
|
|
|
|
case FreeRDP_AuthenticationServiceClass:
|
|
|
|
return settings->AuthenticationServiceClass;
|
|
|
|
|
2022-05-30 23:32:23 +03:00
|
|
|
case FreeRDP_BitmapCachePersistFile:
|
|
|
|
return settings->BitmapCachePersistFile;
|
|
|
|
|
2022-02-02 01:23:34 +03:00
|
|
|
case FreeRDP_CardName:
|
|
|
|
return settings->CardName;
|
|
|
|
|
2022-01-20 13:12:36 +03:00
|
|
|
case FreeRDP_CertificateAcceptedFingerprints:
|
|
|
|
return settings->CertificateAcceptedFingerprints;
|
|
|
|
|
|
|
|
case FreeRDP_CertificateContent:
|
|
|
|
return settings->CertificateContent;
|
|
|
|
|
|
|
|
case FreeRDP_CertificateFile:
|
|
|
|
return settings->CertificateFile;
|
|
|
|
|
|
|
|
case FreeRDP_CertificateName:
|
|
|
|
return settings->CertificateName;
|
|
|
|
|
|
|
|
case FreeRDP_ClientAddress:
|
|
|
|
return settings->ClientAddress;
|
|
|
|
|
|
|
|
case FreeRDP_ClientDir:
|
|
|
|
return settings->ClientDir;
|
|
|
|
|
|
|
|
case FreeRDP_ClientHostname:
|
|
|
|
return settings->ClientHostname;
|
|
|
|
|
|
|
|
case FreeRDP_ClientProductId:
|
|
|
|
return settings->ClientProductId;
|
|
|
|
|
|
|
|
case FreeRDP_ComputerName:
|
|
|
|
return settings->ComputerName;
|
|
|
|
|
|
|
|
case FreeRDP_ConfigPath:
|
|
|
|
return settings->ConfigPath;
|
|
|
|
|
|
|
|
case FreeRDP_ConnectionFile:
|
|
|
|
return settings->ConnectionFile;
|
|
|
|
|
2022-02-02 01:23:34 +03:00
|
|
|
case FreeRDP_ContainerName:
|
|
|
|
return settings->ContainerName;
|
|
|
|
|
|
|
|
case FreeRDP_CspName:
|
|
|
|
return settings->CspName;
|
|
|
|
|
2022-01-20 13:12:36 +03:00
|
|
|
case FreeRDP_CurrentPath:
|
|
|
|
return settings->CurrentPath;
|
|
|
|
|
|
|
|
case FreeRDP_Domain:
|
|
|
|
return settings->Domain;
|
|
|
|
|
|
|
|
case FreeRDP_DrivesToRedirect:
|
|
|
|
return settings->DrivesToRedirect;
|
|
|
|
|
|
|
|
case FreeRDP_DumpRemoteFxFile:
|
|
|
|
return settings->DumpRemoteFxFile;
|
|
|
|
|
|
|
|
case FreeRDP_DynamicDSTTimeZoneKeyName:
|
|
|
|
return settings->DynamicDSTTimeZoneKeyName;
|
|
|
|
|
|
|
|
case FreeRDP_GatewayAcceptedCert:
|
|
|
|
return settings->GatewayAcceptedCert;
|
|
|
|
|
|
|
|
case FreeRDP_GatewayAccessToken:
|
|
|
|
return settings->GatewayAccessToken;
|
|
|
|
|
|
|
|
case FreeRDP_GatewayDomain:
|
|
|
|
return settings->GatewayDomain;
|
|
|
|
|
|
|
|
case FreeRDP_GatewayHostname:
|
|
|
|
return settings->GatewayHostname;
|
|
|
|
|
|
|
|
case FreeRDP_GatewayPassword:
|
|
|
|
return settings->GatewayPassword;
|
|
|
|
|
|
|
|
case FreeRDP_GatewayUsername:
|
|
|
|
return settings->GatewayUsername;
|
|
|
|
|
|
|
|
case FreeRDP_HomePath:
|
|
|
|
return settings->HomePath;
|
|
|
|
|
|
|
|
case FreeRDP_ImeFileName:
|
|
|
|
return settings->ImeFileName;
|
|
|
|
|
2022-02-05 01:59:16 +03:00
|
|
|
case FreeRDP_KerberosArmor:
|
|
|
|
return settings->KerberosArmor;
|
|
|
|
|
|
|
|
case FreeRDP_KerberosCache:
|
|
|
|
return settings->KerberosCache;
|
|
|
|
|
2022-01-20 13:12:36 +03:00
|
|
|
case FreeRDP_KerberosKdc:
|
|
|
|
return settings->KerberosKdc;
|
|
|
|
|
2022-06-07 06:30:42 +03:00
|
|
|
case FreeRDP_KerberosKeytab:
|
|
|
|
return settings->KerberosKeytab;
|
|
|
|
|
2022-02-02 01:23:34 +03:00
|
|
|
case FreeRDP_KerberosLifeTime:
|
|
|
|
return settings->KerberosLifeTime;
|
|
|
|
|
2022-01-20 13:12:36 +03:00
|
|
|
case FreeRDP_KerberosRealm:
|
|
|
|
return settings->KerberosRealm;
|
|
|
|
|
2022-02-02 01:23:34 +03:00
|
|
|
case FreeRDP_KerberosRenewableLifeTime:
|
|
|
|
return settings->KerberosRenewableLifeTime;
|
|
|
|
|
|
|
|
case FreeRDP_KerberosStartTime:
|
|
|
|
return settings->KerberosStartTime;
|
|
|
|
|
2022-01-20 13:12:36 +03:00
|
|
|
case FreeRDP_KeyboardRemappingList:
|
|
|
|
return settings->KeyboardRemappingList;
|
|
|
|
|
|
|
|
case FreeRDP_NtlmSamFile:
|
|
|
|
return settings->NtlmSamFile;
|
|
|
|
|
|
|
|
case FreeRDP_Password:
|
|
|
|
return settings->Password;
|
|
|
|
|
|
|
|
case FreeRDP_PasswordHash:
|
|
|
|
return settings->PasswordHash;
|
|
|
|
|
2022-02-02 01:23:34 +03:00
|
|
|
case FreeRDP_Pkcs11Module:
|
|
|
|
return settings->Pkcs11Module;
|
|
|
|
|
|
|
|
case FreeRDP_PkinitAnchors:
|
|
|
|
return settings->PkinitAnchors;
|
|
|
|
|
2022-01-20 13:12:36 +03:00
|
|
|
case FreeRDP_PlayRemoteFxFile:
|
|
|
|
return settings->PlayRemoteFxFile;
|
|
|
|
|
|
|
|
case FreeRDP_PreconnectionBlob:
|
|
|
|
return settings->PreconnectionBlob;
|
|
|
|
|
|
|
|
case FreeRDP_PrivateKeyContent:
|
|
|
|
return settings->PrivateKeyContent;
|
|
|
|
|
|
|
|
case FreeRDP_PrivateKeyFile:
|
|
|
|
return settings->PrivateKeyFile;
|
|
|
|
|
|
|
|
case FreeRDP_ProxyHostname:
|
|
|
|
return settings->ProxyHostname;
|
|
|
|
|
|
|
|
case FreeRDP_ProxyPassword:
|
|
|
|
return settings->ProxyPassword;
|
|
|
|
|
|
|
|
case FreeRDP_ProxyUsername:
|
|
|
|
return settings->ProxyUsername;
|
|
|
|
|
|
|
|
case FreeRDP_RDP2TCPArgs:
|
|
|
|
return settings->RDP2TCPArgs;
|
|
|
|
|
2022-02-02 01:23:34 +03:00
|
|
|
case FreeRDP_ReaderName:
|
|
|
|
return settings->ReaderName;
|
|
|
|
|
2022-01-20 13:12:36 +03:00
|
|
|
case FreeRDP_RedirectionAcceptedCert:
|
|
|
|
return settings->RedirectionAcceptedCert;
|
|
|
|
|
|
|
|
case FreeRDP_RedirectionDomain:
|
|
|
|
return settings->RedirectionDomain;
|
|
|
|
|
|
|
|
case FreeRDP_RedirectionTargetFQDN:
|
|
|
|
return settings->RedirectionTargetFQDN;
|
|
|
|
|
|
|
|
case FreeRDP_RedirectionTargetNetBiosName:
|
|
|
|
return settings->RedirectionTargetNetBiosName;
|
|
|
|
|
|
|
|
case FreeRDP_RedirectionUsername:
|
|
|
|
return settings->RedirectionUsername;
|
|
|
|
|
|
|
|
case FreeRDP_RemoteApplicationCmdLine:
|
|
|
|
return settings->RemoteApplicationCmdLine;
|
|
|
|
|
|
|
|
case FreeRDP_RemoteApplicationFile:
|
|
|
|
return settings->RemoteApplicationFile;
|
|
|
|
|
|
|
|
case FreeRDP_RemoteApplicationGuid:
|
|
|
|
return settings->RemoteApplicationGuid;
|
|
|
|
|
|
|
|
case FreeRDP_RemoteApplicationIcon:
|
|
|
|
return settings->RemoteApplicationIcon;
|
|
|
|
|
|
|
|
case FreeRDP_RemoteApplicationName:
|
|
|
|
return settings->RemoteApplicationName;
|
|
|
|
|
|
|
|
case FreeRDP_RemoteApplicationProgram:
|
|
|
|
return settings->RemoteApplicationProgram;
|
|
|
|
|
|
|
|
case FreeRDP_RemoteApplicationWorkingDir:
|
|
|
|
return settings->RemoteApplicationWorkingDir;
|
|
|
|
|
|
|
|
case FreeRDP_RemoteAssistancePassStub:
|
|
|
|
return settings->RemoteAssistancePassStub;
|
|
|
|
|
|
|
|
case FreeRDP_RemoteAssistancePassword:
|
|
|
|
return settings->RemoteAssistancePassword;
|
|
|
|
|
|
|
|
case FreeRDP_RemoteAssistanceRCTicket:
|
|
|
|
return settings->RemoteAssistanceRCTicket;
|
|
|
|
|
|
|
|
case FreeRDP_RemoteAssistanceSessionId:
|
|
|
|
return settings->RemoteAssistanceSessionId;
|
|
|
|
|
|
|
|
case FreeRDP_ServerHostname:
|
|
|
|
return settings->ServerHostname;
|
|
|
|
|
|
|
|
case FreeRDP_ShellWorkingDirectory:
|
|
|
|
return settings->ShellWorkingDirectory;
|
|
|
|
|
|
|
|
case FreeRDP_SmartcardCertificate:
|
|
|
|
return settings->SmartcardCertificate;
|
|
|
|
|
|
|
|
case FreeRDP_SmartcardPrivateKey:
|
|
|
|
return settings->SmartcardPrivateKey;
|
|
|
|
|
2022-05-26 18:42:28 +03:00
|
|
|
case FreeRDP_SspiModule:
|
|
|
|
return settings->SspiModule;
|
|
|
|
|
2022-01-20 13:12:36 +03:00
|
|
|
case FreeRDP_TargetNetAddress:
|
|
|
|
return settings->TargetNetAddress;
|
|
|
|
|
2022-08-16 11:40:32 +03:00
|
|
|
case FreeRDP_TlsSecretsFile:
|
|
|
|
return settings->TlsSecretsFile;
|
|
|
|
|
2022-01-20 13:12:36 +03:00
|
|
|
case FreeRDP_TransportDumpFile:
|
|
|
|
return settings->TransportDumpFile;
|
|
|
|
|
|
|
|
case FreeRDP_Username:
|
|
|
|
return settings->Username;
|
|
|
|
|
|
|
|
case FreeRDP_WindowTitle:
|
|
|
|
return settings->WindowTitle;
|
|
|
|
|
|
|
|
case FreeRDP_WmClass:
|
|
|
|
return settings->WmClass;
|
|
|
|
|
|
|
|
default:
|
|
|
|
WLog_ERR(TAG, "[%s] Invalid key index %" PRIuz, __FUNCTION__, id);
|
|
|
|
return FALSE;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-11-19 12:09:34 +03:00
|
|
|
BOOL freerdp_settings_set_string_(rdpSettings* settings, size_t id, const char* val, size_t len,
|
|
|
|
BOOL cleanup)
|
2019-03-21 15:08:59 +03:00
|
|
|
{
|
2021-10-07 10:16:20 +03:00
|
|
|
union
|
|
|
|
{
|
|
|
|
void* v;
|
|
|
|
const void* cv;
|
|
|
|
char* c;
|
|
|
|
const char* cc;
|
|
|
|
} cnv;
|
2021-09-03 09:26:55 +03:00
|
|
|
WINPR_ASSERT(settings);
|
2019-03-21 15:08:59 +03:00
|
|
|
|
2021-10-07 10:16:20 +03:00
|
|
|
cnv.cc = val;
|
|
|
|
|
2019-03-21 15:08:59 +03:00
|
|
|
switch (id)
|
|
|
|
{
|
|
|
|
case FreeRDP_AcceptedCert:
|
2021-10-07 10:16:20 +03:00
|
|
|
return update_string(&settings->AcceptedCert, cnv.cc, len, cleanup);
|
2019-03-21 15:08:59 +03:00
|
|
|
|
2020-11-19 12:09:34 +03:00
|
|
|
case FreeRDP_ActionScript:
|
2021-10-07 10:16:20 +03:00
|
|
|
return update_string(&settings->ActionScript, cnv.cc, len, cleanup);
|
2020-11-19 12:09:34 +03:00
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_AllowedTlsCiphers:
|
2021-10-07 10:16:20 +03:00
|
|
|
return update_string(&settings->AllowedTlsCiphers, cnv.cc, len, cleanup);
|
2019-03-21 15:08:59 +03:00
|
|
|
|
|
|
|
case FreeRDP_AlternateShell:
|
2021-10-07 10:16:20 +03:00
|
|
|
return update_string(&settings->AlternateShell, cnv.cc, len, cleanup);
|
2019-03-21 15:08:59 +03:00
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_AssistanceFile:
|
2021-10-07 10:16:20 +03:00
|
|
|
return update_string(&settings->AssistanceFile, cnv.cc, len, cleanup);
|
2019-03-21 15:08:59 +03:00
|
|
|
|
|
|
|
case FreeRDP_AuthenticationServiceClass:
|
2021-10-07 10:16:20 +03:00
|
|
|
return update_string(&settings->AuthenticationServiceClass, cnv.cc, len, cleanup);
|
2019-03-21 15:08:59 +03:00
|
|
|
|
2022-05-30 23:32:23 +03:00
|
|
|
case FreeRDP_BitmapCachePersistFile:
|
|
|
|
return update_string(&settings->BitmapCachePersistFile, cnv.cc, len, cleanup);
|
|
|
|
|
2022-02-02 01:23:34 +03:00
|
|
|
case FreeRDP_CardName:
|
|
|
|
return update_string(&settings->CardName, cnv.cc, len, cleanup);
|
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_CertificateAcceptedFingerprints:
|
2021-10-07 10:16:20 +03:00
|
|
|
return update_string(&settings->CertificateAcceptedFingerprints, cnv.cc, len, cleanup);
|
2019-03-21 15:08:59 +03:00
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_CertificateContent:
|
2021-10-07 10:16:20 +03:00
|
|
|
return update_string(&settings->CertificateContent, cnv.cc, len, cleanup);
|
2019-03-21 15:08:59 +03:00
|
|
|
|
|
|
|
case FreeRDP_CertificateFile:
|
2021-10-07 10:16:20 +03:00
|
|
|
return update_string(&settings->CertificateFile, cnv.cc, len, cleanup);
|
2019-03-21 15:08:59 +03:00
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_CertificateName:
|
2021-10-07 10:16:20 +03:00
|
|
|
return update_string(&settings->CertificateName, cnv.cc, len, cleanup);
|
2019-03-21 15:08:59 +03:00
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_ClientAddress:
|
2021-10-07 10:16:20 +03:00
|
|
|
return update_string(&settings->ClientAddress, cnv.cc, len, cleanup);
|
2019-03-21 15:08:59 +03:00
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_ClientDir:
|
2021-10-07 10:16:20 +03:00
|
|
|
return update_string(&settings->ClientDir, cnv.cc, len, cleanup);
|
2020-02-12 14:01:27 +03:00
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_ClientHostname:
|
2021-10-07 10:16:20 +03:00
|
|
|
return update_string(&settings->ClientHostname, cnv.cc, len, cleanup);
|
2019-03-21 15:08:59 +03:00
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_ClientProductId:
|
2021-10-07 10:16:20 +03:00
|
|
|
return update_string(&settings->ClientProductId, cnv.cc, len, cleanup);
|
2019-03-21 15:08:59 +03:00
|
|
|
|
|
|
|
case FreeRDP_ComputerName:
|
2021-10-07 10:16:20 +03:00
|
|
|
return update_string(&settings->ComputerName, cnv.cc, len, cleanup);
|
2019-03-21 15:08:59 +03:00
|
|
|
|
|
|
|
case FreeRDP_ConfigPath:
|
2021-10-07 10:16:20 +03:00
|
|
|
return update_string(&settings->ConfigPath, cnv.cc, len, cleanup);
|
2019-03-21 15:08:59 +03:00
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_ConnectionFile:
|
2021-10-07 10:16:20 +03:00
|
|
|
return update_string(&settings->ConnectionFile, cnv.cc, len, cleanup);
|
2020-04-11 12:55:11 +03:00
|
|
|
|
2022-02-02 01:23:34 +03:00
|
|
|
case FreeRDP_ContainerName:
|
|
|
|
return update_string(&settings->ContainerName, cnv.cc, len, cleanup);
|
|
|
|
|
|
|
|
case FreeRDP_CspName:
|
|
|
|
return update_string(&settings->CspName, cnv.cc, len, cleanup);
|
|
|
|
|
2019-03-21 15:08:59 +03:00
|
|
|
case FreeRDP_CurrentPath:
|
2021-10-07 10:16:20 +03:00
|
|
|
return update_string(&settings->CurrentPath, cnv.cc, len, cleanup);
|
2019-03-21 15:08:59 +03:00
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_Domain:
|
2021-10-07 10:16:20 +03:00
|
|
|
return update_string(&settings->Domain, cnv.cc, len, cleanup);
|
2020-04-11 12:55:11 +03:00
|
|
|
|
|
|
|
case FreeRDP_DrivesToRedirect:
|
2021-10-07 10:16:20 +03:00
|
|
|
return update_string(&settings->DrivesToRedirect, cnv.cc, len, cleanup);
|
2020-04-11 12:55:11 +03:00
|
|
|
|
2019-03-21 15:08:59 +03:00
|
|
|
case FreeRDP_DumpRemoteFxFile:
|
2021-10-07 10:16:20 +03:00
|
|
|
return update_string(&settings->DumpRemoteFxFile, cnv.cc, len, cleanup);
|
2019-03-21 15:08:59 +03:00
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_DynamicDSTTimeZoneKeyName:
|
2021-10-07 10:16:20 +03:00
|
|
|
return update_string(&settings->DynamicDSTTimeZoneKeyName, cnv.cc, len, cleanup);
|
2020-04-11 12:55:11 +03:00
|
|
|
|
|
|
|
case FreeRDP_GatewayAcceptedCert:
|
2021-10-07 10:16:20 +03:00
|
|
|
return update_string(&settings->GatewayAcceptedCert, cnv.cc, len, cleanup);
|
2020-04-11 12:55:11 +03:00
|
|
|
|
|
|
|
case FreeRDP_GatewayAccessToken:
|
2021-10-07 10:16:20 +03:00
|
|
|
return update_string(&settings->GatewayAccessToken, cnv.cc, len, cleanup);
|
2020-04-11 12:55:11 +03:00
|
|
|
|
|
|
|
case FreeRDP_GatewayDomain:
|
2021-10-07 10:16:20 +03:00
|
|
|
return update_string(&settings->GatewayDomain, cnv.cc, len, cleanup);
|
2019-03-21 15:08:59 +03:00
|
|
|
|
|
|
|
case FreeRDP_GatewayHostname:
|
2021-10-07 10:16:20 +03:00
|
|
|
return update_string(&settings->GatewayHostname, cnv.cc, len, cleanup);
|
2019-03-21 15:08:59 +03:00
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_GatewayPassword:
|
2021-10-07 10:16:20 +03:00
|
|
|
return update_string(&settings->GatewayPassword, cnv.cc, len, cleanup);
|
2020-04-11 12:55:11 +03:00
|
|
|
|
2019-03-21 15:08:59 +03:00
|
|
|
case FreeRDP_GatewayUsername:
|
2021-10-07 10:16:20 +03:00
|
|
|
return update_string(&settings->GatewayUsername, cnv.cc, len, cleanup);
|
2019-03-21 15:08:59 +03:00
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_HomePath:
|
2021-10-07 10:16:20 +03:00
|
|
|
return update_string(&settings->HomePath, cnv.cc, len, cleanup);
|
2020-04-11 12:55:11 +03:00
|
|
|
|
|
|
|
case FreeRDP_ImeFileName:
|
2021-10-07 10:16:20 +03:00
|
|
|
return update_string(&settings->ImeFileName, cnv.cc, len, cleanup);
|
2020-04-11 12:55:11 +03:00
|
|
|
|
2022-02-05 01:59:16 +03:00
|
|
|
case FreeRDP_KerberosArmor:
|
|
|
|
return update_string(&settings->KerberosArmor, cnv.cc, len, cleanup);
|
|
|
|
|
|
|
|
case FreeRDP_KerberosCache:
|
|
|
|
return update_string(&settings->KerberosCache, cnv.cc, len, cleanup);
|
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_KerberosKdc:
|
2021-10-07 10:16:20 +03:00
|
|
|
return update_string(&settings->KerberosKdc, cnv.cc, len, cleanup);
|
2020-04-11 12:55:11 +03:00
|
|
|
|
2022-06-07 06:30:42 +03:00
|
|
|
case FreeRDP_KerberosKeytab:
|
|
|
|
return update_string(&settings->KerberosKeytab, cnv.cc, len, cleanup);
|
|
|
|
|
2022-02-02 01:23:34 +03:00
|
|
|
case FreeRDP_KerberosLifeTime:
|
|
|
|
return update_string(&settings->KerberosLifeTime, cnv.cc, len, cleanup);
|
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_KerberosRealm:
|
2021-10-07 10:16:20 +03:00
|
|
|
return update_string(&settings->KerberosRealm, cnv.cc, len, cleanup);
|
2020-04-11 12:55:11 +03:00
|
|
|
|
2022-02-02 01:23:34 +03:00
|
|
|
case FreeRDP_KerberosRenewableLifeTime:
|
|
|
|
return update_string(&settings->KerberosRenewableLifeTime, cnv.cc, len, cleanup);
|
|
|
|
|
|
|
|
case FreeRDP_KerberosStartTime:
|
|
|
|
return update_string(&settings->KerberosStartTime, cnv.cc, len, cleanup);
|
|
|
|
|
2020-10-28 14:22:48 +03:00
|
|
|
case FreeRDP_KeyboardRemappingList:
|
2021-10-07 10:16:20 +03:00
|
|
|
return update_string(&settings->KeyboardRemappingList, cnv.cc, len, cleanup);
|
2020-10-28 14:22:48 +03:00
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_NtlmSamFile:
|
2021-10-07 10:16:20 +03:00
|
|
|
return update_string(&settings->NtlmSamFile, cnv.cc, len, cleanup);
|
2020-04-11 12:55:11 +03:00
|
|
|
|
|
|
|
case FreeRDP_Password:
|
2021-10-07 10:16:20 +03:00
|
|
|
return update_string(&settings->Password, cnv.cc, len, cleanup);
|
2020-04-11 12:55:11 +03:00
|
|
|
|
|
|
|
case FreeRDP_PasswordHash:
|
2021-10-07 10:16:20 +03:00
|
|
|
return update_string(&settings->PasswordHash, cnv.cc, len, cleanup);
|
2020-04-11 12:55:11 +03:00
|
|
|
|
2022-02-02 01:23:34 +03:00
|
|
|
case FreeRDP_Pkcs11Module:
|
|
|
|
return update_string(&settings->Pkcs11Module, cnv.cc, len, cleanup);
|
|
|
|
|
|
|
|
case FreeRDP_PkinitAnchors:
|
|
|
|
return update_string(&settings->PkinitAnchors, cnv.cc, len, cleanup);
|
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_PlayRemoteFxFile:
|
2021-10-07 10:16:20 +03:00
|
|
|
return update_string(&settings->PlayRemoteFxFile, cnv.cc, len, cleanup);
|
2019-03-21 15:08:59 +03:00
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_PreconnectionBlob:
|
2021-10-07 10:16:20 +03:00
|
|
|
return update_string(&settings->PreconnectionBlob, cnv.cc, len, cleanup);
|
2019-03-21 15:08:59 +03:00
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_PrivateKeyContent:
|
2021-10-07 10:16:20 +03:00
|
|
|
return update_string(&settings->PrivateKeyContent, cnv.cc, len, cleanup);
|
2019-03-21 15:08:59 +03:00
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_PrivateKeyFile:
|
2021-10-07 10:16:20 +03:00
|
|
|
return update_string(&settings->PrivateKeyFile, cnv.cc, len, cleanup);
|
2019-03-21 15:08:59 +03:00
|
|
|
|
|
|
|
case FreeRDP_ProxyHostname:
|
2021-10-07 10:16:20 +03:00
|
|
|
return update_string(&settings->ProxyHostname, cnv.cc, len, cleanup);
|
2019-03-21 15:08:59 +03:00
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_ProxyPassword:
|
2021-10-07 10:16:20 +03:00
|
|
|
return update_string(&settings->ProxyPassword, cnv.cc, len, cleanup);
|
2020-04-11 12:55:11 +03:00
|
|
|
|
2019-03-21 15:08:59 +03:00
|
|
|
case FreeRDP_ProxyUsername:
|
2021-10-07 10:16:20 +03:00
|
|
|
return update_string(&settings->ProxyUsername, cnv.cc, len, cleanup);
|
2019-03-21 15:08:59 +03:00
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_RDP2TCPArgs:
|
2021-10-07 10:16:20 +03:00
|
|
|
return update_string(&settings->RDP2TCPArgs, cnv.cc, len, cleanup);
|
2019-03-21 15:08:59 +03:00
|
|
|
|
2022-02-02 01:23:34 +03:00
|
|
|
case FreeRDP_ReaderName:
|
|
|
|
return update_string(&settings->ReaderName, cnv.cc, len, cleanup);
|
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_RedirectionAcceptedCert:
|
2021-10-07 10:16:20 +03:00
|
|
|
return update_string(&settings->RedirectionAcceptedCert, cnv.cc, len, cleanup);
|
2020-04-11 12:55:11 +03:00
|
|
|
|
|
|
|
case FreeRDP_RedirectionDomain:
|
2021-10-07 10:16:20 +03:00
|
|
|
return update_string(&settings->RedirectionDomain, cnv.cc, len, cleanup);
|
2020-04-11 12:55:11 +03:00
|
|
|
|
|
|
|
case FreeRDP_RedirectionTargetFQDN:
|
2021-10-07 10:16:20 +03:00
|
|
|
return update_string(&settings->RedirectionTargetFQDN, cnv.cc, len, cleanup);
|
2020-04-11 12:55:11 +03:00
|
|
|
|
|
|
|
case FreeRDP_RedirectionTargetNetBiosName:
|
2021-10-07 10:16:20 +03:00
|
|
|
return update_string(&settings->RedirectionTargetNetBiosName, cnv.cc, len, cleanup);
|
2020-04-11 12:55:11 +03:00
|
|
|
|
|
|
|
case FreeRDP_RedirectionUsername:
|
2021-10-07 10:16:20 +03:00
|
|
|
return update_string(&settings->RedirectionUsername, cnv.cc, len, cleanup);
|
2020-04-11 12:55:11 +03:00
|
|
|
|
|
|
|
case FreeRDP_RemoteApplicationCmdLine:
|
2021-10-07 10:16:20 +03:00
|
|
|
return update_string(&settings->RemoteApplicationCmdLine, cnv.cc, len, cleanup);
|
2019-03-21 15:08:59 +03:00
|
|
|
|
|
|
|
case FreeRDP_RemoteApplicationFile:
|
2021-10-07 10:16:20 +03:00
|
|
|
return update_string(&settings->RemoteApplicationFile, cnv.cc, len, cleanup);
|
2019-03-21 15:08:59 +03:00
|
|
|
|
|
|
|
case FreeRDP_RemoteApplicationGuid:
|
2021-10-07 10:16:20 +03:00
|
|
|
return update_string(&settings->RemoteApplicationGuid, cnv.cc, len, cleanup);
|
2019-03-21 15:08:59 +03:00
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_RemoteApplicationIcon:
|
2021-10-07 10:16:20 +03:00
|
|
|
return update_string(&settings->RemoteApplicationIcon, cnv.cc, len, cleanup);
|
2020-04-11 12:55:11 +03:00
|
|
|
|
|
|
|
case FreeRDP_RemoteApplicationName:
|
2021-10-07 10:16:20 +03:00
|
|
|
return update_string(&settings->RemoteApplicationName, cnv.cc, len, cleanup);
|
2020-04-11 12:55:11 +03:00
|
|
|
|
|
|
|
case FreeRDP_RemoteApplicationProgram:
|
2021-10-07 10:16:20 +03:00
|
|
|
return update_string(&settings->RemoteApplicationProgram, cnv.cc, len, cleanup);
|
2019-03-21 15:08:59 +03:00
|
|
|
|
2019-05-22 17:36:40 +03:00
|
|
|
case FreeRDP_RemoteApplicationWorkingDir:
|
2021-10-07 10:16:20 +03:00
|
|
|
return update_string(&settings->RemoteApplicationWorkingDir, cnv.cc, len, cleanup);
|
2019-05-22 17:36:40 +03:00
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_RemoteAssistancePassStub:
|
2021-10-07 10:16:20 +03:00
|
|
|
return update_string(&settings->RemoteAssistancePassStub, cnv.cc, len, cleanup);
|
2019-03-21 15:08:59 +03:00
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_RemoteAssistancePassword:
|
2021-10-07 10:16:20 +03:00
|
|
|
return update_string(&settings->RemoteAssistancePassword, cnv.cc, len, cleanup);
|
2019-03-21 15:08:59 +03:00
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_RemoteAssistanceRCTicket:
|
2021-10-07 10:16:20 +03:00
|
|
|
return update_string(&settings->RemoteAssistanceRCTicket, cnv.cc, len, cleanup);
|
2020-04-11 12:55:11 +03:00
|
|
|
|
|
|
|
case FreeRDP_RemoteAssistanceSessionId:
|
2021-10-07 10:16:20 +03:00
|
|
|
return update_string(&settings->RemoteAssistanceSessionId, cnv.cc, len, cleanup);
|
2020-04-11 12:55:11 +03:00
|
|
|
|
|
|
|
case FreeRDP_ServerHostname:
|
2021-10-07 10:16:20 +03:00
|
|
|
return update_string(&settings->ServerHostname, cnv.cc, len, cleanup);
|
2020-04-11 12:55:11 +03:00
|
|
|
|
|
|
|
case FreeRDP_ShellWorkingDirectory:
|
2021-10-07 10:16:20 +03:00
|
|
|
return update_string(&settings->ShellWorkingDirectory, cnv.cc, len, cleanup);
|
2020-04-11 12:55:11 +03:00
|
|
|
|
2021-11-05 15:09:42 +03:00
|
|
|
case FreeRDP_SmartcardCertificate:
|
|
|
|
return update_string(&settings->SmartcardCertificate, cnv.cc, len, cleanup);
|
|
|
|
|
|
|
|
case FreeRDP_SmartcardPrivateKey:
|
|
|
|
return update_string(&settings->SmartcardPrivateKey, cnv.cc, len, cleanup);
|
|
|
|
|
2022-05-26 18:42:28 +03:00
|
|
|
case FreeRDP_SspiModule:
|
|
|
|
return update_string(&settings->SspiModule, cnv.cc, len, cleanup);
|
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_TargetNetAddress:
|
2021-10-07 10:16:20 +03:00
|
|
|
return update_string(&settings->TargetNetAddress, cnv.cc, len, cleanup);
|
2020-04-11 12:55:11 +03:00
|
|
|
|
2022-08-16 11:40:32 +03:00
|
|
|
case FreeRDP_TlsSecretsFile:
|
|
|
|
return update_string(&settings->TlsSecretsFile, cnv.cc, len, cleanup);
|
|
|
|
|
2021-09-23 15:52:03 +03:00
|
|
|
case FreeRDP_TransportDumpFile:
|
2021-10-07 10:16:20 +03:00
|
|
|
return update_string(&settings->TransportDumpFile, cnv.cc, len, cleanup);
|
2021-09-23 15:52:03 +03:00
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_Username:
|
2021-10-07 10:16:20 +03:00
|
|
|
return update_string(&settings->Username, cnv.cc, len, cleanup);
|
2020-04-11 12:55:11 +03:00
|
|
|
|
|
|
|
case FreeRDP_WindowTitle:
|
2021-10-07 10:16:20 +03:00
|
|
|
return update_string(&settings->WindowTitle, cnv.cc, len, cleanup);
|
2020-04-11 12:55:11 +03:00
|
|
|
|
|
|
|
case FreeRDP_WmClass:
|
2021-10-07 10:16:20 +03:00
|
|
|
return update_string(&settings->WmClass, cnv.cc, len, cleanup);
|
2019-07-15 11:08:39 +03:00
|
|
|
|
2019-03-21 15:08:59 +03:00
|
|
|
default:
|
2019-11-06 17:24:51 +03:00
|
|
|
WLog_ERR(TAG, "[%s] Invalid key index %" PRIuz, __FUNCTION__, id);
|
2019-03-21 15:08:59 +03:00
|
|
|
return FALSE;
|
|
|
|
}
|
|
|
|
return TRUE;
|
|
|
|
}
|
|
|
|
|
2020-11-19 12:09:34 +03:00
|
|
|
BOOL freerdp_settings_set_string_len(rdpSettings* settings, size_t id, const char* val, size_t len)
|
|
|
|
{
|
|
|
|
return freerdp_settings_set_string_(settings, id, val, len, TRUE);
|
|
|
|
}
|
|
|
|
|
2020-05-15 13:22:37 +03:00
|
|
|
BOOL freerdp_settings_set_string(rdpSettings* settings, size_t id, const char* val)
|
|
|
|
{
|
2020-11-19 12:09:34 +03:00
|
|
|
size_t len = 0;
|
|
|
|
if (val)
|
|
|
|
len = strlen(val);
|
|
|
|
return freerdp_settings_set_string_(settings, id, val, len, TRUE);
|
2020-05-15 13:22:37 +03:00
|
|
|
}
|
|
|
|
|
2022-01-20 13:12:36 +03:00
|
|
|
void* freerdp_settings_get_pointer_writable(rdpSettings* settings, size_t id)
|
2019-03-21 15:08:59 +03:00
|
|
|
{
|
2021-09-03 09:26:55 +03:00
|
|
|
WINPR_ASSERT(settings);
|
2019-03-21 15:08:59 +03:00
|
|
|
|
|
|
|
switch (id)
|
|
|
|
{
|
2020-02-12 14:01:27 +03:00
|
|
|
case FreeRDP_BitmapCacheV2CellInfo:
|
|
|
|
return settings->BitmapCacheV2CellInfo;
|
2019-03-21 15:08:59 +03:00
|
|
|
|
2020-02-12 14:01:27 +03:00
|
|
|
case FreeRDP_ChannelDefArray:
|
|
|
|
return settings->ChannelDefArray;
|
2019-11-07 14:39:22 +03:00
|
|
|
|
2020-02-12 14:01:27 +03:00
|
|
|
case FreeRDP_ClientAutoReconnectCookie:
|
|
|
|
return settings->ClientAutoReconnectCookie;
|
2019-11-07 14:39:22 +03:00
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_ClientRandom:
|
|
|
|
return settings->ClientRandom;
|
2019-03-21 15:08:59 +03:00
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_ClientTimeZone:
|
|
|
|
return settings->ClientTimeZone;
|
|
|
|
|
|
|
|
case FreeRDP_DeviceArray:
|
|
|
|
return settings->DeviceArray;
|
2019-03-21 15:08:59 +03:00
|
|
|
|
2020-02-12 14:01:27 +03:00
|
|
|
case FreeRDP_DynamicChannelArray:
|
|
|
|
return settings->DynamicChannelArray;
|
2019-03-21 15:08:59 +03:00
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_FragCache:
|
|
|
|
return settings->FragCache;
|
2019-03-21 15:08:59 +03:00
|
|
|
|
|
|
|
case FreeRDP_GlyphCache:
|
|
|
|
return settings->GlyphCache;
|
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_LoadBalanceInfo:
|
|
|
|
return settings->LoadBalanceInfo;
|
2019-03-21 15:08:59 +03:00
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_MonitorDefArray:
|
|
|
|
return settings->MonitorDefArray;
|
2019-03-21 15:08:59 +03:00
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_MonitorIds:
|
|
|
|
return settings->MonitorIds;
|
2019-03-21 15:08:59 +03:00
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_OrderSupport:
|
|
|
|
return settings->OrderSupport;
|
2020-02-12 14:01:27 +03:00
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_Password51:
|
|
|
|
return settings->Password51;
|
2020-02-12 14:01:27 +03:00
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_RdpServerCertificate:
|
|
|
|
return settings->RdpServerCertificate;
|
|
|
|
|
|
|
|
case FreeRDP_RdpServerRsaKey:
|
|
|
|
return settings->RdpServerRsaKey;
|
|
|
|
|
|
|
|
case FreeRDP_ReceivedCapabilities:
|
|
|
|
return settings->ReceivedCapabilities;
|
2020-02-12 14:01:27 +03:00
|
|
|
|
|
|
|
case FreeRDP_RedirectionPassword:
|
|
|
|
return settings->RedirectionPassword;
|
|
|
|
|
|
|
|
case FreeRDP_RedirectionTsvUrl:
|
|
|
|
return settings->RedirectionTsvUrl;
|
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_ServerAutoReconnectCookie:
|
|
|
|
return settings->ServerAutoReconnectCookie;
|
2020-02-12 14:01:27 +03:00
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_ServerCertificate:
|
|
|
|
return settings->ServerCertificate;
|
2020-02-12 14:01:27 +03:00
|
|
|
|
2020-04-11 12:55:11 +03:00
|
|
|
case FreeRDP_ServerRandom:
|
|
|
|
return settings->ServerRandom;
|
|
|
|
|
|
|
|
case FreeRDP_StaticChannelArray:
|
|
|
|
return settings->StaticChannelArray;
|
|
|
|
|
|
|
|
case FreeRDP_TargetNetAddresses:
|
|
|
|
return settings->TargetNetAddresses;
|
|
|
|
|
|
|
|
case FreeRDP_TargetNetPorts:
|
|
|
|
return settings->TargetNetPorts;
|
|
|
|
|
|
|
|
case FreeRDP_instance:
|
|
|
|
return settings->instance;
|
2019-03-21 15:08:59 +03:00
|
|
|
|
|
|
|
default:
|
2019-11-06 17:24:51 +03:00
|
|
|
WLog_ERR(TAG, "[%s] Invalid key index %" PRIuz, __FUNCTION__, id);
|
2019-03-21 15:08:59 +03:00
|
|
|
return FALSE;
|
|
|
|
}
|
|
|
|
}
|
2020-05-15 13:22:37 +03:00
|
|
|
|
|
|
|
BOOL freerdp_settings_set_pointer(rdpSettings* settings, size_t id, const void* val)
|
|
|
|
{
|
2021-10-07 10:16:20 +03:00
|
|
|
union
|
|
|
|
{
|
|
|
|
void* v;
|
|
|
|
const void* cv;
|
|
|
|
} cnv;
|
2021-09-03 09:26:55 +03:00
|
|
|
WINPR_ASSERT(settings);
|
2020-05-15 13:22:37 +03:00
|
|
|
|
2021-10-07 10:16:20 +03:00
|
|
|
cnv.cv = val;
|
|
|
|
|
2020-05-15 13:22:37 +03:00
|
|
|
switch (id)
|
|
|
|
{
|
|
|
|
case FreeRDP_BitmapCacheV2CellInfo:
|
2021-10-07 10:16:20 +03:00
|
|
|
settings->BitmapCacheV2CellInfo = cnv.v;
|
2020-05-15 13:22:37 +03:00
|
|
|
break;
|
|
|
|
|
|
|
|
case FreeRDP_ChannelDefArray:
|
2021-10-07 10:16:20 +03:00
|
|
|
settings->ChannelDefArray = cnv.v;
|
2020-05-15 13:22:37 +03:00
|
|
|
break;
|
|
|
|
|
|
|
|
case FreeRDP_ClientAutoReconnectCookie:
|
2021-10-07 10:16:20 +03:00
|
|
|
settings->ClientAutoReconnectCookie = cnv.v;
|
2020-05-15 13:22:37 +03:00
|
|
|
break;
|
|
|
|
|
|
|
|
case FreeRDP_ClientRandom:
|
2021-10-07 10:16:20 +03:00
|
|
|
settings->ClientRandom = cnv.v;
|
2020-05-15 13:22:37 +03:00
|
|
|
break;
|
|
|
|
|
|
|
|
case FreeRDP_ClientTimeZone:
|
2021-10-07 10:16:20 +03:00
|
|
|
settings->ClientTimeZone = cnv.v;
|
2020-05-15 13:22:37 +03:00
|
|
|
break;
|
|
|
|
|
|
|
|
case FreeRDP_DeviceArray:
|
2021-10-07 10:16:20 +03:00
|
|
|
settings->DeviceArray = cnv.v;
|
2020-05-15 13:22:37 +03:00
|
|
|
break;
|
|
|
|
|
|
|
|
case FreeRDP_DynamicChannelArray:
|
2021-10-07 10:16:20 +03:00
|
|
|
settings->DynamicChannelArray = cnv.v;
|
2020-05-15 13:22:37 +03:00
|
|
|
break;
|
|
|
|
|
|
|
|
case FreeRDP_FragCache:
|
2021-10-07 10:16:20 +03:00
|
|
|
settings->FragCache = cnv.v;
|
2020-05-15 13:22:37 +03:00
|
|
|
break;
|
|
|
|
|
|
|
|
case FreeRDP_GlyphCache:
|
2021-10-07 10:16:20 +03:00
|
|
|
settings->GlyphCache = cnv.v;
|
2020-05-15 13:22:37 +03:00
|
|
|
break;
|
|
|
|
|
|
|
|
case FreeRDP_LoadBalanceInfo:
|
2021-10-07 10:16:20 +03:00
|
|
|
settings->LoadBalanceInfo = cnv.v;
|
2020-05-15 13:22:37 +03:00
|
|
|
break;
|
|
|
|
|
|
|
|
case FreeRDP_MonitorDefArray:
|
2021-10-07 10:16:20 +03:00
|
|
|
settings->MonitorDefArray = cnv.v;
|
2020-05-15 13:22:37 +03:00
|
|
|
break;
|
|
|
|
|
|
|
|
case FreeRDP_MonitorIds:
|
2021-10-07 10:16:20 +03:00
|
|
|
settings->MonitorIds = cnv.v;
|
2020-05-15 13:22:37 +03:00
|
|
|
break;
|
|
|
|
|
|
|
|
case FreeRDP_OrderSupport:
|
2021-10-07 10:16:20 +03:00
|
|
|
settings->OrderSupport = cnv.v;
|
2020-05-15 13:22:37 +03:00
|
|
|
break;
|
|
|
|
|
|
|
|
case FreeRDP_Password51:
|
2021-10-07 10:16:20 +03:00
|
|
|
settings->Password51 = cnv.v;
|
2020-05-15 13:22:37 +03:00
|
|
|
break;
|
|
|
|
|
|
|
|
case FreeRDP_RdpServerCertificate:
|
2021-10-07 10:16:20 +03:00
|
|
|
settings->RdpServerCertificate = cnv.v;
|
2020-05-15 13:22:37 +03:00
|
|
|
break;
|
|
|
|
|
|
|
|
case FreeRDP_RdpServerRsaKey:
|
2021-10-07 10:16:20 +03:00
|
|
|
settings->RdpServerRsaKey = cnv.v;
|
2020-05-15 13:22:37 +03:00
|
|
|
break;
|
|
|
|
|
|
|
|
case FreeRDP_ReceivedCapabilities:
|
2021-10-07 10:16:20 +03:00
|
|
|
settings->ReceivedCapabilities = cnv.v;
|
2020-05-15 13:22:37 +03:00
|
|
|
break;
|
|
|
|
|
|
|
|
case FreeRDP_RedirectionPassword:
|
2021-10-07 10:16:20 +03:00
|
|
|
settings->RedirectionPassword = cnv.v;
|
2020-05-15 13:22:37 +03:00
|
|
|
break;
|
|
|
|
|
|
|
|
case FreeRDP_RedirectionTsvUrl:
|
2021-10-07 10:16:20 +03:00
|
|
|
settings->RedirectionTsvUrl = cnv.v;
|
2020-05-15 13:22:37 +03:00
|
|
|
break;
|
|
|
|
|
|
|
|
case FreeRDP_ServerAutoReconnectCookie:
|
2021-10-07 10:16:20 +03:00
|
|
|
settings->ServerAutoReconnectCookie = cnv.v;
|
2020-05-15 13:22:37 +03:00
|
|
|
break;
|
|
|
|
|
|
|
|
case FreeRDP_ServerCertificate:
|
2021-10-07 10:16:20 +03:00
|
|
|
settings->ServerCertificate = cnv.v;
|
2020-05-15 13:22:37 +03:00
|
|
|
break;
|
|
|
|
|
|
|
|
case FreeRDP_ServerRandom:
|
2021-10-07 10:16:20 +03:00
|
|
|
settings->ServerRandom = cnv.v;
|
2020-05-15 13:22:37 +03:00
|
|
|
break;
|
|
|
|
|
|
|
|
case FreeRDP_StaticChannelArray:
|
2021-10-07 10:16:20 +03:00
|
|
|
settings->StaticChannelArray = cnv.v;
|
2020-05-15 13:22:37 +03:00
|
|
|
break;
|
|
|
|
|
|
|
|
case FreeRDP_TargetNetAddresses:
|
2021-10-07 10:16:20 +03:00
|
|
|
settings->TargetNetAddresses = cnv.v;
|
2020-05-15 13:22:37 +03:00
|
|
|
break;
|
|
|
|
|
|
|
|
case FreeRDP_TargetNetPorts:
|
2021-10-07 10:16:20 +03:00
|
|
|
settings->TargetNetPorts = cnv.v;
|
2020-05-15 13:22:37 +03:00
|
|
|
break;
|
|
|
|
|
|
|
|
case FreeRDP_instance:
|
2021-10-07 10:16:20 +03:00
|
|
|
settings->instance = cnv.v;
|
2020-05-15 13:22:37 +03:00
|
|
|
break;
|
|
|
|
|
|
|
|
default:
|
|
|
|
WLog_ERR(TAG, "[%s] Invalid key index %" PRIuz, __FUNCTION__, id);
|
|
|
|
return FALSE;
|
|
|
|
}
|
|
|
|
return TRUE;
|
|
|
|
}
|