#define SAMBA_PRINTER_PORT_NAME "Samba Printer Port"
#endif
-
-/*
- * Structures for the XcvDataPort() calls
- */
-
-#define PORT_PROTOCOL_DIRECT 1
-#define PORT_PROTOCOL_LPR 2
-
-typedef struct {
- fstring name;
- uint32 version;
- uint32 protocol;
- fstring hostaddr;
- fstring snmpcommunity;
- fstring queue;
- uint32 dblspool;
- fstring ipaddr;
- uint32 port;
- bool enable_snmp;
- uint32 snmp_index;
-} NT_PORT_DATA_1;
-
/* DOS header format */
#define DOS_HEADER_SIZE 64
#define DOS_HEADER_MAGIC_OFFSET 0
bool page_started;
uint32 jobid; /* jobid in printing backend */
int printer_type;
- TALLOC_CTX *ctx;
fstring servername;
fstring sharename;
uint32 type;
uint32 options;
fstring localmachine;
uint32 printerlocal;
- SPOOL_NOTIFY_OPTION *option;
- POLICY_HND client_hnd;
+ struct spoolss_NotifyOption *option;
+ struct policy_handle client_hnd;
bool client_connected;
uint32 change;
/* are we in a FindNextPrinterChangeNotify() call? */
} Printer_entry;
+/*
+ * The printer attributes.
+ * I #defined all of them (grabbed form MSDN)
+ * I'm only using:
+ * ( SHARED | NETWORK | RAW_ONLY )
+ * RAW_ONLY _MUST_ be present otherwise NT will send an EMF file
+ */
+
+#define PRINTER_ATTRIBUTE_SAMBA (PRINTER_ATTRIBUTE_RAW_ONLY|\
+ PRINTER_ATTRIBUTE_SHARED|\
+ PRINTER_ATTRIBUTE_LOCAL)
+#define PRINTER_ATTRIBUTE_NOT_SAMBA (PRINTER_ATTRIBUTE_NETWORK)
+
+#define DRIVER_ANY_VERSION 0xffffffff
+#define DRIVER_MAX_VERSION 4
+
#endif /* NT_PRINTING_H_ */