ClosePrintProcessor function

A print processor's ClosePrintProcessor function completes the printing of a print job and makes the associated handle invalid.

Syntax

BOOL ClosePrintProcessor(
  HANDLE hPrintProcessor
);

Parameters

hPrintProcessor

Caller-supplied print processor handle. This is the handle returned by a previous call to OpenPrintProcessor.

Return Value

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.

Remarks

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.

Requirements

   
Target Platform Desktop
Header winsplp.h (include Winsplp.h)
Library Nwprint.lib

See Also

OpenPrintProcessor

PrintDocumentOnPrintProcessor