2.2.3.2.8 Client Print Caps Response (PRINT_CAPS_RSP)

The PRINT_CAPS_RSP response message returns client print capabilities in response to a PRINT_CAPS_REQ message.


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

Header (variable)

...

is_null_flag

Capabilities (variable)

...

Result

Header (variable): The common message header (as specified in section 2.2.1). The InterfaceId field and the MessageId field in this message header MUST contain the same values as the InterfaceId and MessageId fields in the corresponding PRINT_CAPS_REQ request message.

is_null_flag (1 byte): An 8-bit unsigned integer. This field determines whether the following optional Capabilities field is present. is_null_flag MUST be one of the following values.

Value

Meaning

0x00

Capabilities field is present.

0x01

Capabilities field is not present.

Capabilities (variable): This field describes the requested printer capabilities in XML_DOCUMENT format returned by the client printer driver. The content is treated as payload in this protocol.

Result (4 bytes): An HRESULT that describes the result of the call.