// printoem.h
typedef struct _OEMDMPARAM {
DWORD cbSize;
PVOID pdriverobj;
HANDLE hPrinter;
HANDLE hModule;
PDEVMODE pPublicDMIn;
PDEVMODE pPublicDMOut;
PVOID pOEMDMIn;
PVOID pOEMDMOut;
DWORD cbBufSize;
} OEMDMPARAM, *POEMDMPARAM;
View the official Windows Driver Kit DDI referenceNo description available.
The OEMDMPARAM structure is used as an input parameter to the IPrintOemUI::DevMode, IPrintOemUni::DevMode, and IPrintOemPS::DevMode methods.
cbSizeContains the size of the OEMDMPARAM structure. Supplied by the Unidrv or Pscript5 driver.
pdriverobjNot used.
Pointer to a DEVOBJ structure.
hPrinterHandle to the printer device. Supplied by the Unidrv or Pscript5 driver.
hModuleHandle to the user interface plug-in module. Supplied by the Unidrv or Pscript5 driver.
pPublicDMInPointer to the printer device's public DEVMODEW structure. Supplied by the Unidrv or Pscript5 driver. (Valid if the DevMode method's dwMode value is OEMDM_DEFAULT, OEMDM_CONVERT, or OEMDM_MERGE.)
pPublicDMOutPointer to a location to receive public DEVMODEW structure contents. Supplied by the Unidrv or Pscript5 driver. (Valid if the DevMode method's dwMode value is OEMDM_CONVERT or OEMDM_MERGE.)
pOEMDMInPointer to a set of private DEVMODEW members. Supplied by the Unidrv or Pscript5 driver. (Valid if the DevMode method's dwMode value is OEMDM_CONVERT or OEMDM_MERGE.)
pOEMDMOutPointer to memory allocated to receive modified private DEVMODEW contents. Supplied by the Unidrv or Pscript5 driver. (Valid if the DevMode method's dwMode value is OEMDM_DEFAULT, OEMDM_CONVERT or OEMDM_MERGE.)
cbBufSizeOn input, contains the caller-supplied size of memory space pointed to by pOEMDMOut. (Not valid if the DevMode method's dwMode value is OEMDM_SIZE.)
On output, contains the method-supplied size of the current version of the private DEVMODEW section. (Only used if the DevMode method's dwMode value is OEMDM_SIZE.)
For more information about the use of OEMDMPARAM structure members, see the description of the IPrintOemUI::DevMode method.