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/idl/spoolss.idl | 41 +++++++++++++++++++++++++++++++++-------- 1 file changed, 33 insertions(+), 8 deletions(-) (limited to 'librpc/idl') diff --git a/librpc/idl/spoolss.idl b/librpc/idl/spoolss.idl index 154a4efdaf..725166f2a6 100644 --- a/librpc/idl/spoolss.idl +++ b/librpc/idl/spoolss.idl @@ -2525,24 +2525,49 @@ import "misc.idl", "security.idl", "winreg.idl"; /******************/ /* Function: 0x4d */ - WERROR spoolss_SetPrinterDataEx( + [noopnum,nopull,noprint,public] WERROR _spoolss_SetPrinterDataEx( [in,ref] policy_handle *handle, - [in] [string,charset(UTF16)] uint16 key_name[], - [in] [string,charset(UTF16)] uint16 value_name[], - [in] winreg_Type type, - [in,ref] [size_is(offered)] uint8 *buffer, - [in] uint32 offered + [in] [string,charset(UTF16)] uint16 key_name[], + [in] [string,charset(UTF16)] uint16 value_name[], + [in] winreg_Type type, + [in] DATA_BLOB data, + [in] uint32 _offered + ); + [noopnum,nopull,noprint,public] void __spoolss_SetPrinterDataEx( + [in] winreg_Type type, + [out,ref,switch_is(type)] spoolss_PrinterData *data + ); + [nopush] WERROR spoolss_SetPrinterDataEx( + [in,ref] policy_handle *handle, + [in] [string,charset(UTF16)] uint16 key_name[], + [in] [string,charset(UTF16)] uint16 value_name[], + [in] winreg_Type type, + [in,subcontext(4),switch_is(type)] spoolss_PrinterData data, + [in,value(ndr_size_spoolss_PrinterData(&data,type,ndr->iconv_convenience,flags))] uint32 _offered ); /******************/ /* Function: 0x4e */ - WERROR spoolss_GetPrinterDataEx( + [noopnum,noprint,public] WERROR _spoolss_GetPrinterDataEx( [in,ref] policy_handle *handle, [in] [string,charset(UTF16)] uint16 key_name[], [in] [string,charset(UTF16)] uint16 value_name[], + [in] uint32 offered, [out,ref] winreg_Type *type, - [out,ref] [size_is(offered)] uint8 *buffer, + [out,ref] DATA_BLOB *data, + [out,ref] uint32 *needed + ); + [noopnum,noprint,public] void __spoolss_GetPrinterDataEx( + [in] winreg_Type type, + [out,ref,switch_is(type)] spoolss_PrinterData *data + ); + [nopull,nopush,public] WERROR spoolss_GetPrinterDataEx( + [in,ref] policy_handle *handle, + [in] [string,charset(UTF16)] uint16 key_name[], + [in] [string,charset(UTF16)] uint16 value_name[], [in] uint32 offered, + [out,ref] winreg_Type *type, + [out,ref,subcontext(4),subcontext_size(offered),switch_is(*type)] spoolss_PrinterData *data, [out,ref] uint32 *needed ); -- cgit