Loading

第四章 启动技术---创建进程API

一、创建进程API

用户层上,微软提供了WinExec、ShellExecute和CreateProcess等函数来实现进程创建。

二、API

1、WinExec函数
运行指定的应用程序。
https://docs.microsoft.com/zh-cn/windows/win32/api/winbase/nf-winbase-winexec?redirectedfrom=MSDN
2、ShellExecute函数
运行一个外部程序(或是打开一个已注册的文件、目录,或打印一个文件等),并对外部程序进行一定程度的控制。
https://docs.microsoft.com/zh-cn/windows/win32/api/shellapi/nf-shellapi-shellexecutea?redirectedfrom=MSDN
3、CreateProcess函数
创建一个新进程及主线程。新进程在调用进程的安全的上下文中运行。
https://docs.microsoft.com/en-us/previous-versions/aa908775(v=msdn.10)

posted @ 2021-09-09 23:50  Ctrl_C+Ctrl_V  阅读(405)  评论(0)    收藏  举报