阅读:1824回复:6
如何在驱动程序中关闭一个进程?
进程可以使用PsGetCurrentProcess得到;
但如何关闭呢? |
|
沙发#
发布于:2002-10-22 14:45
ZwTerminateProcess terminates a process and the threads that it contains.
NTSYSAPI NTSTATUS NTAPI ZwTerminateProcess( IN HANDLE ProcessHandle OPTIONAL, IN NTSTATUS ExitStatus ); Parameters ProcessHandle A handle to a process object.The handle must grant PROCESS_TERMINATE access. If this value is zero, the current process is terminated. ExitStatus Specifies the exit status for the process and for all threads terminated as a result of this call. Return Value Returns STATUS_SUCCESS or an error status, such as STATUS_ACCESS_DENIED or STATUS_PROCESS_IS_TERMINATING. |
|
|
板凳#
发布于:2002-10-22 17:12
这个函数在哪里啊?
编译时说没有定义这个函数,并且msdn里也没有发现有这个东东啊? |
|
地板#
发布于:2002-10-23 08:24
这是一个Undocumented函数,你要自己添加函数的声明,可以看一看《WindowsNT/2000 Native API》一书
|
|
|
地下室#
发布于:2002-10-24 15:48
《WindowsNT/2000 Native API》这本书有电子版吗?
在哪能下载 |
|
5楼#
发布于:2002-10-25 12:07
本站下载中心有
|
|
|
6楼#
发布于:2007-07-03 23:21
顶!!!!!
|
|