CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Apr 1999
    Posts
    3

    Registry Operations on NT

    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



  2. #2
    Join Date
    Apr 1999
    Posts
    383

    Re: Registry Operations on NT

    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



Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured