TerminateProcess Function
来源:互联网 发布:161,162端口 编辑:程序博客网 时间:2024/05/17 03:41
Terminates the specified process and all of its threads.
BOOL WINAPI TerminateProcess( __in HANDLE hProcess, __in UINT uExitCode);
Parameters
- hProcess
A handle to the process to be terminated.
The handle must have the PROCESS_TERMINATE access right. For more information, see Process Security and Access Rights.
- uExitCode
The exit code to be used by the process and threads terminated as a result of this call. Use the GetExitCodeProcess function to retrieve a process's exit value. Use the GetExitCodeThread function to retrieve a thread's exit value.
Return Value
If the function succeeds, the return value is nonzero.
If the function fails, the return value is zero. To get extended error information, call
Remarks
The TerminateProcess function is used to unconditionally cause a process to exit. The state of global data maintained by dynamic-link libraries (DLLs) may be compromised if TerminateProcess is used rather than ExitProcess.
TerminateProcess initiates termination and returns immediately. This stops execution of all threads within the process and requests cancellation of all pending I/O. The terminated process cannot exit until all pending I/O has been completed or canceled.
A process cannot prevent itself from being terminated.
Requirements
Client
Requires Windows Vista, Windows XP, Windows 2000 Professional, Windows NT Workstation, Windows Me, Windows 98, or Windows 95.
Server
Requires Windows Server 2008, Windows Server 2003, Windows 2000 Server, or Windows NT Server.
Header
Declared in Winbase.h; include Windows.h.
Library
Use Kernel32.lib.
DLL
Requires Kernel32.dll.
- TerminateProcess Function
- API函数之四 TerminateProcess Function
- TerminateProcess
- TerminateProcess
- HOOK TerminateProcess:
- APIHOOK之拦截TerminateProcess
- TerminateProcess与OpenProcessToken
- 【转】ExitProcess与TerminateProcess
- ExitProcess与TerminateProcess函数
- TerminateProcess结束进程
- TerminateProcess 和 CreateProcess
- TerminateProcess终止进程失败
- OpenProcess、GetExitCodeProcess、TerminateProcess
- ExitProcess与TerminateProcess
- 为什么对TerminateProcess断点不起作用
- 强制关闭一个进程TerminateProcess
- TerminateProcess 终止|杀死其它进程
- TerminateProcess 终止|杀死其它进程
- Hiberante删除错误
- Flash的压缩算法 - 秀策坊
- Enumerating All Modules For a Process
- Gzip Zlib PNG 压缩算法 Gzip源码详解 - jiurl的专栏 - CSDNBlog
- 工作中无小事
- TerminateProcess Function
- 投资被套是否值得同情?
- 小波变换与傅里叶变换--机器视觉之旅
- 最后阶段
- Hibernate HQL
- vim中'/'同"/"的区别(从水木vim版看来的)
- 感受父母恩
- (不要再问我了。flex4已经支持图文混排了.)实现图文混排 view source by rightMenu
- ASwing as3 api下载