REPOST: Question about srv_spoolss_send_event_to_client()

Peter Hurley phurley at imaginexd.com
Thu Feb 27 00:05:56 GMT 2003


-----Original Message-----
From: samba-technical-bounces+phurley=imaginexd.com at lists.samba.org
[mailto:samba-technical-bounces+phurley=imaginexd.com at lists.samba.org]
On Behalf Of Peter Hurley
Sent: Monday, February 17, 2003 3:41 PM
To: samba-technical at lists.samba.org
Subject: Question about srv_spoolss_send_event_to_client()

In rpc_server/srv_spoolss_nt.c:srv_spoolss_send_event_to_client():
Could someone tell me why the following lines of code were added?

if (Printer->printer_type == PRINTER_HANDLE_IS_PRINTSERVER)
	msg->flags |= PRINTER_MESSAGE_ATTRIBUTES;

The problem is that sending expanded NOTIFY_INFO_DATA in the RRPCN
request for a printserver causes W2k clients to ** NOT ** send RFNPCNEX
requests.

The upshot is that when a W2k client opens the Printers window on the
print server and selects a printer, the printer status will not change
during subsequent operations (say pausing and unpausing).

Commenting out the lines of code above had the desired effect (i.e.,
fixed that problem), but I'm concerned since someone put it in to begin
with.

If the above is absolutely necessary, then the fix is much more
complicated.

Thanks,

Peter Hurley
phurley at imaginexd.com





More information about the samba-technical mailing list