 |
GetProcessTimes ..msdn Add comment W32 Constants Translate this page |
 |
 |
|
Retrieves timing information for the specified process. |
 |
 |
| Code examples: |
 |
|
|
 |
 |
| Declaration: |
 |
 |
BOOL WINAPI GetProcessTimes(
__in HANDLE hProcess,
__out LPFILETIME lpCreationTime,
__out LPFILETIME lpExitTime,
__out LPFILETIME lpKernelTime,
__out LPFILETIME lpUserTime
);
|
 |
 |
 |
| FoxPro declaration: |
 |
 |
DECLARE INTEGER GetProcessTimes IN kernel32;
INTEGER hProcess,;
STRING @lpCreationTime,;
STRING @lpExitTime,;
STRING @lpKernelTime,;
STRING @lpUserTime
|
 |
 |
 |
| Parameters: |
 |
hProcess
A handle to the process whose timing information is sought. The handle must have the PROCESS_QUERY_INFORMATION or PROCESS_QUERY_LIMITED_INFORMATION access right.
lpCreationTime
A pointer to a FILETIME structure that receives the creation time of the process.
lpExitTime
A pointer to a FILETIME structure that receives the exit time of the process.
lpKernelTime
A pointer to a FILETIME structure that receives the amount of time that the process has executed in kernel mode.
lpUserTime
A pointer to a FILETIME structure that receives the amount of time that the process has executed in user mode.
|
 |
 |
| Return value: |
 |
| If the function succeeds, the return value is nonzero. |
 |
 |
| Usage: |
 |
STORE REPLICATE(CHR(0),8) TO;
cCreationTime, cExitTime,;
cKernelTime, cUserTime
= GetProcessTimes(hProcess, @cCreationTime,;
@cExitTime, @cKernelTime, @cUserTime)
|
 |
 |
| My comment: |
 |
This function provides a way to know when the process has started.
See also: GetProcessIoCounters, GetProcessVersion, GetProcessMemoryInfo |
 |
 |
| Word Index links for the GetProcessTimes : |
 |
|
|
 |
 |
| Translate this page: |
 |
|
 |
 |
| • |
 |
| Created: | 2008-03-26 11:55:41 | | Modified: | 2008-03-26 17:21:07 | Visited in last 7 days: 25 |