RegCopyTree (advapi32)
Last changed: anonymous

.
Summary
Copies the specified registry key, along with its values and subkeys, to the specified destination key.

C# Signature:

[DllImport("advapi32.dll", SetLastError=true)]
public static extern int RegCopyTree(
     IntPtr hKeySrc,
     [MarshalAs(UnmanagedType.LPStr), Optional] string lpSubKey,
     IntPtr hKeyDest
);

VB Signature:

Declare Function RegCopyTree Lib "advapi32.dll" Alias "RegCopyTreeW" (hKeySrc As IntPtr, lpSubKey As String, hKeyDest As IntPtr) As Integer

User-Defined Types:

None.

Alternative Managed API:

Do you know one? Please contribute it!

Notes:

None.

Tips & Tricks:

Please add some!

Sample Code:

Please add some!

Documentation
RegCopyTree on MSDN