From 128026c9a2de83a8ac6214e733fa871440c6b77f Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Tue, 16 May 2000 12:43:53 +0000 Subject: 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) --- source3/aparser/spool.struct | 80 +++++++++++++++++++++++++------------------- 1 file changed, 45 insertions(+), 35 deletions(-) (limited to 'source3/aparser/spool.struct') 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; }; -- cgit