2.2.3.2.5 Server Devmode to Print Ticket Request (DEVMODE_TO_PRINT_TKT_REQ)

The DEVMODE_TO_PRINT_TKT_REQ server-to-client request is used to convert a DEVMODE BLOB into an XML-based print ticket.


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)

...

cbDevmodeIn

pDevmodeIn (variable)

...

PrintTicket (variable)

...

Header (variable): The common message header (as specified in section 2.2.1). The InterfaceId field MUST be set to 0x00000000. The FunctionId field MUST be set to DEVMODE_TO_PRINT_TKT_REQ (0x00000104).

cbDevmodeIn (4 bytes): A 32-bit unsigned integer. This value MUST be the number of bytes in the pDevmodeIn byte array field.

pDevmodeIn (variable): A DEVMODE BLOB, represented as an array of bytes. The content is generated by the printing subsystem and is treated as payload in this protocol.

PrintTicket (variable): A print ticket in XML_DOCUMENT format, that is updated with information from the pDevmodeIn BLOB. The content is generated by the printing subsystem and is treated as payload in this protocol.