Click here to Skip to main content
13,295,472 members (28,354 online)
Click here to Skip to main content


20 bookmarked
Posted 23 Aug 2004

Very secure method to save and restore registry

, 23 Aug 2004
This article gives a very secure method to save and restore registry keys. It provides a ready to use tool in both command-line and UI modes.
// MainDlg.h : header file
// RegSR.h : main header file for the REGSR application
//	Author:		A.YEZZA
//	Date:		August 2004
//	Subject:	Save/Restore registry keys in very safe mode
//	Comment:	Use with your own risk
//	Licence:	This code and application are free. The only 
//				condition is preserving author name			

#if !defined(AFX_MAINDLG_H__F5214D3A_C35F_4707_9067_70716E6E9200__INCLUDED_)
#define AFX_MAINDLG_H__F5214D3A_C35F_4707_9067_70716E6E9200__INCLUDED_

#include "RegSR.h"	// Added by ClassView
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

#include "Resource.h"

// CMainDlg dialog

class CMainDlg : public CDialog
// Construction
	CMainDlg(CWnd* pParent = NULL);	// standard constructor

// Dialog Data
	enum { IDD = IDD_DIALOG1 };
	int		m_Root;
	CString	m_ConfFile;
	CString	m_InOutFile;
	CString	m_KeyPath;
	CString	m_Result;

	// ClassWizard generated virtual function overrides
	virtual void DoDataExchange(CDataExchange* pDX);	// DDX/DDV support

// Implementation
	HICON m_hIcon;
	// Generated message map functions
	virtual BOOL OnInitDialog();
	afx_msg void OnPaint();
	afx_msg HCURSOR OnQueryDragIcon();
	afx_msg void OnButtonBrowseForModule();
	afx_msg void OnButtonBrowseForFileData();
	afx_msg void OnButtonSave();
	afx_msg void OnButtonRestore();
	afx_msg void OnButtonGetErrDesc();

	void AddToList(UINT ListID, CString &NewItem);
	void SetParams(CString &Op);
	CmdParams m_Params;
	CString GetFile(CString & Title, int Falg, CString & DefFile, CString & DefExt);

// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_MAINDLG_H__F5214D3A_C35F_4707_9067_70716E6E9200__INCLUDED_)

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.


This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here


About the Author

Web Developer
France France
No Biography provided

You may also be interested in...

Permalink | Advertise | Privacy | Terms of Use | Mobile
Web01 | 2.8.171207.1 | Last Updated 24 Aug 2004
Article Copyright 2004 by JOHN11
Everything else Copyright © CodeProject, 1999-2017
Layout: fixed | fluid