From 251cd42ed5b62afe8272099707347c1b0f61023e Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Wed, 21 Apr 2010 17:13:02 +0200 Subject: s3-spoolss: Added a winreg_get_printer 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 | 20 ++++++++++++++++++++ 1 file changed, 20 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 1590db2c64..4b5117e937 100644 --- a/source3/rpc_server/srv_spoolss_util.h +++ b/source3/rpc_server/srv_spoolss_util.h @@ -102,6 +102,26 @@ WERROR winreg_update_printer(TALLOC_CTX *mem_ctx, struct spoolss_DeviceMode *devmode, struct security_descriptor *secdesc); + +/** + * @brief Get the inforamtion of a printer stored in the registry. + * + * @param[in] mem_ctx The talloc memory context to use. + * + * @param[in] server_info The server supplied session info. + * + * @param[in] printer The name of the printer to get. + * + * @param[out] pinfo2 A pointer to store a PRINTER_INFO_2 structure. + * + * @return On success WERR_OK, a corresponding DOS error is + * something went wrong. + */ +WERROR winreg_get_printer(TALLOC_CTX *mem_ctx, + struct auth_serversupplied_info *server_info, + const char *printer, + struct spoolss_PrinterInfo2 **pinfo2); + /** * @internal * -- cgit