Use RegDeleteTree in RegistryKey.DeleteSubKeyTree (#82598)
authorHuo Yaoyuan <huoyaoyuan@hotmail.com>
Fri, 21 Jul 2023 09:12:59 +0000 (17:12 +0800)
committerGitHub <noreply@github.com>
Fri, 21 Jul 2023 09:12:59 +0000 (11:12 +0200)
commit03acd23bc8c209282c0a2e9664de81e962999da4
treedc9d5e19432364a05b27ba27a1f542ca812c8206
parentf695b49f77df6509253f0811be3ca42f5aa72326
Use RegDeleteTree in RegistryKey.DeleteSubKeyTree (#82598)

* Use RegDeleteTree in RegistryKey.DeleteSubKeyTree

* Restore self delete behavior

* Call RegDeleteTree on subkey to simulate permission behavior.

* Adjust comment and add tests.
src/libraries/Common/src/Interop/Windows/Advapi32/Interop.RegDeleteTree.cs [new file with mode: 0644]
src/libraries/Microsoft.Win32.Registry/src/Microsoft.Win32.Registry.csproj
src/libraries/Microsoft.Win32.Registry/src/Microsoft/Win32/RegistryKey.cs
src/libraries/Microsoft.Win32.Registry/tests/RegistryKey/RegistryKey_DeleteSubKeyTree_str.cs