ValidatePrintTicket overview

Important

We recommend that you use Microsoft's IPP inbox class driver, along with Print Support Apps (PSA), to customize the print experience in Windows 10 and 11 for printer device development.

For more information, see the Print support app design guide.

Unidrv and PScript5 print drivers validate the PrintTicket by using the sequence that the following illustration and list show.

diagram illustrating how the unidrv and pscript5 print drivers validate the print ticket.

  1. For each plug-in, call the IPrintOemPrintTicketProvider::ExpandIntentOptions method.

  2. Call the IPrintOemPrintTicketProvider::ConvertPrintTicketToDevMode method.

  3. For each plug-in, call IPrintOemPrintTicketProvider::ConvertPrintTicketToDevMode to convert the private portions of the DEVMODEW structure.

  4. Validate public and private parts of the DEVMODEW structure that the Unidrv or PScript5 print driver supports.

  5. For each plug-in, validate the private parts of the DEVMODEW structure.

  6. Call the IPrintTicketProvider::ConvertPrintTicketToDevMode method.

  7. For each plug-in, call the IPrintOemPrintTicketProvider::ConvertDevModeToPrintTicket method to convert the private portions of the DEVMODEW structure.

  8. For each plug-in, call the IPrintOemPrintTicketProvider::ValidatePrintTicket method to validate the PrintTicket.