摘要: 制作c++的dll// MyCppDll.cpp : 定义 DLL 应用程序的导出函数。// 这一句必须#include "stdafx.h"// 导入自己想要的头文件#include // 为函数加入以下声明即可导出:extern "C" extern __declspec(dllexport) // 另外,加入以上声明后函數調用約定默认为“Cdecl”,若要强制指定为,请在函数的返回类型之后加入“__stdcall”关键字extern "C" extern __declspec(dllexport) LPCWSTR __stdca 阅读全文
posted @ 2011-12-06 09:50 beta2013 阅读(160) 评论(0) 推荐(0) 编辑
摘要: 故障现象代码远程注入执行后远程进程异常退出,见截图远程进程代码// Win32Console.cpp : 定义控制台应用程序的入口点。//#include "stdafx.h"#include "process.h"#include using namespace std;void myFunc(int p1,int p2){ cout#include using namespace std;int EnableDebugPriv(LPCWSTR name){ HANDLE hToken; TOKEN_PRIVILEGES tp; LUID luid; 阅读全文
posted @ 2011-12-06 00:09 beta2013 阅读(450) 评论(0) 推荐(0) 编辑