共用方式為


IMsRdpClientShell::SetRdpProperty method

Specifies a value of a single Remote Desktop Protocol (RDP) property from an RDP configuration file or from RDP file content.

Syntax

HRESULT SetRdpProperty(
  [in] BSTR    szProperty,
  [in] VARIANT Value
);

Parameters

  • szProperty [in]
    Specifies the well-known RDP property name.

  • Value [in]
    Specifies a value of the RDP property name.

Return value

If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Requirements

Minimum supported client

Windows Vista

Minimum supported server

Windows Server 2008

Type library

MsTscAx.dll

DLL

MsTscAx.dll

IID

IID_IMsRdpClientShell is defined as d012ae6d-c19a-4bfe-b367-201f8911f134

See also

IMsRdpClientShell