From 129fd6c5c641cf4c2db31eb093baebd08df63107 Mon Sep 17 00:00:00 2001 From: Gerald Carter Date: Mon, 6 Mar 2006 18:40:00 +0000 Subject: r13878: move PORT_DATA_1 to use static sized UNICODE strings as per MSDN (This used to be commit c803e1b2afdfc5bd983f046c976c01adebcfa1ad) --- source3/include/rpc_spoolss.h | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) (limited to 'source3/include') 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; -- cgit