GetPrintCapabilities
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.
The IPrintTicketProvider::GetPrintCapabilities method must return a valid PrintCapabilities document. For a basic implementation, the document can be very simple however the print driver can't support any features in a Print Ticket that aren't exposed in the PrintCapabilities document. As you add print ticket support to your print driver, you'll need to return to this routine and add those features to the PrintCapabilities document.
The system doesn't provide any default PrintCapabilities document even for the features that the system provides through the DEVMODE-to-PrintTicket conversion. The print driver must create and return the corresponding PrintCapabilities document.