摘要:
// 02 遍历导入表.cpp : 定义控制台应用程序的入口点。 // #include "stdafx.h" #include //************************************ // Method: IsPeFile // FullName: IsPeFile // Access: public // Returns: bool 成功失败... 阅读全文
摘要:
// 01 遍历导出表.cpp : 定义控制台应用程序的入口点。 // #include "stdafx.h" #include "windows.h" //************************************ // Method: IsPeFile // FullName: IsPeFile // Access: public // Returns: ... 阅读全文
摘要:
// 01 Dll插件Dlg.h : 头文件 // #pragma once #include using std::vector; #include "Shape.h" typedef struct _SHAPE { CPoint Begin; CPoint End; }SHAPE; // CMy01Dll插件Dlg 对话框 class CMy01Dll插件Dlg : p... 阅读全文
摘要:
// 02 解析PE头.cpp : 定义控制台应用程序的入口点。 // #include "stdafx.h" #include "windows.h" bool IsPeFile(TCHAR* szPath) { BOOL bSuccess = TRUE; //1 将PE文件读取到内存 HANDLE hFile = CreateFile( szPat... 阅读全文
摘要:
// 01 判断是否是PE文件.cpp : 定义控制台应用程序的入口点。 // #include "stdafx.h" #include bool IsPeFile(TCHAR* szPath) { //1 将PE文件读取到内存 HANDLE hFile = CreateFile( szPath, GENERIC_READ, ... 阅读全文
摘要:
// PE001.cpp : 定义控制台应用程序的入口点。 // #include "stdafx.h" #include #include //函数声明,转换文件偏移量 DWORD CalcOffect(DWORD Rva); int _tmain(int argc, _TCHAR* argv[]) { //删除文件 //DeleteFile(TEXT("D:\\... 阅读全文