summaryrefslogtreecommitdiff
path: root/source3/rpc_server/srv_spoolss_util.h
diff options
context:
space:
mode:
authorAndreas Schneider <asn@redhat.com>2010-03-17 15:59:10 +0100
committerGünther Deschner <gd@samba.org>2010-04-07 15:16:52 +0200
commitf0054d8361b90acc3b4d39b0c283f9d54467e61d (patch)
tree9fcd7f5862a50625c9a7d999a641e634178027e4 /source3/rpc_server/srv_spoolss_util.h
parent77d1b73a3e31f67dce28055603c34bd78e927616 (diff)
downloadsamba-f0054d8361b90acc3b4d39b0c283f9d54467e61d.tar.gz
samba-f0054d8361b90acc3b4d39b0c283f9d54467e61d.tar.bz2
samba-f0054d8361b90acc3b4d39b0c283f9d54467e61d.zip
s3-spoolss: Added a enum_printer_key function using the winreg pipe.
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.h25
1 files changed, 25 insertions, 0 deletions
diff --git a/source3/rpc_server/srv_spoolss_util.h b/source3/rpc_server/srv_spoolss_util.h
index 2e6aa903f0..21e3d3581b 100644
--- a/source3/rpc_server/srv_spoolss_util.h
+++ b/source3/rpc_server/srv_spoolss_util.h
@@ -127,4 +127,29 @@ WERROR winreg_delete_printer_dataex(struct pipes_struct *p,
const char *key,
const char *value);
+/**
+ * @internal
+ *
+ * @brief Enumerate on the subkeys of a given key and provide the data.
+ *
+ * @param[in] p The pipes structure to be able to open a new pipe.
+ *
+ * @param[in] printer The printer name.
+ *
+ * @param[in] key The key of the printer data to get the value.
+ *
+ * @param[out] pnum_subkeys A pointer to store the number of subkeys found.
+ *
+ * @param[in] psubkeys A pointer to an array to store the names of the subkeys
+ * found.
+ *
+ * @return WERR_OK on success, the corresponding DOS error
+ * code if something gone wrong.
+ */
+WERROR winreg_enum_printer_key(struct pipes_struct *p,
+ const char *printer,
+ const char *key,
+ uint32_t *pnum_subkeys,
+ const char ***psubkeys);
+
#endif /* _SRV_SPOOLSS_UITL_H */