|
-
March 1st, 2006, 02:50 AM
#1
Export registry key
Is there API function that exports registry key?
-
March 1st, 2006, 04:02 AM
#2
Re: Export registry key
One way to do it is simply use ::CreateProcess(..) with regedit.exe command lines for export, here is a sample:
Code:
char szRegCommand[MAX_PATH];
::sprintf(szRegCommand,"regedit.exe /e:a \"c:\\Exported.reg\" \"HKEY_CURRENT_USER\\Software\\Microsoft\\Windows\\CurrentVersion\\Run\"");
STARTUPINFO SI={0};
PROCESS_INFORMATION PI={0};
::CreateProcess(0,szRegCommand,0,NULL,false,CREATE_DEFAULT_ERROR_MODE,NULL,0,&SI,&PI);
Cheers
-
March 1st, 2006, 08:58 AM
#3
Re: Export registry key
Have you tried using RegSaveKeyEx?
Gort...Klaatu, Barada Nikto!
-
March 1st, 2006, 09:17 AM
#4
Re: Export registry key
 Originally Posted by Mike Harnad
Have you tried using RegSaveKeyEx?
Looks promising somehow it missed that api 
Cheers
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|