G
Guest
I am having problems pinvoking the RegFlushKey function to flush my Hive registry, i keep getting a System.NotSupported Exception when i call it. Am i doing something wrong? Here is the code
Const HKEY_LOCAL_MACHINE = &H8000000
Private Declare Function RegFlushKey Lib "coredll.dll" (ByVal hKey As Long) As Lon
dim r as Long = RegFlushKey(HKEY_LOCAL_MACHINE)
Const HKEY_LOCAL_MACHINE = &H8000000
Private Declare Function RegFlushKey Lib "coredll.dll" (ByVal hKey As Long) As Lon
dim r as Long = RegFlushKey(HKEY_LOCAL_MACHINE)