// winsplp.h
BOOL ClosePrintProcessor(
[in, out] HANDLE hPrintProcessor
);
View the official Windows Driver Kit DDI referenceNo description available.
A print processor's ClosePrintProcessor function completes the printing of a print job and makes the associated handle invalid.
hPrintProcessor [in, out]Caller-supplied print processor handle. This is the handle returned by a previous call to OpenPrintProcessor.
If the operation succeeds, the function should return TRUE. If the operation fails, the function should call SetLastError to set an error code, and then return FALSE.
Print processors are required to export a ClosePrintProcessor function. The spooler calls the function after the print processor's PrintDocumentOnPrintProcessor returns. The function should free all resources that were allocated by the OpenPrintProcessor function.