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.
|
|
|
|
|
|
|
|
|
|
1 |
|
|
|
|
|
|
|
|
|
2 |
|
|
|
|
|
|
|
|
|
3 |
|
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
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
CAP_PRINTER_TYPE
0x0002
CAP_PORT_TYPE
0x0003
CAP_DRIVE_TYPE
0x0004
CAP_SMARTCARD_TYPE
0x0005
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.