BOOL PrintDocumentOnPrintProcessor(
HANDLE hPrintProcessor, | |
LPWSTR pDocumentName | |
); |
PrintDocumentOnPrintProcessor prints the document on the print processor.
Parameters
hPrintProcessor
Specifies the handle to the print processor.
pDocumentName
Points to the document name.
Return Value
The function returns TRUE if it is successful. Otherwise it returns FALSE, and the logged error can be retrieved by a call to GetLastError.
Comments
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.
See Also