@msdn=http://search.microsoft.com/search/results.aspx?qu=$$$ @pinvoke=http://pinvoke.net/$$$.htm Summary: Unmounts a registry hive that had previously been mounted with RegLoadKey !!!!C# Signature: [DllImport("advapi32.dll", SetLastError=true)] static extern Int32 RegUnLoadKey( UInt32 hKey, string lpSubKey); !!!!VB Signature: Private Declare Auto Function RegUnLoadKey Lib "advapi32.dll" ( _ ByVal hKey As IntPtr, _ ByVal lpSubKey As String _ ) As Integer !!!!User-Defined Types: None. !!!!Alternative Managed API: Do you know one? Please contribute it! !!!!Notes: LONG RegUnLoadKey( HKEY hKey, LPCTSTR lpSubKey ); !!!!Tips & Tricks: Please add some! !!!!Sample Code: Public Shared Sub UnLoadKey(ByVal Key As RegistryKey, ByVal MountPoint As String) Dim ret As Integer ret = RegUnLoadKey(Key.hKey, MountPoint) If ret <> 0 Then Throw New Win32Exception(ret) End If End Sub Documentation: RegUnLoadKey@msdn on MSDN !!!!See also: RegSaveKey to save registry key to file RegRestoreKey to restore registry key from a file RegLoadKey
Edit advapi32.RegUnLoa...
You do not have permission to change this page. If you feel this is in error, please send feedback with the contact link on the main page.