GetthreadTimes

GetThreadTimes

GetThreadTimes
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
說明
獲取與一個執行緒的經過時間有關的信息
返回值
Long,非零表示成功,零表示失敗。會設定GetLastError
參數表
參數 類型及說明
hThread Long,一個執行緒句柄
lpCreationTime FILETIME,指定一個FILETIME結構,在其中裝載執行緒的創建時間
lpExitTime FILETIME,指定一個FILETIME結構,在其中裝載執行緒的中止時間
lpKernelTime FILETIME,指定一個FILETIME結構,在其中裝載執行緒花在核心模式上的總時間
lpUserTime FILETIME,指定一個FILETIME結構,在其中裝載執行緒花在用戶模式上的總時間
Windows NT

相關詞條

熱門詞條

聯絡我們