问题
Using the FindNextPrinterChangeNotification function from a native C application, it works as expected when using a local printer.
I.e. when being printed, the FindNextPrinterChangeNotification
function correctly returns the handle of a printer job that is being printed to a local printer.
However, when printing to an IPP printer (i.e. a printer that connects through the Internet Printing Protocol), the FindNextPrinterChangeNotification
function call fails and GetLastError()
returns ERROR_INVALID_HANDLE
.
Others seem to have the same issue with no solution so far.
So my question is:
Are you aware on how/whether to successfully use printer job notifications (in contrast to manually polling for new jobs) on IPP printers?
(I'm using Microsoft's PrintMon tool for testing)
来源:https://stackoverflow.com/questions/9705842/using-findnextprinterchangenotification-fails-on-ipp-printers