diff options
author | Vicentiu Ciorbaru <cvicentiu@gmail.com> | 2011-07-12 19:38:14 +0300 |
---|---|---|
committer | Andreas Schneider <asn@samba.org> | 2011-07-13 10:09:08 +0200 |
commit | 4558225cdd9c29a4b683101f39f627bf61a580af (patch) | |
tree | 8df9b5ff5782b9e0d1056f628cb33aec166eb280 /source3/rpc_client/cli_winreg.h | |
parent | 8b3eff8b36129d9920685a84a902cdf109e27354 (diff) | |
download | samba-4558225cdd9c29a4b683101f39f627bf61a580af.tar.gz samba-4558225cdd9c29a4b683101f39f627bf61a580af.tar.bz2 samba-4558225cdd9c29a4b683101f39f627bf61a580af.zip |
s3-rpc_client: Added dcerpc_winreg_delete_subkeys_recursive() function.
This function is set to replace the more specific printer function
winreg_printer_delete_subkeys().
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.h | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/source3/rpc_client/cli_winreg.h b/source3/rpc_client/cli_winreg.h index f4af4ce849..a5162633db 100644 --- a/source3/rpc_client/cli_winreg.h +++ b/source3/rpc_client/cli_winreg.h @@ -414,6 +414,36 @@ NTSTATUS dcerpc_winreg_enumvals(TALLOC_CTX *mem_ctx, DATA_BLOB **pdata, WERROR *pwerr); +/** + * @internal + * + * @brief A function to delete a key and its subkeys recurively. + * + * @param[in] mem_ctx The memory context to use. + * + * @param[in] winreg_handle The binding handle for the rpc connection. + * + * @param[in] hive_handle A opened hive handle to the key. + * + * @param[in] access_mask The access mask to access the key. + * + * @param[in] key The key to delete + * + * @param[out] WERR_OK on success, the corresponding DOS error + * code if something gone wrong. + * + * @return NT_STATUS_OK on success or a corresponding error if + * there was a problem on the connection. + */ + +NTSTATUS dcerpc_winreg_delete_subkeys_recursive(TALLOC_CTX *mem_ctx, + struct dcerpc_binding_handle *h, + struct policy_handle *hive_handle, + uint32_t access_mask, + const char *key, + WERROR *pwerr); + + #endif /* CLI_WINREG_H */ /* vim: set ts=8 sw=8 noet cindent syntax=c.doxygen: */ |