summaryrefslogtreecommitdiff
path: root/source4/librpc/idl/spoolss.idl
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2003-11-16 13:49:14 +0000
committerAndrew Tridgell <tridge@samba.org>2003-11-16 13:49:14 +0000
commitae4cb40100a5c04a4604acfde989ce96ef1801bd (patch)
tree48baadf0d3f5076475025e1f4f52abb4fe62290e /source4/librpc/idl/spoolss.idl
parentc4b7585288095cb9459feb237a9581ba30b850d0 (diff)
downloadsamba-ae4cb40100a5c04a4604acfde989ce96ef1801bd.tar.gz
samba-ae4cb40100a5c04a4604acfde989ce96ef1801bd.tar.bz2
samba-ae4cb40100a5c04a4604acfde989ce96ef1801bd.zip
use nstring and [relative] to support levels 1 and 2 of EnumPrinters
fully (This used to be commit 69c6017c945bdd7d1945f22fcad49112ba6a2d2d)
Diffstat (limited to 'source4/librpc/idl/spoolss.idl')
-rw-r--r--source4/librpc/idl/spoolss.idl68
1 files changed, 65 insertions, 3 deletions
diff --git a/source4/librpc/idl/spoolss.idl b/source4/librpc/idl/spoolss.idl
index e2965c3586..94c3bf127c 100644
--- a/source4/librpc/idl/spoolss.idl
+++ b/source4/librpc/idl/spoolss.idl
@@ -10,13 +10,75 @@
/******************/
/* Function: 0x00 */
+ typedef struct {
+ nstring devicename;
+ uint16 specversion;
+ uint16 driverversion;
+ uint16 size;
+ uint16 driverextra;
+ uint32 fields;
+ uint16 orientation;
+ uint16 papersize;
+ uint16 paperlength;
+ uint16 paperwidth;
+ uint16 scale;
+ uint16 copies;
+ uint16 defaultsource;
+ uint16 printquality;
+ uint16 color;
+ uint16 duplex;
+ uint16 yresolution;
+ uint16 ttoption;
+ uint16 collate;
+ nstring formname;
+ uint16 logpixels;
+ uint32 bitsperpel;
+ uint32 pelswidth;
+ uint32 pelsheight;
+ uint32 displayflags;
+ uint32 displayfrequency;
+ uint32 icmmethod;
+ uint32 icmintent;
+ uint32 mediatype;
+ uint32 dithertype;
+ uint32 reserved1;
+ uint32 reserved2;
+ uint32 panningwidth;
+ uint32 panningheight;
+// uint8 private[driverextra];
+ } spoolss_DeviceMode;
+
typedef [public] struct {
uint32 flags;
- relstr name;
- relstr description;
- relstr comment;
+ [relative] nstring name;
+ [relative] nstring description;
+ [relative] nstring comment;
} spoolss_PrinterEnum1;
+ typedef [public] struct {
+ [relative] nstring servername;
+ [relative] nstring printername;
+ [relative] nstring sharename;
+ [relative] nstring portname;
+ [relative] nstring drivername;
+ [relative] nstring comment;
+ [relative] nstring location;
+ [relative] spoolss_DeviceMode *devmode;
+ [relative] nstring sepfile;
+ [relative] nstring printprocessor;
+ [relative] nstring datatype;
+ [relative] nstring parameters;
+ [relative] security_descriptor *secdesc;
+ uint32 attributes;
+ uint32 priority;
+ uint32 defaultpriority;
+ uint32 starttime;
+ uint32 untiltime;
+ uint32 status;
+ uint32 cjobs;
+ uint32 averageppm;
+ } spoolss_PrinterEnum2;
+
NTSTATUS spoolss_EnumPrinters(
[in] uint32 flags,
[in] unistr *server,