summaryrefslogtreecommitdiff
path: root/source3/include
diff options
context:
space:
mode:
authorGerald Carter <jerry@samba.org>2006-03-06 18:40:00 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 11:10:57 -0500
commit129fd6c5c641cf4c2db31eb093baebd08df63107 (patch)
tree13d69f46f16172abfe6808b1edde699b79de9302 /source3/include
parentfa94300f5fd3b115cebe1604d8c002e6b669b472 (diff)
downloadsamba-129fd6c5c641cf4c2db31eb093baebd08df63107.tar.gz
samba-129fd6c5c641cf4c2db31eb093baebd08df63107.tar.bz2
samba-129fd6c5c641cf4c2db31eb093baebd08df63107.zip
r13878: move PORT_DATA_1 to use static sized UNICODE strings as per MSDN
(This used to be commit c803e1b2afdfc5bd983f046c976c01adebcfa1ad)
Diffstat (limited to 'source3/include')
-rwxr-xr-xsource3/include/rpc_spoolss.h16
1 files changed, 11 insertions, 5 deletions
diff --git a/source3/include/rpc_spoolss.h b/source3/include/rpc_spoolss.h
index 4d24ee4f0f..5429511a8b 100755
--- a/source3/include/rpc_spoolss.h
+++ b/source3/include/rpc_spoolss.h
@@ -2174,17 +2174,23 @@ SPOOL_R_GETPRINTPROCESSORDIRECTORY;
/**************************************/
+#define MAX_PORTNAME 64
+#define MAX_NETWORK_NAME 49
+#define MAX_SNMP_COMM_NAME 33
+#define MAX_QUEUE_NAME 33
+#define MAX_IPADDR_STRING 17
+
typedef struct {
- UNISTR portname; /* constant 64 wchars */
+ uint16 portname[MAX_PORTNAME];
uint32 version;
uint32 protocol;
uint32 size;
uint32 reserved;
- UNISTR hostaddress; /* constant 49 wchars */
- UNISTR snmpcommunity; /* constant 33 wchars */
+ uint16 hostaddress[MAX_NETWORK_NAME];
+ uint16 snmpcommunity[MAX_SNMP_COMM_NAME];
uint32 dblspool;
- UNISTR queue; /* constant 33 wchars */
- UNISTR ipaddress; /* constant 17 wchars */
+ uint16 queue[MAX_QUEUE_NAME];
+ uint16 ipaddress[MAX_IPADDR_STRING];
uint32 port;
uint32 snmpenabled;
uint32 snmpdevindex;