- Issues in using FindFirstPrinterChangeNotification and associated APIs.
- Posted by Pankaj on January 29th, 2007
Hi all,
I am trying to monitor a printer, with the help of
Find*PrinterChangeNotification API set. The following are my
observations:
1. Status notification is not received for any type of Print job, i.e
be it in EMF format or RAW format. In case of Status String
notification, the notification was there, but the pBuf was empty.
2. In case of print job with EMF data type, the Total Pages and
Printed pages data was received correctly. Same case for Total Bytes
and Printed Bytes. So, in this way it can be monitored for a EMF type
job that whether it has finished.
3. In case of print job with RAW format, Total pages was received with
correct values, but Printed Pages was always recieved with the value
0. Total Bytes was OK, but at the end of the print job, the Total
Bytes and Printed Bytes were different, the latter being lesser then
former. So, it doesn't help in determining that whether a print job is
finished or not.
Can some one please help me with the first and third points, how can
we get the status and status string for a print job and how to
ascertain that a RAW format print job is finished.
Thanks
Pankaj
- Posted by Pankaj on February 5th, 2007
On Jan 29, 6:11 pm, "Pankaj" <pnkjadla...@gmail.com> wrote:
Hi All:
Can some one please throw some light on this thing.
Thanks in advance.
regards
Pankaj
- Posted by Sten Westerback \(MVP SDK\) on February 5th, 2007
"Pankaj" <pnkjadlakha@gmail.com> wrote in message
news:1170676713.300589.259130@h3g2000cwc.googlegro ups.com...
Let's try...
Do print manager in windows show the pages approprately? If not, it's
probably just a matter of getting a printer driver that works properly. I
would guess some providers out there may choose to call
PartialReplyPrinterChangeNotification too often.
What i can't see is what you need to know if some uncontrolled print job has
finished. Anyway, checking for PRINTER_CHANGE_ADD_JOB and the corresponding
PRINTER_CHANGE_DELETE_JOB should tell you all you need. Additional
information should be extracted before PRINTER_CHANGE_DELETE_JOB or received
from GetPrinter.
- Sten
- COM APIs problem, Unable to intercept some APIs (Windows CE) by Ansh
- COM APIs problem, Unable to intercept some APIs (Development Resources) by Ansh
- NDIS APIs (Drivers) by ladyluck
- FindFirstPrinterChangeNotification - Error 122 (Drivers) by Marc Stoffel
- Undocumented APIs (Drivers) by Brett

