// winppi.h
BOOL GdiDeleteSpoolFileHandle(
HANDLE SpoolFileHandle
);
View the official Windows Driver Kit DDI referenceNo description available.
The GdiDeleteSpoolFileHandle function releases a spool file handle.
SpoolFileHandleCaller-supplied spool file handle, obtained by a previous call to GdiGetSpoolFileHandle.
If the operation succeeds, the function returns TRUE. Otherwise the function returns FALSE.
The GdiDeleteSpoolFileHandle function is exported by gdi32.dll for use within a print processor's PrintDocumentOnPrintProcessor function.
Print processors should call GdiDeleteSpoolFileHandle after calling GdiEndDocEMF, when processing a print job's EMF data stream has been completed. The function calls ClosePrinter (described in the Microsoft Window SDK documentation) to close the printer connection.
For additional information, see Using GDI Functions in Print Processors.