Click here to Skip to main content
Click here to Skip to main content
Add your own
alternative version
Go to top

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.
regsr_src.zip
res
RegSR.ico
RegConfig.ini
RegConfig.ini.bak
RegSR.clw
RegSR.dsp
RegSR.dsw
// 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
public:
	CMainDlg(CWnd* pParent = NULL);	// standard constructor

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

	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CMainDlg)
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);	// DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:
	HICON m_hIcon;
	
	// Generated message map functions
	//{{AFX_MSG(CMainDlg)
	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();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()

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

//{{AFX_INSERT_LOCATION}}
// 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.

License

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

Share

About the Author

JOHN11
Web Developer
France France
No Biography provided

| Advertise | Privacy | Mobile
Web04 | 2.8.140916.1 | Last Updated 24 Aug 2004
Article Copyright 2004 by JOHN11
Everything else Copyright © CodeProject, 1999-2014
Terms of Service
Layout: fixed | fluid