summaryrefslogtreecommitdiff
path: root/source3/rpc_server/srv_spoolss_util.h
diff options
context:
space:
mode:
authorAndreas Schneider <asn@samba.org>2010-04-21 17:13:02 +0200
committerGünther Deschner <gd@samba.org>2010-04-23 16:33:07 +0200
commit251cd42ed5b62afe8272099707347c1b0f61023e (patch)
tree7ce42d43e4f4d77a56397359816177bbe436e6ed /source3/rpc_server/srv_spoolss_util.h
parente15d624c0ae539460de367ab2b33f83f41d81393 (diff)
downloadsamba-251cd42ed5b62afe8272099707347c1b0f61023e.tar.gz
samba-251cd42ed5b62afe8272099707347c1b0f61023e.tar.bz2
samba-251cd42ed5b62afe8272099707347c1b0f61023e.zip
s3-spoolss: Added a winreg_get_printer 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.h20
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 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
*