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