OpenPrinter
Windows Driver Kit: Print Devices
OpenPrinter

When a print queue is opened (by using the OpenPrinter function), the print driver is loaded and the following methods of the IPrintTicketProvider interface are called in this order:

  1. IPrintTicketProvider::GetSupportedVersions
  2. IPrintTicketProvider::BindPrinter
  3. IPrintTicketProvider::QueryDeviceNamespace

The methods of the IPrintTicketProvider interface in a Unidrv or PScript5 print driver call the IPrintOemPrintTicketProvider methods of the each plug-in hosted by the driver. The following illustration and list show how these calls are made when OpenPrinter is called.

Aa907473.ptpcopen-uml(en-us,MSDN.10).gif

OpenPrinter calling sequence

  1. For each plug-in, call IPrintOemPrintTicketProvider::GetSupportedVersions.
  2. For each plug-in, call IPrintOemPrintTicketProvider::BindPrinter.
  3. For each plug-in, call IPrintOemPrintTicketProvider::QueryDeviceDefaultNamespace.


Send feedback on this topic
Built on November 19, 2009
© 2009 Microsoft Corporation. All rights reserved.   Terms of Use | Trademarks | Privacy Statement
Page view tracker
Rate the Lightweight library
x
Lightweight builds on ScriptFree (loband) by adding features you've requested: a SearchBox and default code language selection.
Do you like the SearchBox?
Do you like the tabbed code blocks?
How useful is this topic?
Tell us more.
Thanks
x
You're helping to improve MSDN Online.
Feedback
Switch View
Classic
Lightweight Beta
ScriptFree
Switch View