RegRestoreKey problem
        Posted  
        
            by Xaver
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by Xaver
        
        
        
        Published on 2010-04-27T08:41:55Z
        Indexed on 
            2010/04/27
            8:43 UTC
        
        
        Read the original article
        Hit count: 441
        
i want to do part of program which save and load some data from registry. Saving is succefuly working. I have function GrabPrivilage to grant some privilegies to my thread. i grant SE_RESTORE_NAME and SE_BACKUP_NAME to my thread and after that i call RegRestoreKey(HKEY_LOCAL_MACHINE, TEXT("C:\reg.txt"), REG_FORCE_RESTORE ); and it always return ERROR_ACCESS_DENIED.
© Stack Overflow or respective owner