GdiEndDocEMF - NtDoc

Native API online documentation, based on the System Informer (formerly Process Hacker) phnt headers
// winppi.h

BOOL GdiEndDocEMF(
  HANDLE SpoolFileHandle
);
View the official Windows Driver Kit DDI reference

NtDoc

No description available.

Windows Driver Kit DDI reference (nf-winppi-gdienddocemf)

GdiEndDocEMF function

Description

The GdiEndDocEMF function ends EMF playback operations for an EMF-formatted print job.

Parameters

SpoolFileHandle

Caller-supplied spool file handle, obtained by a previous call to GdiGetSpoolFileHandle.

Return value

If the operation succeeds, the function returns TRUE. Otherwise the function returns FALSE, and an error code can be obtained by calling GetLastError.

Remarks

The GdiEndDocEMF function is exported by gdi32.dll for use within a print processor's PrintDocumentOnPrintProcessor function.

The function performs operations that must be performed after a print job's EMF records have been played. The function calls the spooler's EndDoc function (described in the Microsoft Window SDK documentation), which in turn calls the printer driver's DrvEndDoc function.

For additional information, see Using GDI Functions in Print Processors.

See also

GdiStartDocEMF