IRDPSRAPISharingSession::SetDesktopSharedRect method (rdpencomapi.h)

Sets the desktop region that will be shared.

Syntax

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

Parameters

[in] left

Type: long

X-coordinate of the upper-left corner of the shared rectangle.

[in] top

Type: long

Y-coordinate of the upper-left corner of the shared rectangle.

[in] right

Type: long

X-coordinate of the lower-right corner of the shared rectangle.

[in] bottom

Type: long

Y-coordinate of the lower-right corner of the shared rectangle.

Return value

Type: HRESULT

If the method succeeds, the return value is S_OK. Otherwise, the return value is an error code.

Requirements

Requirement Value
Minimum supported client Windows Vista
Minimum supported server Windows Server 2008
Target Platform Windows
Header rdpencomapi.h
DLL RdpEncom.dll

See also

IRDPSRAPISharingSession

IRDPSRAPISharingSession2