GetProcessTimes

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

GetProcessTimes

VB聲明

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

說(shuō)明

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

返回值

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

參數(shù)表

參數(shù)

類型及說(shuō)明

hProcess

Long,一個(gè)進(jìn)程句柄

lpCreationTime

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

lpExitTime

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

lpKernelTime

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

lpUserTime

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

適用平臺(tái)

Windows NT

Top