GetTheardTimes

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

GetTheardTimes

VB聲明

Declare Function GetThreadTimes Lib "kernel32" Alias "GetThreadTimes" (ByVal hThread As Long, lpCreationTime As FILETIME, lpExitTime As FILETIME, lpKernelTime As FILETIME, lpUserTime As FILETIME) As Long

說(shuō)明

 獲取與一個(gè)線程的經(jīng)過(guò)時(shí)間有關(guān)的信息

返回值

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

參數(shù)表

參數(shù)

類型及說(shuō)明

hThread

Long,一個(gè)線程句柄

lpCreationTime

FILETIME,指定一個(gè)FILETIME結(jié)構(gòu),在其中裝載線程的創(chuàng)建時(shí)間

lpExitTime

FILETIME,指定一個(gè)FILETIME結(jié)構(gòu),在其中裝載線程的中止時(shí)間

lpKernelTime

FILETIME,指定一個(gè)FILETIME結(jié)構(gòu),在其中裝載線程花在內(nèi)核模式上的總時(shí)間

lpUserTime

FILETIME,指定一個(gè)FILETIME結(jié)構(gòu),在其中裝載線程花在用戶模式上的總時(shí)間

適用平臺(tái)

Windows NT

Top