IPrintOemUI::PrinterEvent method allows a user interface plug-in to process printer events.
HRESULT PrinterEvent( PWSTR pPrinterName, INT iDriverEvent, DWORD dwFlags, LPARAM lParam );
Caller-supplied pointer to a NULL-terminated printer name string. The string can identify a local printer ("PrinterName") or remote printer ("\Machine<i>PrinterName").
Caller-supplied value identifying the event that has occurred. For a list of valid values, see DrvPrinterEvent.
Caller-supplied flags. For a list of valid flags, see DrvPrinterEvent.
Caller-supplied event-specific parameter. For more information, see DrvPrinterEvent.
The method must return one of the following values.
||The operation succeeded.|
||The operation failed.|
||The method is not implemented.|
A user interface plug-in's
IPrintOemUI::PrinterEvent method performs the same types of operations as the DrvPrinterEvent function that is exported by user-mode printer interface DLLs. For information about printer events and how they should be processed, see the description of the DrvPrinterEvent function.
If you provide a user interface plug-in, the printer driver's DrvPrinterEvent function calls the
IPrintOemUI::PrinterEvent method. The DrvPrinterEvent function performs its own processing for the specified event, and then calls the
IPrintOemUI::PrinterEvent method to handle additional processing of the event.
IPrintOemUI::PrinterEvent methods are exported by multiple user interface plug-ins, the methods are called in the order that the plug-ins are specified for installation.
For more information about creating and installing user interface plug-ins, see Customizing Microsoft's Printer Drivers.
|Header||prcomoem.h (include Prcomoem.h)|