RegDeleteTree (advapi32)
Last changed: -37.44.91.114

.
Summary
Deletes the subkeys and values of the specified key recursively.

C# Signature:

[DllImport("advapi32.dll",EntryPoint="RegDeleteTree", SetLastError=true)]
public static extern int RegDeleteTree(
     UIntPtr hKey,
     [MarshalAs(UnmanagedType.LPStr)] string lpSubKey = null
);

VB Signature:

Declare Function RegDeleteTree Lib "advapi32.dll" Alias "RegDeleteTreeW" (hKey As IntPtr, lpSubKey As String) As Integer

User-Defined Types:

None.

Alternative Managed API:

RegistryKey.DeleteSubKey Method

Notes:

None.

Tips & Tricks:

Please add some!

Sample Code:

Please add some!

Documentation