2.2.6 Device Capabilities (TSDEVICE_CAPABILITIES)

This structure is embedded inside other packets. It describes the resulting output when certain device capabilities are queried.


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

ReturnValue

ErrorCode

numBytes

Data (variable)

...

numBytes2

ReturnValue (4 bytes): A 32-bit unsigned integer. This field MUST contain a return code from the call to the printer driver that queries the device capability.

ErrorCode (4 bytes): A WIN32 error code for the call.

numBytes (2 bytes): A 16-bit unsigned integer. This field MUST contain the number of bytes in the Data field.

Data (variable): An array of 8-bit unsigned integers. This field MUST contain the data returned from the local printer driver call. This data is provided by the printer driver and is not in any way processed or examined by the Remote Desktop Protocol: XPS Print Virtual Channel Extension.

numBytes2 (2 bytes): A 16-bit unsigned integer. This field MUST contain the same value as the numBytes field.