Muokkaa

Jaa


Add print ticket support to monolithic print drivers

Important

The modern print platform is Windows' preferred means of communicating with printers. 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 Modern print platform and the Print support app design guide.

For a monolithic print driver to provide Print Ticket support and support the Print Ticket and Print Capabilities Technologies, it must implement the IPrintTicketProvider interface and also provide the necessary IClassFactory interface support for the COM-style calling methods used by the print driver. At a minimum, the driver must support the methods of the IPrintTicketProvider interface that are called during the OpenPrinter call in the sequence shown below:

  1. GetSupportedVersions

  2. BindPrinter

  3. QueryDeviceNamespace

To complete the support for this interface, the print driver must support the rest of the methods of the IPrintTicketProvider interface:

GetPrintCapabilities

ConvertDevModeToPrintTicket

ConvertPrintTicketToDevMode

ValidatePrintTicket