GetExitCodeProcess
来源:互联网 发布:吃鸡网络词意思是什么 编辑:程序博客网 时间:2024/06/05 17:37
This function retrieves the termination status of the specified process.
BOOL GetExitCodeProcess(
HANDLE hProcess,
LPDWORD lpExitCode
);
Parameters
- hProcess
- [in] Handle to the process.
- lpExitCode
- [out] Pointer to a 32-bit variable to receive the process termination status.
Return Values
Nonzero indicates success.
Zero indicates failure.
To get extended error information, call GetLastError.
Remarks
If the specified process has not terminated, the termination status returned is STILL_ACTIVE.
The following termination statuses can be returned if the process has terminated:
- The exit value specified in the ExitProcess or TerminateProcess function
- The return value from the main or WinMain function of the process
- The exception value for an unhandled exception that caused the process to terminate
Requirements
OS Versions: Windows CE 2.0 and later.
Header: Winbase.h.
Link Library: Coredll.lib.
- GetExitCodeProcess
- note : GetExitCodeProcess
- OpenProcess、GetExitCodeProcess、TerminateProcess
- 获取指定窗口句柄结束进程 OpenProcess FindWindow GetExitCodeprocess TerminateProcess
- 如何调用一个程序,等待运行结束,并知晓程序运行成功与否:ShellExecuteEx;WaitForSingleObject;GetExitCodeProcess(C代码)
- 如何调用一个程序,等待运行结束,并知晓程序运行成功与否:ShellExecuteEx;WaitForSingleObject;GetExitCodeProcess(C代码)
- Linux系统最基本,经常用的命令
- linux学习笔记_开机流程
- 软件文档
- 虚拟文件系统[4]
- IIS 7完全攻略之失败请求跟踪配置
- GetExitCodeProcess
- linux学习笔记_GRUB Vga设定
- 没有风投的创业法则
- crontab使用祥解
- Linux系统下的多线程编程-条件变量&信号量
- linux学习笔记_软件安装
- 09.1.5学习3
- TerminateProcess
- 树形菜单