GetExitCodeThread
VB声明
Declare Function GetExitCodeThread Lib "kernel32" Alias "GetExitCodeThread" (ByVal hThread As Long, lpExitCode As Long) As Long
说明
获取一个已中止线程的退出代码
返回值
Long,非零表示成功,零表示失败。会设置GetLastError
参数表
参数 类型及说明
hThread Long,想获取退出代码的一个线程的句柄
lpExitCode Long,用于装载线程退出代码的一个长整数变量。如线程尚未中断,则设为常数STILL_ACTIVE

Top