Click here to Skip to main content
15,885,309 members
Articles / Desktop Programming / MFC

Very secure method to save and restore registry

Rate me:
Please Sign up or sign in to vote.
4.18/5 (10 votes)
23 Aug 20047 min read 71K   988   20  
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.
//{{NO_DEPENDENCIES}}
// Microsoft Developer Studio generated include file.
// Used by RegSR.rc
//
#define IDS_HELLO                       1
#define IDS_USAGE                       1
#define IDS_EXAMPLE                     2
#define IDS_COPYRIGHT                   3
#define IDI_ICON1                       101
#define IDD_DIALOG1                     102
#define IDR_MAINFRAME                   105
#define IDC_EDIT_CONF_FILE              1000
#define IDC_COMBO_ROOT                  1001
#define IDC_EDIT_KEY_PATH               1002
#define IDC_IN_OUT_FILE                 1003
#define IDC_BUTTON_BROWSE_FILE          1004
#define IDC_BUTTON_SAVE                 1005
#define IDC_BUTTON_RESTORE              1006
#define IDC_BUTTON_BROWSE_FILE1         1007
#define IDC_EDIT_RESULT                 1008
#define IDC_BUTTON_GET_ERR_DESC         1009
#define IDC_COMBO_CONF_FILE             1010
#define IDC_COMBO_KEY_PATH              1011
#define IDC_COMBO_IN_OUT_FILE           1012

// Next default values for new objects
// 
#ifdef APSTUDIO_INVOKED
#ifndef APSTUDIO_READONLY_SYMBOLS
#define _APS_NEXT_RESOURCE_VALUE        106
#define _APS_NEXT_COMMAND_VALUE         40001
#define _APS_NEXT_CONTROL_VALUE         1013
#define _APS_NEXT_SYMED_VALUE           101
#endif
#endif

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


Written By
Web Developer
France France
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions