2.2.3.2.3 Server Print Ticket to Devmode Request (PRINT_TKT_TO_DEVMODE_REQ)
A PRINT_TKT_TO_DEVMODE_REQ request, flowing from the server to the client, is a request to convert an XML-based print ticket to a DEVMODE binary large object (BLOB).
|
|
|
|
|
|
|
|
|
|
1 |
|
|
|
|
|
|
|
|
|
2 |
|
|
|
|
|
|
|
|
|
3 |
|
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Header (variable) |
|||||||||||||||||||||||||||||||
... |
|||||||||||||||||||||||||||||||
PrintTicket (variable) |
|||||||||||||||||||||||||||||||
... |
|||||||||||||||||||||||||||||||
cbDevmodeIn |
|||||||||||||||||||||||||||||||
pDevmodeIn (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 PRINT_TKT_TO_DEVMODE_REQ (0x00000103).
PrintTicket (variable): A print ticket in XML_DOCUMENT format to be converted into a DEVMODE BLOB. The content is treated as payload in this protocol.
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 structure sent as an array of bytes. The content is generated by the printing subsystem and is treated as payload in this protocol.