IRDPSRAPISharingSession::SetDesktopSharedRect 方法 (rdpencomapi.h)

设置将共享的桌面区域。

语法

HRESULT SetDesktopSharedRect(
  [in] long left,
  [in] long top,
  [in] long right,
  [in] long bottom
);

参数

[in] left

类型: long

共享矩形左上角的 X 坐标。

[in] top

类型: long

共享矩形左上角的 Y 坐标。

[in] right

类型: long

共享矩形右下角的 X 坐标。

[in] bottom

类型: long

共享矩形右下角的 Y 坐标。

返回值

类型: HRESULT

如果该方法成功,则 返回值S_OK。 否则,返回值为错误代码。

要求

要求
最低受支持的客户端 Windows Vista
最低受支持的服务器 Windows Server 2008
目标平台 Windows
标头 rdpencomapi.h
DLL RdpEncom.dll

另请参阅

IRDPSRAPISharingSession

IRDPSRAPISharingSession2