Re: RegRestoreKey() Problem
What did RegSaveKey return?
What does RegRestoreKey return?
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"...
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! :cool:
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.