The OEMCUIPPARAM structure is used as an input parameter to a user interface plug-in's IPrintOemUI::CommonUIProp method.
Syntax
The Add Driver or Add Printer wizards stop responding, either when you try to install the driver by using Devices and Printers, or by using the Print Management Console. This behavior may occur if you install the service pack or hotfix package on a server that has many Unidrv-based Printer Control Language (PCL) printer drivers. Download unidrv.dll Unidrv Printer Driver version 0.3.7100.0 32bit. Download DLL, OCX and VXD files for windows for free. Several thouthands files available. For example, you install a Windows service pack, an update rollup package, or a third-party printer driver. This issue occurs because the newer version of Unidrv.dll triggers an update of the existing print queues. This update process initiates a driver upgrade that adds a registry value to the print queue that uses the in-box driver.
Members
cbSize
Size of the OEMCUIPPARAM structure. Supplied by the Unidrv or Pscript5 driver.
poemuiobj
Pointer to an OEMUIOBJ structure.
hPrinter
Handle to the printer. Supplied by the Unidrv or Pscript5 driver.
pPrinterName
String containing the printer name. Supplied by the Unidrv or Pscript5 driver.
hModule
Handle to the user interface plug-in. Supplied by the Unidrv or Pscript5 driver.
hOEMHeap
Handle to a heap from which space can be allocated by calling the HeapAlloc function (described in the Microsoft Windows SDK documentation). Supplied by the Unidrv or Pscript5 driver.
pPublicDM
Pointer to the printer's public DEVMODEW structure. Valid only if the IPrintOemUI::CommonUIProp method's dwMode argument is OEMCUIP_DOCPROP. Supplied by the Unidrv or Pscript5 driver.
pOEMDM
Pointer to the user interface plug-in's private DEVMODEW members. Valid only if the IPrintOemUI::CommonUIProp method's dwMode argument is OEMCUIP_DOCPROP. Supplied by the Unidrv or Pscript5 driver.
dwFlags
For calls to IPrintOemUI::CommonUIProp with its dwMode parameter set to OEMCUIP_DOCPROP:
Contains the contents of the fMode member of the DOCUMENTPROPERTYHEADER structure received by the printer driver's DrvDocumentPropertySheets function.
For calls to IPrintOemUI::CommonUIProp with its dwMode parameter set to OEMCUIP_PRNPROP:
Contains the contents of the Flags member of the DEVICEPROPERTYHEADER structure received by the printer driver's DrvDevicePropertySheets function.
pDrvOptItems
Pointer to the printer driver's OPTITEM array. Not valid the first time IPrintOemUI::CommonUIProp is called. Supplied by the Unidrv or Pscript5 driver.
cDrvOptItems
Count of OPTITEM structures in the array pointed to by pDrvOptItems. Supplied by the Unidrv or Pscript5 driver.
pOEMOptItems
Pointer to an array of OPTITEM structures. Supplied by IPrintOemUI::CommonUIProp caller. The second time the IPrintOemUI::CommonUIProp method is called, it must place OPTITEM structures defined by the user interface plug-in in this array, and it must place the structure count in cOEMOptItems. For each OPTITEM structure placed in the array, you must do the following:
- Set the OPTITEM structure's DMPubID member either to one of the predefined values or to a value greater than DMPUB_USER. If you use any predefined values, you must search through the entire OPTITEM array for structures already containing those values, and you must set their OPTIF_HIDE flags.
- Allocate space for OPTTYPES and OPTPARAMS structures by calling the Windows SDK HeapAlloc function, using the handle contained in the OEMCUIPPARAM structure's hOEMHeap member. The printer driver deallocates this space when it is no longer needed.
All Hp Printer Driver Download
IPrintOemUI::CommonUIProp is called.Unidrv Dll
cOEMOptItems
Count of OPTITEM structures contained in the array pointed by pOEMOptItems. Supplied by the Unidrv or Pscript5 driver.
The first time the IPrintOemUI::CommonUIProp method is called, the caller-supplied value for cOEMOptItems is zero. The IPrintOemUI::CommonUIProp method must change this value to indicate the number of OPTITEM structures that the method supplies. The second time it is called, IPrintOemUI::CommonUIProp must supply the number of OPTITEM structures actually added to the array pointed to by pOEMOptItems.
pOEMUserData
Used by the IPrintOemUI::CommonUIProp method, the second time it is called, to provide the OEMCUIPCallback function with optional extra input information.
OEMCUIPCallback
Used by the IPrintOemUI::CommonUIProp method, the second time it is called, to return the address of a callback function of type OEMCUIPCALLBACK.
Remarks
A user interface plug-in receives this structure's address as an input argument to both its IPrintOemUI::CommonUIProp method and its OEMCUIPCALLBACK-typed callback function.
For additional information about the use of this structure and associated functions, see User Interface Plug-Ins.
Requirements
Header | printoem.h (include Printoem.h) |