Adding New Property Sheet Pages
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.
If you want to add new pages to the property sheets provided by the printer interface to Unidrv or Pscript5, your UI plug-in must implement the following IPrintOemUI methods:
IPrintOemUI::DevicePropertySheets
Used to add to the printer property sheet, which is displayed when a user selects the Properties menu item from the printer folder or a printer window, or when an application calls the PrinterProperties function (described in the Windows SDK documentation).
IPrintOemUI::DocumentPropertySheets
Used to add pages to the document property sheet, which is displayed when a user selects the Printer Preferences menu item from the printer folder or a printer window, or when an application calls the DocumentProperties or AdvancedDocumentProperties functions (described in the Windows SDK documentation).
If you implement one of these methods, you will typically also supply a _CPSUICALLBACK-typed callback function to handle user modifications. This callback function must call IPrintOemDriverUI::DrvUpdateUISetting to inform the driver when the value associated with a user interface setting has been modified, if the setting's value is stored in the driver's DEVMODEW structure or registry keys.