IPrintOemUni::ResetPDEV method allows a rendering plug-in for Unidrv to reset its PDEV structure.
HRESULT ResetPDEV( PDEVOBJ pdevobjOld, PDEVOBJ pdevobjNew );
Caller-supplied pointer to a DEVOBJ structure containing current PDEV information.
Caller-supplied pointer to a DEVOBJ structure into which the method should place new PDEV information.
The method must return one of the following values.
||The operation succeeded.|
||The operation failed.|
If the operation fails, this method should call SetLastError.
A rendering plug-in for Unidrv must implement the
A rendering plug-in's
IPrintOemUni::ResetPDEV method performs the same types of operations as the DrvResetPDEV function that is exported by a printer graphics DLL. During the processing of an application's call to the Microsoft Windows SDK ResetDC function, the
IPrintOemUni::ResetPDEV method is called by the DrvResetPDEV function in Unidrv's printer graphics DLL. For more information about when DrvResetPDEV is called, see its description.
The rendering plug-in's private PDEV structure's address is contained in the pdevOEM member of the DEVOBJ structure pointed to by pdevobjOld. The
IPrintOemUni::ResetPDEV method should use relevant members of this old structure to fill in the new structure, which is referenced through pdevobjNew.
|Header||prcomoem.h (include Prcomoem.h)|