Volodymyr Shcherbyna
2011-03-11 14:18:01 UTC
Hello everyone,
I am trying to monitor printer spooler notification as described in
Microsoft KB 196805: "PrintMon.exe Demonstrates the Win32 Spooler
API".
PrintMon tool from article is working good in most of the cases.
However, I've noticed that it does not work in case of network shared
printers. In order to reproduce the problem, one has to do the
following:
1. Share printer C on machine A
2. From machine B connect to machine A and "Connect" to printer C
3. Disable firewalls on machines B and A
4. Try to print test page. Make sure it works
5. Fire up PrintMon on machine B and select printer C
6. Try to print something and observe no notifications
PrintMon reports error "FindNextPrinterChangeNotification" and if I
debug it, I see that GetLastError() returns 6.
Is there any KB describing this problem or any solution to it?
P.S: Machine A is Windows Server 2003, and machine B is Windows 7 x32
Ultimate, but it actually happens on all machines.
Thank you for any information,
V.
I am trying to monitor printer spooler notification as described in
Microsoft KB 196805: "PrintMon.exe Demonstrates the Win32 Spooler
API".
PrintMon tool from article is working good in most of the cases.
However, I've noticed that it does not work in case of network shared
printers. In order to reproduce the problem, one has to do the
following:
1. Share printer C on machine A
2. From machine B connect to machine A and "Connect" to printer C
3. Disable firewalls on machines B and A
4. Try to print test page. Make sure it works
5. Fire up PrintMon on machine B and select printer C
6. Try to print something and observe no notifications
PrintMon reports error "FindNextPrinterChangeNotification" and if I
debug it, I see that GetLastError() returns 6.
Is there any KB describing this problem or any solution to it?
P.S: Machine A is Windows Server 2003, and machine B is Windows 7 x32
Ultimate, but it actually happens on all machines.
Thank you for any information,
V.