- Backup Windows system registry.
- Posted by Windows Application on December 17th, 2005
Hello Group:
I been trying to work out a way to connect into a machine
and backup the windows registry, but without any success,
part of the problem is that I am new to the Win32 API calls,
and sure could use your help, how can I backup the system
registry from my program.
Thanks for the pointers.
- Posted by Kellie Fitton on December 17th, 2005
Hi,
Use the following API's to backUp the Windows registry:
GetCurrentProcess()
OpenProcessToken() using TOKEN_ADJUST_PRIVILEGES
LookupPrivilegeValue() using SE_BACKUP_NAME
AdjustTokenPrivileges() using SE_PRIVILEGE_ENABLED
RegConnectRegistry()
RegEnumKeyEx()
RegCreateKeyEx()
RegSaveKey()
RegCloseKey()
AdjustTokenPrivileges(hToken,
TRUE,
NULL,
0,
NULL,
NULL);
CloseHandle()
http://msdn.microsoft.com/library/de...entprocess.asp
http://msdn.microsoft.com/library/de...ocesstoken.asp
http://msdn.microsoft.com/library/de...ilegevalue.asp
http://msdn.microsoft.com/library/de...privileges.asp
http://msdn.microsoft.com/library/de...ctregistry.asp
http://msdn.microsoft.com/library/de...genumkeyex.asp
http://msdn.microsoft.com/library/de...reatekeyex.asp
http://msdn.microsoft.com/library/de...regsavekey.asp
http://msdn.microsoft.com/library/de...egclosekey.asp
http://msdn.microsoft.com/library/de...privileges.asp
http://msdn.microsoft.com/library/de...losehandle.asp
Hope these information helps,
Kellie.
- Posted by TC on December 17th, 2005
Why do you want to do that?
TC
- Windows Operating system backup CD (Networking) by Rider
- How to backup registry without backup utility (Computers & Technology) by The Babaloughesian
- Windows Can't Access System Registry (Computers & Technology) by cgott
- Assistance with backup of registry and system files, etc (Computers & Technology) by ECLiPSE 2002
- Backup/Restore Registry for Windows 2000 Professional (Software & Applications) by TranZ

