易语言挂起进程源码
系统结构:CreateProcess,CreateThread,SuspendThread,ResumeThread,TerminateThread,
======窗口程序集1
| |
| |------ __启动窗口_创建完毕
| |
| |------ _暂停_被单击
| |
| |------ _继续_被单击
| |
| |------ __启动窗口_可否被关闭
| |
| |
======调用的Dll
| |
| |---[dll]------ CreateProcess
| |
| |---[dll]------ CreateThread
| |
| |---[dll]------ SuspendThread
| |
| |---[dll]------ ResumeThread
| |
| |---[dll]------ TerminateThread
调用的DLL命令:
.DLL命令 CreateProcess, 整数型, "kernel32", "CreateProcessA", , 创建线程1
.参数 lpApplicationName, 文本型, , 应用程序的名称
.参数 lpCommandLine, 文本型, , 命令行参数
.参数 lpProcessAttributes, 整数型, , 进程的属性
.参数 lpThreadAttributes, 整数型, , 线程的属性
.参数 bInheritHandles, 整数型, , 是否继承父进程的属性
.参数 dwCreationFlags, 整数型, , 创建标志
.参数 lpEnvironment, 整数型, , 环境变量
.参数 lpCurrentDriectory, 文本型, , 当前目录
.参数 lpStartupInfo, STARTUPINFO, 传址, 传给新进程的信息
.参数 lpProcessInformation, PROCESS_INFORMATION, 传址, 进程返回的信息
.DLL命令 CreateThread, 整数型, "kernel32.dll", "CreateThread", , 创建线程2
.参数 lpThreadAttributes, 整数型
.参数 dwStackSize, 整数型
.参数 子程序指针, 子程序指针
.参数 参数, 整数型
.参数 dwCreationFlags, 整数型
.参数 线程ID, 整数型, 传址
.DLL命令 SuspendThread, 整数型, "kernel32.dll", "SuspendThread", , 挂起线程
.参数 进程标示, 整数型
.DLL命令 ResumeThread, 整数型, "kernel32.dll", "ResumeThread", , 解除挂起
.参数 hThread, , , 线程句柄
.DLL命令 TerminateThread, , "kernel32.dll", "TerminateThread", , 销毁线程
.参数 线程ID, 整数型
.参数 dwExitCode, 整数型
注:本站源码主要来源于网络收集。如有侵犯您的利益,请联系我们,我们将及时删除!
部分源码可能含有危险代码,(如关机、格式化磁盘等),请看清代码在运行。
由此产生的一切后果本站均不负责。源码仅用于学习使用,如需运用到商业场景请咨询原作者。
使用本站源码开发的产品均与本站无任何关系,请大家遵守国家相关法律。