diff options
author | Andreas Schneider <asn@redhat.com> | 2010-03-15 12:27:51 +0100 |
---|---|---|
committer | Günther Deschner <gd@samba.org> | 2010-04-07 15:16:52 +0200 |
commit | 511dba5ae8529f8a3e661a2d9d0e6426e38fbee8 (patch) | |
tree | f0f51e2d28729892a5a04522aaf09594b264c175 /source3/rpc_server/srv_spoolss_util.h | |
parent | bc235459094f01e6fbf3b544bb4848427ceae9d5 (diff) | |
download | samba-511dba5ae8529f8a3e661a2d9d0e6426e38fbee8.tar.gz samba-511dba5ae8529f8a3e661a2d9d0e6426e38fbee8.tar.bz2 samba-511dba5ae8529f8a3e661a2d9d0e6426e38fbee8.zip |
s3-spoolss: Added a get_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.h | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/source3/rpc_server/srv_spoolss_util.h b/source3/rpc_server/srv_spoolss_util.h index 4faa35049f..f63616f58f 100644 --- a/source3/rpc_server/srv_spoolss_util.h +++ b/source3/rpc_server/srv_spoolss_util.h @@ -52,4 +52,34 @@ WERROR winreg_set_printer_dataex(struct pipes_struct *p, uint8_t *data, uint32_t data_size); +/** + * @internal + * + * @brief Get printer data over a winreg pipe. + * + * @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[in] value The name of the value to query. + * + * @param[in] type The type of the value to query. + * + * @param[out] data A pointer to store the data. + * + * @param[out] data_size A pointer to store the size of the data. + * + * @return On success WERR_OK, a corresponding DOS error is + * something went wrong. + */ +WERROR winreg_get_printer_dataex(struct pipes_struct *p, + const char *printer, + const char *key, + const char *value, + enum winreg_Type *type, + uint8_t **data, + uint32_t *data_size); + #endif /* _SRV_SPOOLSS_UITL_H */ |