Introduce reg_key::delete_subkey() method

Signed-off-by: Simon Rozman <simon@rozman.si>
This commit is contained in:
2020-06-29 15:15:36 +02:00
parent b5c020c732
commit 85075cd419
2 changed files with 48 additions and 0 deletions

View File

@@ -1069,6 +1069,17 @@ namespace winstd
}
}
///
/// Deletes the specified registry subkey.
///
/// \param[in] szSubkey Name of the subkey to delete
///
/// \return
/// - true when creation succeeds;
/// - false when creation fails. For extended error information, call `GetLastError()`.
///
bool delete_subkey(_In_z_ LPCTSTR szSubkey);
protected:
///
/// Closes a handle to the registry key.