Returning Printer-Specific Information

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.

GDI sometimes requests a printer graphics DLL to return printer-specific information in between print jobs, by calling such DrvQuery-prefixed graphics DDI functions as DrvQueryAdvanceWidths (if defined by the graphics DLL).

An example of when this might occur is the case of a word processing application that is maintaining a WYSIWYG screen display of a printable page. To correctly display the line breaks in text, the word processor must base line-fitting calculations on character widths and other font metrics from the selected printer's implementation of a font.