ExitProcess

目录导航

基本内容

ExitProcess

VB声明

Declare Sub ExitProcess Lib "kernel32" Alias "ExitProcess" (ByVal uExitCode As Long)

说明

中止一个进程

参数表

参数 类型及说明

uExitCode Long,指定想中断的那个进程的一个退出代码

在VB中使用

应尽量避免用该函数来关闭进程。不要在自己的VB程序中使用它。此时,应试着向要关闭的那个程序的主窗口投递一条WM_CLOSE消息

C#

[DllImport("kernel32.dll")]

static extern void ExitProcess(uint uExitCode);

相关百科
返回顶部
产品求购 求购