Skip to content

Commit

Permalink
内核层注册表编辑器
Browse files Browse the repository at this point in the history
  • Loading branch information
ChengChengCC committed Jan 5, 2016
1 parent 0ef9ea5 commit 5b07016
Show file tree
Hide file tree
Showing 50 changed files with 8,186 additions and 0 deletions.
26 changes: 26 additions & 0 deletions Register/RegisterManager/RegisterManager.sln
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@

Microsoft Visual Studio Solution File, Format Version 11.00
# Visual Studio 2010
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "RegisterManager", "RegisterManager\RegisterManager.vcxproj", "{118E09E5-83B5-4DC6-A3ED-70F0F1BFE66C}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Win32 = Debug|Win32
Debug|x64 = Debug|x64
Release|Win32 = Release|Win32
Release|x64 = Release|x64
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{118E09E5-83B5-4DC6-A3ED-70F0F1BFE66C}.Debug|Win32.ActiveCfg = Debug|Win32
{118E09E5-83B5-4DC6-A3ED-70F0F1BFE66C}.Debug|Win32.Build.0 = Debug|Win32
{118E09E5-83B5-4DC6-A3ED-70F0F1BFE66C}.Debug|x64.ActiveCfg = Debug|x64
{118E09E5-83B5-4DC6-A3ED-70F0F1BFE66C}.Debug|x64.Build.0 = Debug|x64
{118E09E5-83B5-4DC6-A3ED-70F0F1BFE66C}.Release|Win32.ActiveCfg = Release|Win32
{118E09E5-83B5-4DC6-A3ED-70F0F1BFE66C}.Release|Win32.Build.0 = Release|Win32
{118E09E5-83B5-4DC6-A3ED-70F0F1BFE66C}.Release|x64.ActiveCfg = Release|x64
{118E09E5-83B5-4DC6-A3ED-70F0F1BFE66C}.Release|x64.Build.0 = Release|x64
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
EndGlobal
Binary file added Register/RegisterManager/RegisterManager.suo
Binary file not shown.
72 changes: 72 additions & 0 deletions Register/RegisterManager/RegisterManager/KeyDlg.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
// KeyDlg.cpp : 实现文件
//

#include "stdafx.h"
#include "RegisterManager.h"
#include "KeyDlg.h"
#include "afxdialogex.h"


// CKeyDlg 对话框

IMPLEMENT_DYNAMIC(CKeyDlg, CDialog)

CKeyDlg::CKeyDlg(CWnd* pParent /*=NULL*/)
: CDialog(CKeyDlg::IDD, pParent)
, m_strKeyNameStatic(_T(""))
, m_strKeyNameEdit(_T(""))
{

}

CKeyDlg::~CKeyDlg()
{
}

void CKeyDlg::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
DDX_Text(pDX, IDC_KEY_NAME, m_strKeyNameStatic);
DDX_Text(pDX, IDC_EDIT, m_strKeyNameEdit);
}


BEGIN_MESSAGE_MAP(CKeyDlg, CDialog)
END_MESSAGE_MAP()


// CKeyDlg 消息处理程序


BOOL CKeyDlg::OnInitDialog()
{
CDialog::OnInitDialog();

switch (m_nDlgType)
{
case enumRenameKey:
SetWindowText(L"重命名键");
m_strKeyNameStatic = L"新键名";
break;

case enumRenameValue:
SetWindowText(L"重命名键值");
m_strKeyNameStatic = L"新键值";
break;

case enumCreateKey:
SetWindowText(L"创建新键");
m_strKeyNameStatic = L"新键名";
break;

case enumSetValueKey:
SetWindowText(L"创建新值");
m_strKeyNameStatic = L"新键值";
break;
}

UpdateData(FALSE);

return TRUE; // return TRUE unless you set the focus to a control
// 异常: OCX 属性页应返回 FALSE
}
36 changes: 36 additions & 0 deletions Register/RegisterManager/RegisterManager/KeyDlg.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
#pragma once


// CKeyDlg 对话框


typedef enum DLG_TYPE
{
enumRenameKey,
enumCreateKey,
enumSetValueKey,
enumRenameValue,
};
class CKeyDlg : public CDialog
{
DECLARE_DYNAMIC(CKeyDlg)

public:
CKeyDlg(CWnd* pParent = NULL); // 标准构造函数
virtual ~CKeyDlg();

DLG_TYPE m_nDlgType;


// 对话框数据
enum { IDD = IDD_KEY_DIALOG };

protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV 支持

DECLARE_MESSAGE_MAP()
public:
CString m_strKeyNameStatic;
CString m_strKeyNameEdit;
virtual BOOL OnInitDialog();
};
77 changes: 77 additions & 0 deletions Register/RegisterManager/RegisterManager/ReadMe.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
================================================================================
MICROSOFT �������: RegisterManager ��Ŀ����
===============================================================================

