Backuping the Registry in NT

I am trying to save a Registry's KEY using the command  RegSaveKey().
I get an error message "The specified module could not be found" and an empty file is created.
Has anybody an answer to this problem?
I am administrator on my computer, working with NT4

Who is Participating?
cclainConnect With a Mentor Commented:
In order to perform this operation, you need a specific user right:
'Back up files and directories'
If not, your file will be created but you will not be allowed to retrieve information
Check the validity of key you are passing to RegSaveKey()using RegQueryValue() API. May be the Key value is not correct.

Pablo_KAuthor Commented:
The KEY was open correctly.
May be there is a problem of rights?
Pablo_KAuthor Commented:
I am Administartor on my computer, as I see in UserManager , as admionistartor I have the right 'Back up files and directories', but I think really that the problem is arround this.
If I open Regedit I success to make backup to the Registry, may be this can give you some hints

Thank you
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.