diff options
author | Andreas Schneider <asn@samba.org> | 2010-04-01 11:51:59 +0200 |
---|---|---|
committer | Günther Deschner <gd@samba.org> | 2010-04-07 15:16:53 +0200 |
commit | c7fb84a58fd3597431c0bbe131e51a95eaff8a70 (patch) | |
tree | b72f2ec52ea386fa41f6f4d02e74144d3a2c0a92 /source3/rpc_server/srv_spoolss_util.h | |
parent | 0d46ab0f3eb9662d7ee3eaf8f680632486878d46 (diff) | |
download | samba-c7fb84a58fd3597431c0bbe131e51a95eaff8a70.tar.gz samba-c7fb84a58fd3597431c0bbe131e51a95eaff8a70.tar.bz2 samba-c7fb84a58fd3597431c0bbe131e51a95eaff8a70.zip |
s3-spoolss: Added a winreg_setform1 function.
Signed-off-by: Günther Deschner <gd@samba.org>
Diffstat (limited to 'source3/rpc_server/srv_spoolss_util.h')
-rw-r--r-- | source3/rpc_server/srv_spoolss_util.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/source3/rpc_server/srv_spoolss_util.h b/source3/rpc_server/srv_spoolss_util.h index e99de5fb63..1fcc3244ba 100644 --- a/source3/rpc_server/srv_spoolss_util.h +++ b/source3/rpc_server/srv_spoolss_util.h @@ -218,4 +218,24 @@ WERROR winreg_printer_enumforms1(struct pipes_struct *p, WERROR winreg_printer_deleteform1(struct pipes_struct *p, const char *form_name); +/** + * @brief This function sets the form information for the specified printer. + * + * If one provides both the name in the API call and inside the FormInfo + * structure, then the form gets renamed. + * + * @param[in] p The pipes structure to be able to open a new pipe. + * + * @param[in] form_name The name of the form to set or rename. + * + * @param[in] form The FormInfo structure to save. + * + * @return WERR_OK on success. + * WERR_INVALID_PARAM if the form is a builtin form. + * A corresponding DOS error is something went wrong. + */ +WERROR winreg_printer_setform1(struct pipes_struct *p, + const char *form_name, + struct spoolss_AddFormInfo1 *form); + #endif /* _SRV_SPOOLSS_UITL_H */ |