From 93575d6d7051089b50e038a152750939130c6a72 Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Wed, 31 Mar 2010 13:04:04 +0200 Subject: s3-spoolss: Added a winreg_addform1 function. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Günther Deschner --- source3/rpc_server/srv_spoolss_util.h | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'source3/rpc_server/srv_spoolss_util.h') diff --git a/source3/rpc_server/srv_spoolss_util.h b/source3/rpc_server/srv_spoolss_util.h index 28e7e5b485..99cf68107c 100644 --- a/source3/rpc_server/srv_spoolss_util.h +++ b/source3/rpc_server/srv_spoolss_util.h @@ -171,6 +171,24 @@ WERROR winreg_delete_printer_key(struct pipes_struct *p, const char *key); /** + * @internal + * + * @brief This function adds a form to the list of available forms that can be + * selected for the specified printer. + * + * @param[in] p The pipes structure to be able to open a new pipe. + * + * @param[in] form The form to add. + * + * @return WERR_OK on success. + * WERR_ALREADY_EXISTS if the form already exists or is a + * builtin form. + * A corresponding DOS error is something went wrong. + */ +WERROR winreg_printer_addform1(struct pipes_struct *p, + struct spoolss_AddFormInfo1 *form); + +/* * @brief This function enumerates the forms supported by the specified printer. * * @param[in] p The pipes structure to be able to open a new pipe. -- cgit