Compartilhar via


2.2.1.3.10.1 Monitor Attributes (TS_MONITOR_ATTRIBUTES)

The TS_MONITOR_ATTRIBUTES packet describes extended attributes of a client-side display monitor.


0


1


2


3


4


5


6


7


8


9

1
0


1


2


3


4


5


6


7


8


9

2
0


1


2


3


4


5


6


7


8


9

3
0


1

physicalWidth

physicalHeight

orientation

desktopScaleFactor

deviceScaleFactor

physicalWidth (4 bytes): A 32-bit, unsigned integer. The physical width of the monitor, in millimeters (mm). This value MUST be ignored if it is less than 10 mm or greater than 10,000 mm or physicalHeight is less than 10 mm or greater than 10,000 mm.

physicalHeight (4 bytes): A 32-bit, unsigned integer. The physical height of the monitor, in millimeters. This value MUST be ignored if it is less than 10 mm or greater than 10,000 mm or physicalWidth is less than 10 mm or greater than 10,000 mm.

orientation (4 bytes): A 32-bit, unsigned integer. The orientation of the monitor, in degrees. This value MUST be ignored if it is invalid.

Value

Meaning

ORIENTATION_LANDSCAPE

0

The desktop is not rotated.

ORIENTATION_PORTRAIT

90

The desktop is rotated clockwise by 90 degrees.

ORIENTATION_LANDSCAPE_FLIPPED

180

The desktop is rotated clockwise by 180 degrees.

ORIENTATION_PORTRAIT_FLIPPED

270

The desktop is rotated clockwise by 270 degrees.

desktopScaleFactor (4 bytes): A 32-bit, unsigned integer. The desktop scale factor of the monitor. This value MUST be ignored if it is less than 100% or greater than 500% or deviceScaleFactor is not 100%, 140% or 180%.

deviceScaleFactor (4 bytes): A 32-bit, unsigned integer. The device scale factor of the monitor. This value MUST be ignored if it is not set to 100%, 140%, or 180% or desktopScaleFactor is less than 100% or greater than 500%.<14>