I always get this error:
RegOpenKeyEx failed with error code : 2
Please can some one explain why this is happening i am using an admin account
Code:fResult = RegOpenKeyEx(HKEY_LOCAL_MACHINE, _ KeyName, 0, _ READ_CONTROL Or WRITE_DAC, hkey) If fResult <> ERROR_SUCCESS Then MsgBox "RegOpenKeyEx failed with error code : " & fResult Else UpdatePermissionsOfRegistryKey hkey, Accounts RegCloseKey hkey




Reply With Quote