summaryrefslogtreecommitdiff
path: root/source3/include/rpc_spoolss.h
diff options
context:
space:
mode:
authorJean-François Micouleau <jfm@samba.org>2000-09-25 21:05:18 +0000
committerJean-François Micouleau <jfm@samba.org>2000-09-25 21:05:18 +0000
commit233bc000209cf5759e0e49ad83da70b280d51dae (patch)
treeb86d40660677f230e89d385efe397472c8f2c5c7 /source3/include/rpc_spoolss.h
parentd31a72f7390339ec2bb0f3af5da014d635ce09dd (diff)
downloadsamba-233bc000209cf5759e0e49ad83da70b280d51dae.tar.gz
samba-233bc000209cf5759e0e49ad83da70b280d51dae.tar.bz2
samba-233bc000209cf5759e0e49ad83da70b280d51dae.zip
printer notify code.
It only sends notifies to one client. The broadcasting notify code will code soon. J.F. (This used to be commit 4c63c9185887c64e57d901e82a4a16a83522c898)
Diffstat (limited to 'source3/include/rpc_spoolss.h')
-rwxr-xr-xsource3/include/rpc_spoolss.h28
1 files changed, 26 insertions, 2 deletions
diff --git a/source3/include/rpc_spoolss.h b/source3/include/rpc_spoolss.h
index 61b20c36c8..94cfb45dfe 100755
--- a/source3/include/rpc_spoolss.h
+++ b/source3/include/rpc_spoolss.h
@@ -54,7 +54,6 @@
#define SPOOLSS_FINDNEXTPRINTERCHANGENOTIFICATION 0x37
#define SPOOLSS_ROUTERFINDFIRSTPRINTERNOTIFICATIONOLD 0x39
#define SPOOLSS_ROUTERREPLYPRINTER 0x3b
-#define SPOOLSS_REPLYCLOSEPRINTER 0x3c
#define SPOOLSS_ADDPORTEX 0x3d
#define SPOOLSS_REMOTEFINDFIRSTPRINTERCHANGENOTIFICATION0x3e
#define SPOOLSS_SPOOLERINIT 0x3f
@@ -99,8 +98,11 @@
/* find close printer notification */
#define SPOOLSS_FCPN 0x38
#define SPOOLSS_REPLYOPENPRINTER 0x3a
+#define SPOOLSS_REPLYCLOSEPRINTER 0x3c
/* remote find first printer change notifyEx */
#define SPOOLSS_RFFPCNEX 0x41
+/*SPOOLSS_ROUTERREFRESHPRINTERCHANGENOTIFICATION */
+#define SPOOLSS_RRPCN 0x42
/* remote find next printer change notifyEx */
#define SPOOLSS_RFNPCNEX 0x43
#define SPOOLSS_OPENPRINTEREX 0x45
@@ -299,6 +301,8 @@
PRINTER_CHANGE_PRINT_PROCESSOR | \
PRINTER_CHANGE_PRINTER_DRIVER )
+#define PRINTER_NOTIFY_INFO_DISCARDED 0x1
+
/*
* The printer attributes.
* I #defined all of them (grabbed form MSDN)
@@ -1773,7 +1777,8 @@ typedef struct spool_q_replyopenprinter
UNISTR2 string;
uint32 printer;
uint32 type;
- NEW_BUFFER *buffer;
+ uint32 unknown0;
+ uint32 unknown1;
}
SPOOL_Q_REPLYOPENPRINTER;
@@ -1797,6 +1802,25 @@ typedef struct spool_r_replycloseprinter
}
SPOOL_R_REPLYCLOSEPRINTER;
+typedef struct spool_q_rrpcn
+{
+ POLICY_HND handle;
+ uint32 change_low;
+ uint32 change_high;
+ uint32 unknown0;
+ uint32 unknown1;
+ uint32 info_ptr;
+ SPOOL_NOTIFY_INFO info;
+}
+SPOOL_Q_REPLY_RRPCN;
+
+typedef struct spool_r_rrpcn
+{
+ uint32 unknown0;
+ uint32 status;
+}
+SPOOL_R_REPLY_RRPCN;
+
#define PRINTER_DRIVER_VERSION 2
#define PRINTER_DRIVER_ARCHITECTURE "Windows NT x86"