ClosePrintProcessor - NtDoc

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

BOOL ClosePrintProcessor(
  [in, out] HANDLE hPrintProcessor
);
View the official Windows Driver Kit DDI reference

NtDoc

No description available.

Windows Driver Kit DDI reference (nf-winsplp-closeprintprocessor)

ClosePrintProcessor function

Description

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

Parameters

hPrintProcessor [in, out]

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.

See also

OpenPrintProcessor

PrintDocumentOnPrintProcessor