summaryrefslogtreecommitdiff
path: root/source3/aparser/spool.struct
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2000-05-16 12:43:53 +0000
committerAndrew Tridgell <tridge@samba.org>2000-05-16 12:43:53 +0000
commit128026c9a2de83a8ac6214e733fa871440c6b77f (patch)
treefca86e76f0020a2b16549cb0ab2a9dae29d61ac6 /source3/aparser/spool.struct
parentf3a3a05ade784ff6906e5c8b132c9440a8db44e5 (diff)
downloadsamba-128026c9a2de83a8ac6214e733fa871440c6b77f.tar.gz
samba-128026c9a2de83a8ac6214e733fa871440c6b77f.tar.bz2
samba-128026c9a2de83a8ac6214e733fa871440c6b77f.zip
added the ".trailer" type, to mark where a packet turns into a trailer
this now gives us enough to parse complete function calls, including the return values (This used to be commit ca8f1e92adf3603ad15f73277576cc9178bb4d74)
Diffstat (limited to 'source3/aparser/spool.struct')
-rw-r--r--source3/aparser/spool.struct80
1 files changed, 45 insertions, 35 deletions
diff --git a/source3/aparser/spool.struct b/source3/aparser/spool.struct
index 43f50ba1d6..77f3226b5b 100644
--- a/source3/aparser/spool.struct
+++ b/source3/aparser/spool.struct
@@ -1,11 +1,16 @@
module spool
-test R_GETPRINTERDRIVER2
+test PRINTER_DRIVER_INFO_LEVEL_6
struct BUFFER5 {
uint32 buf_len;
uint16 buffer[buf_len];
};
+struct BUFFERP {
+ uint32 buf_len;
+ BUFFER5 *buf;
+};
+
struct UNISTR2 {
uint32 max_len;
uint32 undoc;
@@ -13,9 +18,14 @@ struct UNISTR2 {
uint16 buffer[str_len];
};
-struct UINT64_S {
- uint32 low;
- uint32 high;
+struct LPWSTR {
+ UNISTR2 *str;
+};
+
+struct VERSION {
+ uint32 version;
+ uint32 build;
+ uint32 osversion;
};
struct NTTIME {
@@ -23,42 +33,42 @@ struct NTTIME {
uint32 high;
};
+struct DWORD {
+ uint32 x;
+};
+
struct PRINTER_DRIVER_INFO_LEVEL_3 {
- uint32 cversion;
- UNISTR2 *name;
- UNISTR2 *environment;
- UNISTR2 *driverpath;
- UNISTR2 *datafile;
- UNISTR2 *configfile;
- UNISTR2 *helpfile;
- UNISTR2 *monitorname;
- UNISTR2 *defaultdatatype;
- uint32 dependentfiles_len;
- BUFFER5 *dependentfiles;
+ DWORD cversion;
+ LPWSTR name;
+ LPWSTR environment;
+ LPWSTR driverpath;
+ LPWSTR datafile;
+ LPWSTR configfile;
+ LPWSTR helpfile;
+ LPWSTR monitorname;
+ LPWSTR defaultdatatype;
+ BUFFERP dependentfiles;
};
struct PRINTER_DRIVER_INFO_LEVEL_6 {
- uint32 dummy1;
- uint32 version;
- UNISTR2 *name;
- UNISTR2 *environment;
- UNISTR2 *driverpath;
- UNISTR2 *datafile;
- UNISTR2 *configfile;
- UNISTR2 *helpfile;
- UNISTR2 *monitorname;
- UNISTR2 *defaultdatatype;
- uint32 dependentfiles_len;
- BUFFER5 *dependentfiles;
- uint32 previousnames_len;
- BUFFER5 *previousnames;
+ DWORD dummy1;
+ DWORD version;
+ LPWSTR name;
+ LPWSTR environment;
+ LPWSTR driverpath;
+ LPWSTR datafile;
+ LPWSTR configfile;
+ LPWSTR helpfile;
+ LPWSTR monitorname;
+ LPWSTR defaultdatatype;
+ BUFFERP dependentfiles;
+ BUFFERP previousnames;
NTTIME driverdate;
- UINT64_S driverversion;
- uint32 dummy4;
- UNISTR2 *mfgname;
- UNISTR2 *oemurl;
- UNISTR2 *hardwareid;
- UNISTR2 *provider;
+ VERSION driverversion;
+ LPWSTR mfgname;
+ LPWSTR oemurl;
+ LPWSTR hardwareid;
+ LPWSTR provider;
};