Using RegSaveKey

 

To use RegSaveKey, the current user must have the SE_BACKUP_NAME privilege

and your program must enable that privilege before executing RegSaveKey.

RegRestoreKey requires that the SE_RESTORE_NAME be held and enabled.