BOOL PrintDocumentOnPrintProcessor(
HANDLE hPrintProcessor, | |
LPWSTR pDocumentName | |
); |
PrintDocumentOnPrintProcessor prints the document on the print processor.
The function returns TRUE if it is successful. Otherwise it returns FALSE, and the logged error can be retrieved by a call to GetLastError.
PrintDocumentOnPrintProcessor is the heart of any print processor implementation. It calls OpenPrinter to get a handle to the document, sends the document handle with ReadPrinter, and calls WritePrinter to write the data. The function returns when the document is completely interpreted or canceled.