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

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

于 2022-03-25 发布 文件大小:64.57 MB
0 215
下载积分: 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 个回复

  • scrollJpane的运用实例!利用ScrollBar的功能使它可以利用滚动轴滚动窗口,乍看之下我们并不会直接使用到,JScrollBar的方法,因为JScr...
    scrollJpane的运用实例!利用ScrollBar的功能使它可以利用滚动轴滚动窗口,乍看之下我们并不会直接使用到,JScrollBar的方法,因为JScrollPane都帮我们处理得好好的,但如果我们想对滚动轴做更细的设置,例如在拖曳时一次滚动多少区域等,就必须了JScrollBar所提供的功能了。JScrollBar在处理窗口的滚动并不像JScrollPane那么容易,看起来也比 JScrollPane简单得许多,因此通常在实现时我们会取一些JScrollBar所提供的功能.-scrollJpane examples of the use! ScrollBar use of the function so that it could use the rolling axis scroll window, and at first glance w ill not be directly used. JScrollBar method because JScrollPane have helped us to deal with good, but if we want to do more rolling axis small settings, such as when a tractor in the number of regional rolling, a must JScrollBar provided by the function. JScrollBar window in the rolling JScrollPane is not as easy than JScrollPane seem simple that many, it is often the realization, we will take some JScrollBar provided by the function.
    2023-03-28 05:35:03下载
    积分:1
  • 基于bootstrap的博客界面
    Bootstrap是Twitter推出的一个用于前端开发的开源工具包。它由Twitter的设计师Mark Otto和Jacob Thornton合作开发,是一个CSS/HTML框架。基于bootstrap的界面,交互式非常强,非常适合新手学习~
    2023-01-09 07:55:04下载
    积分:1
  • 基于VQ的说话人识别程序 分为训练和识别两个步骤 具体请见程序...
    基于VQ的说话人识别程序 分为训练和识别两个步骤 具体请见程序-VQ-based speaker recognition process is divided into training and to identify the specific two-step procedure, see
    2022-01-31 07:30:44下载
    积分:1
  • 精致的金山毒霸6界面
    精致的金山毒霸6界面-exquisite hand over 6 interface
    2022-05-27 04:58:01下载
    积分:1
  • 俄罗斯方块
    经典游戏俄罗斯方块,使用C语言编写的MFC程序。MFC的结构也许更清晰,更容易看懂。功能基本不变,每打到300分,速度增加一级。同时消去两行以上,会放烟花。同时消除的行数越多,烟花规模越大。
    2022-06-03 02:56:38下载
    积分:1
  • VC++ 写字板代码
    一个简单的写字板程序,非常适合初学vc,mfc的同志们学习。把这个项目搞定了,想必其他更复杂的工程也不成问题,好好学习吧。
    2022-02-06 09:26:17下载
    积分:1
  • used to create irregular Window source, to be a beautiful program interface
    用来生成不规则窗体的源程序,做个漂亮的程序界面-used to create irregular Window source, to be a beautiful program interface
    2022-03-06 13:06:18下载
    积分:1
  • 在MFC多线程示例
    multi threading sample in mfc
    2022-03-21 10:43:05下载
    积分:1
  • 模仿msn界面,对做界面程序有很大的借鉴.
    模仿msn界面,对做界面程序有很大的借鉴.-imitate msn interface, the interface procedures are so great draw.
    2022-03-10 09:48:32下载
    积分:1
  • 缩放窗口库,支持所有类型的窗口,你只需要把基类改成对应的类就可以了,我已经改了上面很多错误...
    缩放窗口库,支持所有类型的窗口,你只需要把基类改成对应的类就可以了,我已经改了上面很多错误-zoom window for, and support all types of windows, you simply need to change the base class counterparts on the category, I have changed a lot of mistakes above
    2022-05-31 16:10:48下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载