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

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

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

  • RainQuantum_BLACK_by_ShawNN
    资源描述RainQUANTUM BLACK Author=r3ginald r3ginald@gmail.com http://r3ginald.tumblr.com ;-------------------------------------- This theme was based on the UI interface of the touchscreen devices used in Quantum of Solace, the latest James Bond film. Below is a list of widgets I made: - applications - bookmarks - calendar - clock - email - gadget (this has meters for CPU, RAM, battery life, and 2 HDDs.) - iTunes - notes - picture frame - radio - recycle - rss feed - settings  - uTorrent - weather - wifi Whats new: - Wifi comes in 2 skins: one with the available networks and one without it - I"ve included the eclipse icon pack
    2022-03-21 23:08:03下载
    积分:1
  • 固定的导航栏在屏幕的顶部
    应用背景如何在顶部和顶部安装头;。将头固定在屏幕的顶部,即使用户移动到屏幕的后面部分。他们还可以在头上访问搜索菜单,以及系统的菜单。把头贴到屏幕顶部是一个很好的练习关键技术在屏幕上方贴上头,是一个很好的练习。它是使用HTML andcss建。HTML和CSS是前端开发工具,用于指定网站的结构。HTML是专门用于指定的网站结构,而CSS是用于造型全页了。
    2022-02-07 14:31:56下载
    积分:1
  • 使用 gui 的fir和 iir 滤波器设计
    用 matlab 编写了使用 gui 工具的fir和 iir 滤波器的设计。它的用于分析的 sptool 中的 griphics 形式的信号。筛选器的最低订货量 2 和最大的订单是 10。
    2023-08-23 05:00:03下载
    积分:1
  • 源代码从阙出版物“先进”技术和应用国际标准书号…
    Source Code from Que publications "Advanced C" Techniques and Aplications ISBN 0-88022-162-3 Advanced C Techniques and Applications QUE Unpack into a directory with the following structure root - Contents of this arc. root/bgs Contents of BGS.arc root/uis Contents of UIS.arc root/grfuser Contents og grfuser.arc-Source Code from Que publications "Advanced C" Techniques and Aplications ISBN 0-88022-162-3 Advanced C Techniques and Applications QUE Unpack into a directory with the following structure root- Contents of this arc. root/bgs Contents of BGS.arc root/uis Contents of UIS.arc root/grfuser Contents og grfuser.arc
    2022-02-26 11:27:30下载
    积分:1
  • imageole.dll一个聊天GIF使用!
    使用ImageOle.dll开发的一个聊天中使用到的gif!-ImageOle.dll developed the use of the use of a chat to the gif!
    2022-03-21 13:58:01下载
    积分:1
  • CD-ROM工具C++Builder源码源代码,非常有用.-CD-ROM tool C++ Builder source code source code, very useful.
    2022-07-27 03:35:09下载
    积分:1
  • 用户线程
    user interface thread
    2022-05-09 07:03:10下载
    积分:1
  • Version 4.1 of ReSize contains 3 install files. ReSize16.exe
    Version 4.1 of ReSize contains 3 install files. ReSize16.exe --> This file installs the 16 bit version of ReSize OCX. The 16 bit version of ReSize OCX is only compatible with 16 bit Visual Basic 4.0. ReSize32.exe --> This file installs the 32 bit version of ReSize OCX. The 32 bit version of ReSize OCX is compatible with 32 bit Visual Basic 4.0, Visual Basic 5.0, Visual Basic 6.0, and ASNA s Visual RPG. ReSize_.NET.exe --> This file installs the .NET version of ReSize. The .NET version of ReSize is compatible with Visual Studio .NET. It can be used with Visual Basic .NET, Visual C# and other languages that are compatible with .NET.-Version 4.1 of ReSize contains 3 install files. ReSize16.exe--> This file installs the 16 bit version of ReSize OCX. The 16 bit version of ReSize OCX is only compatible with 16 bit Visual Basic 4.0. ReSize32.exe--> This file installs the 32 bit version of
    2022-03-15 13:08:47下载
    积分:1
  • 自己做的图表控件,效果挺好,欢迎大家使用.
    自己做的图表控件,效果挺好,欢迎大家使用.- Own do the graph controls, the effect very well, welcome everybody use
    2022-03-23 22:28:12下载
    积分:1
  • 分页对话框控件(TABCTL32.OCX)的使用,归纳了一些多线程/网络/数据库/图像处理方的vc程序模板,方便测试。...
    分页对话框控件(TABCTL32.OCX)的使用,归纳了一些多线程/网络/数据库/图像处理方面的vc程序模板,方便测试。-Page dialog box controls (TABCTL32.OCX) the use, summarized in a number of multi-threaded/network/database/image processing template vc procedures to facilitate the test.
    2022-03-24 03:53:25下载
    积分:1
  • 696518资源总数
  • 104298会员总数
  • 46今日下载