Ӧ�ó�������Ϊ����������� RegisterManager Ӧ�ó��򡣴�Ӧ�ó��򲻽���ʾ Microsoft ������Ļ���ʹ�÷�����������Ϊ����дӦ�ó������㡣

���ļ���Ҫ������� RegisterManager Ӧ�ó����ÿ���ļ������ݡ�

RegisterManager.vcxproj
����ʹ��Ӧ�ó��������ɵ� VC++ ��Ŀ������Ŀ�ļ���
���������ɸ��ļ��� Visual C++ �İ汾��Ϣ���Լ��й�ʹ��Ӧ�ó�����ѡ���ƽ̨�����ú���Ŀ���ܵ���Ϣ��

RegisterManager.vcxproj.filters
����ʹ�á�Ӧ�ó����򵼡����ɵ� VC++ ��Ŀɸѡ���ļ���
�������й���Ŀ�ļ���ɸѡ��֮��Ĺ�����Ϣ���� IDE �У�ͨ�����ֹ��������ض��ڵ����Է�����ʽ��ʾ����������չ�����ļ������磬��.cpp���ļ��롰Դ�ļ���ɸѡ��������

RegisterManager.h
����Ӧ�ó������Ҫͷ�ļ���������������Ŀ�ض���ͷ�ļ�(���� Resource.h)�������� CRegisterManagerApp Ӧ�ó����ࡣ

RegisterManager.cpp
���ǰ���Ӧ�ó����� CRegisterManagerApp ����ҪӦ�ó���Դ�ļ���

RegisterManager.rc
���dz���ʹ�õ����� Microsoft Windows ��Դ���б��������� RES ��Ŀ¼�д洢��ͼ�ꡢλͼ�͹�ꡣ���ļ�����ֱ���� Microsoft Visual C++ �н��б༭����Ŀ��Դλ�� 2052 �С�

res\RegisterManager.ico
��������Ӧ�ó���ͼ���ͼ���ļ�����ͼ���������Ҫ��Դ�ļ� RegisterManager.rc �С�

res\RegisterManager.rc2
���ļ��������� Microsoft Visual C++ �н��б༭����Դ����Ӧ�ý���������Դ�༭���༭��������Դ���ڴ��ļ��С�


/////////////////////////////////////////////////////////////////////////////

Ӧ�ó����򵼴���һ���Ի�����:

RegisterManagerDlg.h��RegisterManagerDlg.cpp - �Ի���
��Щ�ļ����� CRegisterManagerDlg �ࡣ���ඨ��Ӧ�ó������Ի������Ϊ���öԻ����ģ��λ�� RegisterManager.rc �У����ļ������� Microsoft Visual C++ �н��б༭��


/////////////////////////////////////////////////////////////////////////////

��������:

ActiveX �ؼ�
Ӧ�ó��������ʹ�� ActiveX �ؼ���֧�֡�

��ӡ����ӡԤ��֧��
Ӧ�ó�������ͨ���� MFC ����� CView ���еij�Ա���������������ڴ�����ӡ����ӡ���úʹ�ӡԤ������Ĵ��롣

/////////////////////////////////////////////////////////////////////////////

������׼�ļ�:

StdAfx.h��StdAfx.cpp
��Щ�ļ�����������Ϊ RegisterManager.pch ��Ԥ����ͷ (PCH) �ļ�����Ϊ StdAfx.obj ��Ԥ���������ļ���

Resource.h
���DZ�׼ͷ�ļ����������µ���Դ ID��
Microsoft Visual C++ ��ȡ�����´��ļ���

RegisterManager.manifest
Ӧ�ó����嵥�ļ��� Windows XP ��������Ӧ�ó���
���ض��汾���г��򼯵������ԡ����س���ʹ�ô�
��Ϣ�ӳ��򼯻�������ʵ��ij��򼯻�
��Ӧ�ó������˽����Ϣ��Ӧ�ó����嵥����Ϊ�����·ַ�����Ϊ
��Ӧ�ó����ִ���ļ���װ����ͬ�ļ����е��ⲿ .manifest �ļ�������
Ҳ��������Դ����ʽ�����ڸÿ�ִ���ļ��С�
/////////////////////////////////////////////////////////////////////////////

����ע��:

Ӧ�ó�����ʹ�á�TODO:��ָʾӦ���ӻ��Զ����Դ���벿�֡�

���Ӧ�ó����ڹ����� DLL ��ʹ�� MFC������Ҫ���·�����Щ MFC DLL�����Ӧ�ó������õ����������ϵͳ�ĵ�ǰ�������ò�ͬ������Ҫ���·�����Ӧ�ı��ػ���Դ MFC100XXX.DLL���й�����������ĸ�����Ϣ����μ� MSDN �ĵ����й� Redistributing Visual C++ applications (���·��� Visual C++ Ӧ�ó���)���½ڡ�

/////////////////////////////////////////////////////////////////////////////
Loading

0 comments on commit 5b07016

Please sign in to comment.