上一页 1 2 3 4 5 6 ··· 10 下一页
摘要: // 文件映射-共享内存服务端.cpp : 定义控制台应用程序的入口点。 // #include "stdafx.h" #include "windows.h" int _tmain(int argc, _TCHAR* argv[]) { HANDLE hMapFile = CreateFileMapping( INVALID_HANDLE_VALUE, ... 阅读全文
posted @ 2016-03-29 21:25 天还是那么蓝 阅读(183) 评论(0) 推荐(0) 编辑
摘要: // 注入Dll.cpp : 定义控制台应用程序的入口点。 // #include "stdafx.h" #include int _tmain(int argc, _TCHAR* argv[]) { //1 得到要被注入进程的句柄 HANDLE hProcess = OpenProcess(PROCESS_ALL_ACCESS, FALSE,792 ); //2... 阅读全文
posted @ 2016-03-29 21:25 天还是那么蓝 阅读(151) 评论(0) 推荐(0) 编辑
摘要: // 文件映射-操作文件.cpp : 定义控制台应用程序的入口点。 // #include "stdafx.h" #include int _tmain(int argc, _TCHAR* argv[]) { HANDLE hFile; // 文件句柄 HANDLE hMapFile; // 文件内存映射区域的句柄 LPVOID lpMapAd... 阅读全文
posted @ 2016-03-29 21:23 天还是那么蓝 阅读(125) 评论(0) 推荐(0) 编辑
摘要: // VirtualProtect.cpp : 定义控制台应用程序的入口点。 // #include "stdafx.h" #include "windows.h" typedef void (*FUN)(); FUN fun = NULL; int _tmain(int argc, _TCHAR* argv[]) { char* p2 = "Helloworld"; cha... 阅读全文
posted @ 2016-03-29 21:22 天还是那么蓝 阅读(834) 评论(0) 推荐(0) 编辑
摘要: // VirtualAlloc测试.cpp : 定义控制台应用程序的入口点。 // #include "stdafx.h" #include "windows.h" int _tmain(int argc, _TCHAR* argv[]) { // //预定一块区域,并不会占用物理内存 // LPVOID lpvBase = VirtualAlloc( // ... 阅读全文
posted @ 2016-03-29 21:20 天还是那么蓝 阅读(626) 评论(0) 推荐(0) 编辑
摘要: // Win原理第七天.cpp : 定义控制台应用程序的入口点。 // #include "stdafx.h" #include "windows.h" _declspec (thread) int a = 200; _declspec (thread) int b = 300; void Fun() { printf("%d", a); //在不同的线程内,线程局部存储的全局变量... 阅读全文
posted @ 2016-03-29 21:17 天还是那么蓝 阅读(272) 评论(0) 推荐(0) 编辑
摘要: // 02 遍历导入表.cpp : 定义控制台应用程序的入口点。 // #include "stdafx.h" #include //************************************ // Method: IsPeFile // FullName: IsPeFile // Access: public // Returns: bool 成功失败... 阅读全文
posted @ 2016-03-28 16:21 天还是那么蓝 阅读(438) 评论(0) 推荐(0) 编辑
摘要: // 01 遍历导出表.cpp : 定义控制台应用程序的入口点。 // #include "stdafx.h" #include "windows.h" //************************************ // Method: IsPeFile // FullName: IsPeFile // Access: public // Returns: ... 阅读全文
posted @ 2016-03-28 16:20 天还是那么蓝 阅读(595) 评论(0) 推荐(0) 编辑
摘要: // 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... 阅读全文
posted @ 2016-03-28 16:09 天还是那么蓝 阅读(164) 评论(0) 推荐(0) 编辑
摘要: // 02 解析PE头.cpp : 定义控制台应用程序的入口点。 // #include "stdafx.h" #include "windows.h" bool IsPeFile(TCHAR* szPath) { BOOL bSuccess = TRUE; //1 将PE文件读取到内存 HANDLE hFile = CreateFile( szPat... 阅读全文
posted @ 2016-03-28 15:47 天还是那么蓝 阅读(753) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 ··· 10 下一页