From 08823166a13d5ec3027b0c5a0db5e684b8e3c3b6 Mon Sep 17 00:00:00 2001 From: Günther Deschner Date: Sat, 5 Dec 2009 00:50:18 +0100 Subject: spoolss: rework spoolss_GetPrinterDataEx and spoolss_SetPrinterDataEx. Guenther --- librpc/gen_ndr/spoolss.h | 63 ++++++++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 61 insertions(+), 2 deletions(-) (limited to 'librpc/gen_ndr/spoolss.h') diff --git a/librpc/gen_ndr/spoolss.h b/librpc/gen_ndr/spoolss.h index e209cb464b..d6c267c82a 100644 --- a/librpc/gen_ndr/spoolss.h +++ b/librpc/gen_ndr/spoolss.h @@ -3468,23 +3468,82 @@ struct spoolss_4c { }; +struct _spoolss_SetPrinterDataEx { + struct { + struct policy_handle *handle;/* [ref] */ + const char *key_name;/* [charset(UTF16)] */ + const char *value_name;/* [charset(UTF16)] */ + enum winreg_Type type; + DATA_BLOB data; + uint32_t _offered; + } in; + + struct { + WERROR result; + } out; + +}; + + +struct __spoolss_SetPrinterDataEx { + struct { + enum winreg_Type type; + } in; + + struct { + union spoolss_PrinterData *data;/* [ref,switch_is(type)] */ + } out; + +}; + + struct spoolss_SetPrinterDataEx { struct { struct policy_handle *handle;/* [ref] */ const char *key_name;/* [charset(UTF16)] */ const char *value_name;/* [charset(UTF16)] */ enum winreg_Type type; - uint8_t *buffer;/* [ref,size_is(offered)] */ + union spoolss_PrinterData data;/* [subcontext(4),switch_is(type)] */ + uint32_t _offered;/* [value(ndr_size_spoolss_PrinterData(&data,type,ndr->iconv_convenience,flags))] */ + } in; + + struct { + WERROR result; + } out; + +}; + + +struct _spoolss_GetPrinterDataEx { + struct { + struct policy_handle *handle;/* [ref] */ + const char *key_name;/* [charset(UTF16)] */ + const char *value_name;/* [charset(UTF16)] */ uint32_t offered; } in; struct { + enum winreg_Type *type;/* [ref] */ + DATA_BLOB *data;/* [ref] */ + uint32_t *needed;/* [ref] */ WERROR result; } out; }; +struct __spoolss_GetPrinterDataEx { + struct { + enum winreg_Type type; + } in; + + struct { + union spoolss_PrinterData *data;/* [ref,switch_is(type)] */ + } out; + +}; + + struct spoolss_GetPrinterDataEx { struct { struct policy_handle *handle;/* [ref] */ @@ -3495,7 +3554,7 @@ struct spoolss_GetPrinterDataEx { struct { enum winreg_Type *type;/* [ref] */ - uint8_t *buffer;/* [ref,size_is(offered)] */ + union spoolss_PrinterData *data;/* [subcontext_size(offered),ref,subcontext(4),switch_is(*type)] */ uint32_t *needed;/* [ref] */ WERROR result; } out; -- cgit