// winppi.h
BOOL GdiResetDCEMF(
HANDLE SpoolFileHandle,
PDEVMODEW pCurrDM
);
View the official Windows Driver Kit DDI referenceNo description available.
The GdiResetDCEMF function resets a printer's device context during playback of a spooled EMF print job.
SpoolFileHandleCaller-supplied spool file handle, obtained by a previous call to GdiGetSpoolFileHandle.
pCurrDMCaller-supplied pointer to a DEVMODEW structure, obtained by a previous call to GdiGetDevmodeForPage.
If the operation succeeds, the function returns TRUE. Otherwise the function returns FALSE.
The GdiResetDCEMF function is exported by gdi32.dll for use within a print processor's PrintDocumentOnPrintProcessor function.
Print processors must call GdiResetDCEMF whenever it is necessary to reset the printer's device context. The function must be called whenever the GdiGetDevmodeForPage function indicates that the current document page's DEVMODEW structure is not identical to that of the previous document page.
For additional information, see Using GDI Functions in Print Processors.