随笔分类 - PE
摘要:// 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: ...
阅读全文
摘要:// 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:\\...
阅读全文

浙公网安备 33010602011771号