2.2.1.2 Capability Header (CAPABILITY_HEADER)

This is a header that is embedded in the Server Core Capability Request and Client Core Capability Response. The purpose of this header is to describe capabilities for different device types.


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

CapabilityType

CapabilityLength

Version

CapabilityType (2 bytes): A 16-bit unsigned integer that identifies the type of capability being described. It MUST be set to one of the following values.

Value

Meaning

CAP_GENERAL_TYPE

0x0001

General capability set (GENERAL_CAPS_SET)

CAP_PRINTER_TYPE

0x0002

Print capability set (PRINTER_CAPS_SET)

CAP_PORT_TYPE

0x0003

Port capability set (PORT_CAPS_SET)

CAP_DRIVE_TYPE

0x0004

Drive capability set (DRIVE_CAPS_SET)

CAP_SMARTCARD_TYPE

0x0005

Smart card capability set (SMARTCARD_CAPS_SET)<2>

CapabilityLength (2 bytes): A 16-bit unsigned integer that specifies that size, in bytes, of the capability message, this header included.

Version (4 bytes): A 32-bit unsigned integer that specifies the capability-specific version for the specific value of CapabilityType, as described in the table that follows.

CapabilityType Value

Version Value(s)

Meaning

CAP_GENERAL_TYPE

GENERAL_CAPABILITY_VERSION_01

0x00000001

GENERAL_CAPABILITY_VERSION_02

0x00000002

See section 2.2.2.7.1.

CAP_PRINTER_TYPE

PRINT_CAPABILITY_VERSION_01

0x00000001

Version 1 of printing capabilities.

CAP_PORT_TYPE

PORT_CAPABILITY_VERSION_01

0x00000001

Version 1 of port capabilities.

CAP_DRIVE_TYPE

DRIVE_CAPABILITY_VERSION_01

0x00000001

DRIVE_CAPABILITY_VERSION_02

0x00000002

If the client supports DRIVE_CAPABILITY_VERSION_02, then the drive name of the redirected device can be specified by the DeviceData field of a DEVICE ANNOUNCE header, as specified in the DeviceAnnounce field description of the Client Device List Announce message (section 2.2.3.1).

CAP_SMARTCARD_TYPE

SMARTCARD_CAPABILITY_VERSION_01

0x00000001

Version 1 of smart card capabilities.