登录
首页 » 界面开发 » MFC创建进程、打开进程、终止进程

MFC创建进程、打开进程、终止进程

于 2022-03-25 发布 文件大小:64.57 MB
0 182
下载积分: 2 下载次数: 1

代码说明:

资源描述 创建进程、打开进程、终止进程 *两个函数 CreateProcess、openProcess、TerminateProcess *获得进程句柄 *获得进程号 *提升进程权限 *Microsoft Spy++ 操作平台:win10+vs2013 pro 操作步骤: 1、创建进程 PROCESS_INFORMATION pi;//进程信息结构 STARTUPINFO si;//启动信息结构 memset(&si, 0, sizeof(si)); si.cb = sizeof(si); si.wShowWindow = SW_SHOW; si.dwFlags = STARTF_USESHOWWINDOW; TCHAR szPath[] = TEXT("c:windowssystem32 otepad.exe E:c++MFCa.txt"); BOOL bRet = ::CreateProcess(NULL, szPath, NULL, FALSE, NULL, NULL, NULL, NULL, &si, &pi); int error = GetLastError(); if (bRet) { ::CloseHandle(pi.hThread); ::CloseHandle(pi.hProcess); AfxMessageBox(TEXT("创建进程成功")); } else { AfxMessageBox(TEXT("创建进程失败")); } 2、打开进程 DWORD pid; //若有指定窗口类和窗口名称则表示成功返回一个窗口的句柄 HWND hCalc = ::FindWindow(TEXT("Note

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • 共享的源代码 CLI
    共享源代码 CLI 是源代码的压缩的归档文件的 ECMA CLI 和 ECMA C# 语言规范的工作实现。此实现生成并运行 Windows XP,FreeBSD 操作系统,和 Mac OS X 10.2。
    2022-03-06 11:45:18下载
    积分:1
  • opengl 实现小球碰撞
    应用背景openGL的3D的小球碰撞游戏,。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。GAME。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。关键技术openGL的3D的小球碰撞游戏,用挡板来接小球,小球离开挡板则游戏结束-openGL 3D pong GAME。
    2022-04-24 08:10:18下载
    积分:1
  • C + +
    源码c++ 是做股票软件的 !增加可以去看看的 你先看下 -c++
    2022-03-19 20:26:47下载
    积分:1
  • Internet Explorer 4 style UI IE4.0风格的效果(29KB)
    Internet Explorer 4 style UI IE4.0风格的界面效果(29KB)-style UI Batteries style interface effects (Take)
    2023-03-14 14:40:03下载
    积分:1
  • 经典的Button控件类,适合永久保存使用
    经典的Button控件类,适合永久保存使用
    2022-03-21 09:35:16下载
    积分:1
  • VB some arithmetic algorithm, the solutions to differential equations, and some...
    VB实现的一些数学运算算法,有解微分方程,定积分和一些函数绘图的测试,适合初学者。-VB some arithmetic algorithm, the solutions to differential equations, and some integral function mapping tests, for beginners.
    2022-03-01 21:41:59下载
    积分:1
  • 如何同时选定多个目录
    如何同时选定多个目录-also selected a number of Contents
    2022-06-13 08:09:31下载
    积分:1
  • transfer with jlist
    导入java.util.Random文件;
    2022-01-27 21:27:07下载
    积分:1
  • 实现接口。另一个使用ListControl空间特征及其实现…
    实现界面圆角。另外利用Listcontrol空间的一些特性,实现滚动显示。-achieve interface. Another use Listcontrol space characteristics and realize the rolling show.
    2022-05-12 15:31:08下载
    积分:1
  • This is a small animation production process. To help beginners learn graphical...
    这是一个生成动画的小程序。能够帮助初学者学习图形编程。方便易用。-This is a small animation production process. To help beginners learn graphical programming. Easy-to-use.
    2022-07-06 21:55:41下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载