BOOL EndDocPrinter( HANDLE hPrinter /* handle of printer object */ );
Ends a print job for the specified printer.
hPrinter | Identifies the printer for which the print job should be ended. |
This function returns an error if the print job to be ended was not started by an earlier call to the StartDocPrinter function.