summaryrefslogtreecommitdiff
path: root/source3/rpc_client/cli_winreg.h
diff options
context:
space:
mode:
authorVicentiu Ciorbaru <cvicentiu@gmail.com>2011-07-12 19:37:31 +0300
committerAndreas Schneider <asn@samba.org>2011-07-13 10:08:56 +0200
commit8b3eff8b36129d9920685a84a902cdf109e27354 (patch)
tree0c4bd821371cbc475c69457c1fc43c54648712cc /source3/rpc_client/cli_winreg.h
parentc6ece60405e48ea2f62f9ae92eef551e041226c2 (diff)
downloadsamba-8b3eff8b36129d9920685a84a902cdf109e27354.tar.gz
samba-8b3eff8b36129d9920685a84a902cdf109e27354.tar.bz2
samba-8b3eff8b36129d9920685a84a902cdf109e27354.zip
s3-rpc_client: Added dcerpc_winreg_enumvals() function.
The function is set to replace the more specific printer function winreg_printer_enumvalues() function. Signed-off-by: Andreas Schneider <asn@samba.org>
Diffstat (limited to 'source3/rpc_client/cli_winreg.h')
-rw-r--r--source3/rpc_client/cli_winreg.h35
1 files changed, 35 insertions, 0 deletions
diff --git a/source3/rpc_client/cli_winreg.h b/source3/rpc_client/cli_winreg.h
index 413aba5425..f4af4ce849 100644
--- a/source3/rpc_client/cli_winreg.h
+++ b/source3/rpc_client/cli_winreg.h
@@ -378,6 +378,41 @@ NTSTATUS dcerpc_winreg_enum_keys(TALLOC_CTX *mem_ctx,
uint32_t *pnum_subkeys,
const char ***psubkeys,
WERROR *pwerr);
+/**
+ * @internal
+ *
+ * @brief Enumerate values of an opened key handle and retrieve the data.
+ *
+ * @param[in] mem_ctx The memory context to use.
+ *
+ * @param[in] winreg_handle The binding handle for the rpc connection.
+ *
+ * @param[in] key_hnd The opened key handle.
+ *
+ * @param[out] pnum_values A pointer to store the number of values we found.
+ *
+ * @param[out] pnames A pointer to store all the names of the values we found.
+ *
+ * @param[out] _type A pointer to store all the types coresponding with the
+ * values found.
+ * @param[out] pdata A pointer to store the data coresponding to the values.
+ *
+ * @param[out] pwerr A pointer to the WERROR. WERR_OK on success
+ * WERR_OK on success, the corresponding DOS error
+ * code if something's gone wrong.
+ *
+ * @return NT_STATUS_OK on success or a corresponding error if
+ * there was a problem on the connection.
+ */
+
+NTSTATUS dcerpc_winreg_enumvals(TALLOC_CTX *mem_ctx,
+ struct dcerpc_binding_handle *h,
+ struct policy_handle *key_hnd,
+ uint32_t *pnum_values,
+ const char ***pnames,
+ enum winreg_Type **_type,
+ DATA_BLOB **pdata,
+ WERROR *pwerr);
#endif /* CLI_WINREG_H */