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.
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.