[DllImport("coredll.dll")]
public static extern int RegFlushKey(IntPtr hKey);
Declare Function RegFlushKey Lib "CoreDll.dll" (ByVal hkey As IntPtr) As UInt32
Declare Function RegFlushKey Lib "coredll" (ByVal hkey As IntPtr) As UInt32
Const HKEY_CLASSES_ROOT = &H80000000
Const HKEY_CURRENT_USER = &H80000001
Const HKEY_LOCAL_MACHINE = &H80000002
Const HKEY_USERS = &H80000003
RegFlushKey(HKEY_CLASSES_ROOT)
RegFlushKey(HKEY_CURRENT_USER)
RegFlushKey(HKEY_LOCAL_MACHINE)
RegFlushKey(HKEY_USERS)
None.
The .NET Compact Framework does not contain a HandleRef type, so it may be necessary to call GC.KeepAlive after calling this function if the calling class wraps the hKey parameter as an unmanaged resource.
None.
RegistryKey.Flush()