Click to See Complete Forum and Search --> : Registry Operations on NT


Myo Nyunt Aung
April 5th, 1999, 03:56 PM
Hi All,
The problem I'm faced with is :
RegSaveKey() and RegRestoreKey()function under NT return ERROR_PRIVILEGE_NOT_HELD error code.
Does anyone know how to fix that error ?
Thanks in advance,
Myo

Dave Lorde
April 6th, 1999, 08:27 AM
For RegSaveKey under Windows NT, the calling process must have the SE_BACKUP_NAME privilege enabled.

For RegRestoreKey under Windows NT, the calling process must have the SE_RESTORE_NAME privilege enabled.

Check out privileges and security attributes in the docs.

Dave