summaryrefslogtreecommitdiff
path: root/source3/include
diff options
context:
space:
mode:
authorGerald Carter <jerry@samba.org>2006-03-03 16:44:30 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 11:10:55 -0500
commite33b728c7b2076917e2149191222b259e5c1d942 (patch)
tree1144d7f4e0da8594598a77e015924e029356bdb0 /source3/include
parenta7552e677ed1c2df795c844987a7b7036c93bb35 (diff)
downloadsamba-e33b728c7b2076917e2149191222b259e5c1d942.tar.gz
samba-e33b728c7b2076917e2149191222b259e5c1d942.tar.bz2
samba-e33b728c7b2076917e2149191222b259e5c1d942.zip
r13815: "Into the blind world let us now descend,"
Began the poet, his face as pale as death. "I will go first, and you will follow me." --- Adding XcvDataPort() to the spoolss code for remotely add ports. The design is to allow an intuitive means of creating a new CUPS print queue from the Windows 2000/XP APW without hacks like specifying the deviceURI in the location field of the printer properties dialog. Also set 'default devmode = yes' as the new default since it causes no harm and only is executed when you have a NULL devmode anyways. (This used to be commit 123e478ce5b5f63a61d00197332b847e83722468)
Diffstat (limited to 'source3/include')
-rw-r--r--source3/include/nt_printing.h1
-rwxr-xr-xsource3/include/rpc_spoolss.h28
2 files changed, 28 insertions, 1 deletions
diff --git a/source3/include/nt_printing.h b/source3/include/nt_printing.h
index f0d50878ce..7e3bd32003 100644
--- a/source3/include/nt_printing.h
+++ b/source3/include/nt_printing.h
@@ -423,6 +423,7 @@ typedef struct {
#define PRINTER_HANDLE_IS_PRINTER 0
#define PRINTER_HANDLE_IS_PRINTSERVER 1
+#define PRINTER_HANDLE_IS_TCPMON 2
/* structure to store the printer handles */
/* and a reference to what it's pointing to */
diff --git a/source3/include/rpc_spoolss.h b/source3/include/rpc_spoolss.h
index 3b88f76588..347aca0e08 100755
--- a/source3/include/rpc_spoolss.h
+++ b/source3/include/rpc_spoolss.h
@@ -4,7 +4,7 @@
Copyright (C) Andrew Tridgell 1992-2000,
Copyright (C) Luke Kenneth Casson Leighton 1996-2000,
Copyright (C) Jean Francois Micouleau 1998-2000.
- Copyright (C) Gerald Carter 2001-2005.
+ Copyright (C) Gerald Carter 2001-2006.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -107,8 +107,16 @@
#define SPOOLSS_DELETEPRINTERDATAEX 0x51
#define SPOOLSS_DELETEPRINTERKEY 0x52
#define SPOOLSS_DELETEPRINTERDRIVEREX 0x54
+#define SPOOLSS_XCVDATAPORT 0x58
#define SPOOLSS_ADDPRINTERDRIVEREX 0x59
+/*
+ * Special strings for the OpenPrinter() call. See the MSDN DDK
+ * docs on the XcvDataPort() for more details.
+ */
+
+#define SPL_XCV_MONITOR_TCPMON ",XcvMonitor Standard TCP/IP Port"
+
#define PRINTER_CONTROL_UNPAUSE 0x00000000
#define PRINTER_CONTROL_PAUSE 0x00000001
@@ -2161,6 +2169,24 @@ typedef struct spool_r_getprintprocessordirectory
}
SPOOL_R_GETPRINTPROCESSORDIRECTORY;
+/**************************************/
+
+typedef struct spool_q_xcvdataport {
+ POLICY_HND handle;
+ UNISTR2 dataname;
+ RPC_BUFFER indata;
+ uint32 indata_len;
+ uint32 offered;
+ uint32 unknown;
+} SPOOL_Q_XCVDATAPORT;
+
+typedef struct spool_r_xcvdataport {
+ RPC_BUFFER outdata;
+ uint32 *unknown1;
+ uint32 *unknown2;
+ WERROR status;
+} SPOOL_R_XCVDATAPORT;
+
#define PRINTER_DRIVER_VERSION 2
#define PRINTER_DRIVER_ARCHITECTURE "Windows NT x86"