IRDPSRAPISharingSession::SetDesktopSharedRect method

Sets the desktop region that will be shared.

Syntax

HRESULT SetDesktopSharedRect(
  long left,
  long top,
  long right,
  long bottom
);

Parameters

left

Type: long

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

top

Type: long

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

right

Type: long

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

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

   
Windows version Windows Vista Windows Server 2008
Target Platform Windows
Header rdpencomapi.h
DLL RdpEncom.dll

See Also

IRDPSRAPISharingSession

IRDPSRAPISharingSession2