summaryrefslogtreecommitdiff
path: root/source3/rpc_server/srv_spoolss_util.h
diff options
context:
space:
mode:
authorAndreas Schneider <asn@redhat.com>2010-03-12 17:31:21 +0100
committerGünther Deschner <gd@samba.org>2010-04-07 15:16:52 +0200
commite498338f6f29ffdcca0f3108968e04f635c797d4 (patch)
tree7efa5ef9e4ab6f5e5d40d1fb315fe0a317efe768 /source3/rpc_server/srv_spoolss_util.h
parent511dba5ae8529f8a3e661a2d9d0e6426e38fbee8 (diff)
downloadsamba-e498338f6f29ffdcca0f3108968e04f635c797d4.tar.gz
samba-e498338f6f29ffdcca0f3108968e04f635c797d4.tar.bz2
samba-e498338f6f29ffdcca0f3108968e04f635c797d4.zip
s3-spoolss: Added a enum_printer_dataex 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.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/source3/rpc_server/srv_spoolss_util.h b/source3/rpc_server/srv_spoolss_util.h
index f63616f58f..9be4a2be5d 100644
--- a/source3/rpc_server/srv_spoolss_util.h
+++ b/source3/rpc_server/srv_spoolss_util.h
@@ -82,4 +82,28 @@ WERROR winreg_get_printer_dataex(struct pipes_struct *p,
uint8_t **data,
uint32_t *data_size);
+/**
+ * @internal
+ *
+ * @brief Enumerate on the values 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_values A pointer to store the number of values we found.
+ *
+ * @param[out] penum_values A pointer to store the values and its data.
+ *
+ * @return WERR_OK on success, the corresponding DOS error
+ * code if something gone wrong.
+ */
+WERROR winreg_enum_printer_dataex(struct pipes_struct *p,
+ const char *printer,
+ const char *key,
+ uint32_t *pnum_values,
+ struct spoolss_PrinterEnumValues **penum_values);
+
#endif /* _SRV_SPOOLSS_UITL_H */