winapi - How are printer notifications in Windows supposed to work with network printers? -


i have application needs print files of different types using associated applications printing using shellexecute , "print" verb. application needs (hopefully) reliably know when 1 print job processed , can issue next one. accomplish using findnextprinterchangenotification , seems work fine using local printers, e.g. installed via usb, different behavior if network printers involved.

one of clients used application network printer, meaning professional printer it's own print server embedded, installed on windows server 2008 r2 , shared installed printer using windows it's clients. in scenario findnextprinterchangenotification returned success, it's returned structures got flag printer_notify_info_discarded set well. reproduce behavior windows server 2008 r2 on own didn't export printer it's own embedded printer server, locally installed freepdf xp. additionally, same behavior if use samba, cups , cups-pdf on 1 of our ubuntu development servers: samba exports cups-pdf printer , if install in windows 7 development machine , use print application, findnextprinterchangenotification returns always, again flag printer_notify_info_discarded set.

my customer afterwards installed printer directly via printer's embedded print server it's clients , told me print application working local printer. meaning no more events printer_notify_info_discarded flag set in version of application error state exit application.

i tried reproduce using cups-pdf again, time didn't install printer exported samba, directly specifying printer name of cups using url http://domain.example.org:631/printers/pdf. can use printer in windows, application again gets strange events. time don't results flag printer_notify_info_discarded set, ppprinternotifyinfo null, don't results @ all, findnextprinterchangenotification returns successfully.

microsoft provides note firewalls , printer notifications may blocked clients, don't think problem in case because tested same scenarios disabled firewall, enabled firewall results differ depending on how development machine speaking printers , windows 7 firewall settings seem allow printer communication default.

to make long story short: didn't find on how reliable printer notifications different network printers. depending on printer drivers? doesn't seem because makes different if samba exports printer or 1 uses http directly. i've read windows 7 uses client rendering of print jobs , afterwards sends jobs network spooler, can see jobs in local spooler long time. why don't notifications well? samba , printers shared using windows server design not supposed publish printer notifications? couldn't find info saying that.

i appreciate or hints docs provide light on this. thanks!


Comments

Popular posts from this blog

html - How to style widget with post count different than without post count -

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

javascript - storing input from prompt in array and displaying the array -