question about SPOOL_Q_SETPRINTER

Gerald Carter gcarter at
Wed Mar 28 16:11:16 GMT 2001

On Wed, 28 Mar 2001, Jean Francois Micouleau wrote:

> On Wed, 28 Mar 2001, Gerald Carter wrote:
> > In the following typedef from rpc_spoolss.h, why is the secdesc_ctr a
> > pointer and the devmode_ctr a struct?  This seems inconsistent to me.
> > Especially since, a SEC_DESC_BUF is required in the structure sent
> > to the print server (even in the case of a NULL security descriptor).
> because proper sec_desc was added much later to spoolss.
> Even if it is inconsistant (need to check the IDL first to be sure), I
> urge you to NOT change it now. It works, don't change it. It's not the
> right moment to do such a change.

No.  I wasn't planing on changing it. :-)  Just trying to work out
how to set the size fields in the SEC_DESC_BUF and DEVMODE_CTR.

I see when we parse the PRINTER_INFO_2 struct that the way the
DEVMODE_CTR and SEC_DESC_BUF are handled is different.  Made
more sense after I saw that.

Cheers, jerry
   /\  Gerald (Jerry) Carter                     Professional Services
 \/  VA Linux Systems   gcarter at       SAMBA Team          jerry at                     jerry at

       "...a hundred billion castaways looking for a home."
                                - Sting "Message in a Bottle" ( 1979 )

More information about the samba-technical mailing list