Bewerken

Delen via


ClosePrintProcessor function (winsplp.h)

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

Syntax

BOOL ClosePrintProcessor(
  [in, out] HANDLE hPrintProcessor
);

Parameters

[in, out] 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

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

See also

OpenPrintProcessor

PrintDocumentOnPrintProcessor