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

Import/Export Registry Sections as XML

Rate me:
Please Sign up or sign in to vote.
4.33/5 (16 votes)
21 Jan 20033 min read 166K   6.1K   73  
Export registry sections as XML to simplify registry diffs
This article details a tool aimed to import/export registry sections in XML format, to make registry diff easier in practice.
#pragma once


// items from the image list

#define ILI_FOLDER 0
#define ILI_FOLDERS 1

#define ILI_STRING	2
#define ILI_BINARY	3

#define ILI_DEFAULT	4


//

#define FAKEDITEM "faked item"

//

// standard XML

#define XML_ROOT	"registry"
#define XML_KEY		"k"
#define XML_NAME	"name"
#define XML_VALUE	"v"
#define XML_VALUE2	"value"
#define XML_TYPE	"type"

// fake XML



//

struct KeyValue
{
	CString m_szName;
	CString m_szValue;
	DWORD m_nType;

	void SetKeyValue(CString &szName, CString &szValue, DWORD nType)
	{
		m_szName = szName;
		m_szValue = szValue;
		m_nType = nType;
	}

	CString GetName() { return m_szName; }
	CString GetValue() { return m_szValue; }
	DWORD GetType() { return m_nType; }

};

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.


Written By
France France
Addicted to reverse engineering. At work, I am developing business intelligence software in a team of smart people (independent software vendor).

Need a fast Excel generation component? Try xlsgen.

Comments and Discussions