diff options
Diffstat (limited to 'source/include/nt_printing.h')
-rw-r--r-- | source/include/nt_printing.h | 64 |
1 files changed, 10 insertions, 54 deletions
diff --git a/source/include/nt_printing.h b/source/include/nt_printing.h index 57767fc3c6b..4c9265f09fa 100644 --- a/source/include/nt_printing.h +++ b/source/include/nt_printing.h @@ -174,28 +174,14 @@ typedef struct nt_printer_driver_info_level NT_PRINTER_DRIVER_INFO_LEVEL_6 *info_6; } NT_PRINTER_DRIVER_INFO_LEVEL; -/* predefined registry key names for printer data */ - -#define SPOOL_PRINTERDATA_KEY "PrinterDriverData" -#define SPOOL_DSSPOOLER_KEY "DsSpooler" -#define SPOOL_DSDRIVER_KEY "DsDriver" -#define SPOOL_DSUSER_KEY "DsUser" -#define SPOOL_PNPDATA_KEY "PnPData" -#define SPOOL_OID_KEY "OID" - -/* container for a single registry key */ - -typedef struct { - char *name; - REGVAL_CTR values; -} NT_PRINTER_KEY; - -/* container for all printer data */ - -typedef struct { - int num_keys; - NT_PRINTER_KEY *keys; -} NT_PRINTER_DATA; +typedef struct nt_printer_param +{ + fstring value; + uint32 type; + uint8 *data; + int data_len; + struct nt_printer_param *next; +} NT_PRINTER_PARAM; typedef struct ntdevicemode { @@ -260,8 +246,9 @@ typedef struct nt_printer_info_level_2 fstring printprocessor; fstring datatype; fstring parameters; - NT_PRINTER_DATA data; + NT_PRINTER_PARAM *specific; SEC_DESC_BUF *secdesc_buf; + /* not used but ... and how ??? */ uint32 changeid; uint32 c_setprinter; uint32 setuptime; @@ -345,35 +332,4 @@ typedef struct _form #define VS_VERSION_INFO_SIZE (sizeof(VS_SIGNATURE)+4+VS_MINOR_OFFSET+4) /* not true size! */ #define VS_NE_BUF_SIZE 4096 /* Must be > 2*VS_VERSION_INFO_SIZE */ -/* Notify spoolss clients that something has changed. The - notification data is either stored in two uint32 values or a - variable length array. */ - -#define SPOOLSS_NOTIFY_MSG_UNIX_JOBID 0x0001 /* Job id is unix */ - -typedef struct spoolss_notify_msg { - fstring printer; /* Name of printer notified */ - uint32 type; /* Printer or job notify */ - uint32 field; /* Notify field changed */ - uint32 id; /* Job id */ - uint32 len; /* Length of data, 0 for two uint32 value */ - uint32 flags; - union { - uint32 value[2]; - char *data; - } notify; -} SPOOLSS_NOTIFY_MSG; - -typedef struct { - fstring printername; - uint32 num_msgs; - SPOOLSS_NOTIFY_MSG *msgs; -} SPOOLSS_NOTIFY_MSG_GROUP; - -typedef struct { - TALLOC_CTX *ctx; - uint32 num_groups; - SPOOLSS_NOTIFY_MSG_GROUP *msg_groups; -} SPOOLSS_NOTIFY_MSG_CTR; - #endif /* NT_PRINTING_H_ */ |