该程序只是介绍了PE文件的结构并简单的修改了一下,并没有向win32汇编中的那样先获得kernel.dll的地址,所以必须保证要修改的文件中加载了user32.dll.
ChangePE.dsp
This file (the project file) contains information at the project level and
is used to build a single project or subproject. Other users can share the
project (.dsp) file, but they should export the makefiles locally.
ChangePE.h
This is the main header file for the application. It includes other
project specific headers (including Resource.h) and declares the
CChangePEApp application class.
ChangePE.cpp
This is the main application source file that contains the application
class CChangePEApp.
ChangePE.rc
This is a listing of all of the Microsoft Windows resources that the
program uses. It includes the icons, bitmaps, and cursors that are stored
in the RES subdirectory. This file can be directly edited in Microsoft
Visual C++.
ChangePE.clw
This file contains information used by ClassWizard to edit existing
classes or add new classes. ClassWizard also uses this file to store
information needed to create and edit message maps and dialog data
maps and to create prototype member functions.
resChangePE.ico
This is an icon file, which is used as the application's icon. This
icon is included by the main resource file ChangePE.rc.
resChangePE.rc2
This file contains resources that are not edited by Microsoft
Visual C++. You should place all resources not editable by
the resource editor in this file.
ChangePEDlg.h, ChangePEDlg.cpp - the dialog
These files contain your CChangePEDlg class. This class defines
the behavior of your application's main dialog. The dialog's
template is in ChangePE.rc, which can be edited in Microsoft
Visual C++.
/////////////////////////////////////////////////////////////////////////////
Other standard files:
StdAfx.h, StdAfx.cpp
These files are used to build a precompiled header (PCH) file
named ChangePE.pch and a precompiled types file named StdAfx.obj.
Resource.h
This is the standard header file, which defines new resource IDs.
Microsoft Visual C++ reads and updates this file.