GetExitCodeThread

此頁(yè)沒(méi)有內(nèi)容條目
內(nèi)容

GetExitCodeThread

VB聲明

Declare Function GetExitCodeThread Lib "kernel32" Alias "GetExitCodeThread" (ByVal hThread As Long, lpExitCode As Long) As Long

說(shuō)明

獲取一個(gè)已中止線程的退出代碼

返回值

Long,非零表示成功,零表示失敗。會(huì)設(shè)置GetLastError

參數(shù)表

參數(shù)

類型及說(shuō)明

hThread

Long,想獲取退出代碼的一個(gè)線程的句柄

lpExitCode

Long,用于裝載線程退出代碼的一個(gè)長(zhǎng)整數(shù)變量。如線程尚未中斷,則設(shè)為常數(shù)STILL_ACTIVE

Top