i'm having a difficult time getting the RegLoadKey api to work. so far i have successfully enabled the SE_RESTORE_NAME and SE_BACKUP_NAME token privileges, but when i go to try to load the file i get the "A required privilege is not held by the client" error.
here's some of the code:
str_FileHiveKey db "RegistryHive",0
str_OpenFile db "C:\Temp\testhive",0
...
invoke RegLoadKey, HKEY_LOCAL_MACHINE,ADDR str_FileHiveKey,ADDR str_OpenFile
as far as i'm aware, the RegLoadKey function returns ERROR_SUCCESS but i instead get the above mentioned error. any ideas are appreciated! ^_^