共用方式為


IMsRdpClient9::UpdateSessionDisplaySettings method

Updates session display settings.

Syntax

HRESULT UpdateSessionDisplaySettings(
  [in] ULONG ulDesktopWidth,
  [in] ULONG ulDesktopHeight,
  [in] ULONG ulPhysicalWidth,
  [in] ULONG ulPhysicalHeight,
  [in] ULONG ulOrientation,
  [in] ULONG ulDesktopScaleFactor,
  [in] ULONG ulDeviceScaleFactor
);

Parameters

  • ulDesktopWidth [in]
    Desktop width.

  • ulDesktopHeight [in]
    Desktop height.

  • ulPhysicalWidth [in]
    Physical width.

  • ulPhysicalHeight [in]
    Physical height.

  • ulOrientation [in]
    Orientation

  • ulDesktopScaleFactor [in]
    Desktop scale factor.

  • ulDeviceScaleFactor [in]
    Device scale factor.

Return value

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

Requirements

Minimum supported client

Windows 8.1

Minimum supported server

Windows Server 2012 R2

Type library

MsTscAx.dll

DLL

MsTscAx.dll

IID

CLSID_MsRdpClient9 is defined as 301B94BA-5D25-4A12-BFFE-3B6E7A616585

CLSID_MsRdpClient9NotSafeForScripting is defined as 8B918B82-7985-4C24-89DF-C33AD2BBFBCD

IID_IMsRdpClient9 is defined as 28904001-04B6-436C-A55B-0AF1A0883DC9

See also

IMsRdpClient9

IMsRdpClient10