[Samba] How to Refresh jobs in samba queues ??

Thomas Bork tombork at web.de
Fri Nov 8 22:33:32 GMT 2002


Hallo Thomas Bork,

Du schriebst:

> The string
>
> char msg[8 + sizeof(fstring)];
>
> is on line 342 here? Patch failes.

I applied the patch by hand, but no luck. I have to to push F5 key
continously to refresh the queue jobs information.

The complete patcht part now looks like that:

/**********************************************************************
******
 Send a message saying the queue changed.
***********************************************************************
*****/

static void send_queue_message(const char *printer_name, uint32 high,
uint32 low)
{
        char msg[sizeof(PRINTER_MESSAGE_INFO)];
        PRINTER_MESSAGE_INFO info;
        ZERO_STRUCT(info);

        info.low = low;
        info.high = high;
        info.flags = 0;
        fstrcpy(info.printer_name, printer_name);

        memcpy( msg, &info, sizeof(PRINTER_MESSAGE_INFO));

        message_send_all(conn_tdb_ctx(), MSG_PRINTER_NOTIFY, msg,
sizeof(PRINTER_MESSAGE_INFO), False, NULL);
}


tom




More information about the samba mailing list