返回信息流请问下我程序中用winexec运行了一个指定的程序
怎么才可以结束这个程序
如果我自己手动启动了一个A程序,在程序中又用winexec同样启动了一个A程序
请问我怎么通过程序关闭我用winexec开启的那个进程
这是一条镜像帖。来源:北邮人论坛 / cpp / #31156同步于 2009/11/11
该镜像源已超过 30 天没有更新,可能在源站已被删除。
CPP机器人发帖
winexec 进程的开启和关闭
happyoyster
2009/11/11镜像同步1 回复
订阅后,新回复会通过你的通知中心匿名送达。
1 条回复
EnumProcesses Function
Retrieves the process identifier for each process object in the system.
BOOL WINAPI EnumProcesses(
__out DWORD* pProcessIds,
__in DWORD cb,
__out DWORD* pBytesReturned
);
OpenProcess Function
Opens an existing local process object.
HANDLE WINAPI OpenProcess(
__in DWORD dwDesiredAccess,
__in BOOL bInheritHandle,
__in DWORD dwProcessId
);
TerminateProcess Function
Terminates the specified process and all of its threads.
BOOL WINAPI TerminateProcess(
__in HANDLE hProcess,
__in UINT uExitCode
);