|
-
October 23rd, 2009, 08:02 AM
#1
RegRestoreKey() Problem
Im having problem with RegRestoreKey() function. I have previously saved some reg key with RegSaveKey(). Now while Im trying to restore those .dat files using RegRestoreKey() function is not being done..
Both SE_BACKUP_NAME and SE_RESTORE_NAME privilege has already set. what could be the possible reasons ??..
-
October 23rd, 2009, 08:58 AM
#2
Re: RegRestoreKey() Problem
What did RegSaveKey return?
What does RegRestoreKey return?
Victor Nijegorodov
-
October 23rd, 2009, 10:46 AM
#3
Re: RegRestoreKey() Problem
RegSaveKey is fine.. No issue with that.. cause I can see the file placed in my hdd.. and about RegRestoreKey. It's not returning ERROR_SUCCESS what it should be if its succeed.. and if i check with GetLastError with FormatMessage its saying "The operation complete successfully"...
-
October 23rd, 2009, 11:01 AM
#4
Re: RegRestoreKey() Problem
Registry APIs do NOT SetLastError (it is the reason you get "no error..." from SetLastError), instead they directly return you the error code!
Victor Nijegorodov
-
October 23rd, 2009, 11:41 AM
#5
Re: RegRestoreKey() Problem
Ok.. Its done now.. RegRestoreKey could not able to overwrite the keys.. I need to delete the key and then restore it.. Now there is no problem.. Anyways.. Thanks VictorN for your support.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|