question about SPOOL_Q_SETPRINTER

Gerald Carter gcarter at valinux.com
Wed Mar 28 15:38:29 GMT 2001


yOn 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).
> 
> 
> 
> typedef struct spool_q_setprinter
> {
>         POLICY_HND handle;
>         uint32 level;
>         SPOOL_PRINTER_INFO_LEVEL info;
>         SEC_DESC_BUF *secdesc_ctr;
>         DEVMODE_CTR devmode_ctr;
>  
>         uint32 command;
>  
> }
> SPOOL_Q_SETPRINTER;

Hmmm....I got it.  Needed to look at the smbd logs for parsing the
SETPRINTER RPC.  I still think it is backwards though :-)





CHeers, jerry
----------------------------------------------------------------------
   /\  Gerald (Jerry) Carter                     Professional Services
 \/    http://www.valinux.com/  VA Linux Systems   gcarter at valinux.com
       http://www.samba.org/       SAMBA Team          jerry at samba.org
       http://www.plainjoe.org/                     jerry at plainjoe.org

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





More information about the samba-technical mailing list