Hardware Dev Center

GdiEndDocEMF function

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

Syntax


BOOL GdiEndDocEMF(
   HANDLE SpoolFileHandle
);

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.

Requirements

Target platform

Universal

Header

Winppi.h (include Winppi.h)

Library

Gdi32.Lib

DLL

Gdi32.dll

See also

GdiStartDocEMF

 

 

Send comments about this topic to Microsoft

Show:
© 2015 Microsoft