BindPrinter
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.
The IPrintTicketProvider::BindPrinter method binds a printer or print queue to a specific version of the Print Ticket schema. This enables the core driver to associate a set of private namespace URIs with a device.
Binding to a device enables the provider to cache certain objects and handles that it will use to perform future Print Ticket or device capabilities services for that device.
The IPrintTicketProvider::BindPrinter method is guaranteed to be called only once for each IPrintTicketProvider instance.
The following sample code illustrates the method's arguments.
STDMETHODIMP
CPrintTicketProvider::
BindPrinter( THIS_ HANDLE hPrinter,
INT version,
PSHIMOPTS pOptions,
DWORD *pDevModeFlags,
INT *pcNamespaces,
BSTR **ppNamespaces)
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for