The printer driver's DrvDriverEvent function calls a user interface plug-in's
IPrintOemUI::DriverEvent method for additional processing of printer driver events.
HRESULT DriverEvent( DWORD dwDriverEvent, DWORD dwLevel, LPBYTE pDriverInfo, LPARAM lParam );
Caller-supplied bit flag indicating the event that has occurred. Valid flags are listed in the following table.
|DRIVER_EVENT_DELETE||The driver is being removed.|
|DRIVER_EVENT_INITIALIZE||The driver has just been installed.|
Caller-supplied value indicating the type of structure pointed to by the pDriverInfo parameter, as indicated in the following table.
|dwLevel Value||Structure pointed to by pDriverInfo|
The DRIVER_INFO_N structures are described in the Microsoft Windows SDK documentation.
Caller-supplied pointer to a structure whose type is identified by the dwLevel parameter.
Caller-supplied flags. See the following Remarks section.
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::DriverEvent method performs the same types of operations as the DrvDriverEvent function that is exported by user-mode printer interface DLLs. For information about driver events and how they should be processed, see the description of the DrvDriverEvent function.
If you provide a user interface plug-in, the printer driver's DrvDriverEvent function calls the
IPrintOemUI::DriverEvent method. The DrvDriverEvent function performs its own processing for the specified event, and then calls the
IPrintOemUI::DriverEvent method to handle additional processing of the event.
IPrintOemUI::DriverEvent 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)|