Using Win32 functions in Visual FoxPro Image Gallery
Process and Thread
..msdn
AssignProcessToJobObject
CommandLineToArgvW
CreateJobObject
CreateProcess
CreateProcessAsUser
CreateProcessWithLogonW
ExitProcess
FreeEnvironmentStrings
GetCommandLine
GetCurrentProcess
GetCurrentProcessId
GetCurrentThread
GetCurrentThreadId
GetEnvironmentStrings
GetEnvironmentVariable
GetPriorityClass
GetProcessIoCounters
GetProcessTimes
GetProcessVersion
GetStartupInfo
GetThreadPriority
IsWow64Process
OpenProcess
RegisterServiceProcess
SetEnvironmentVariable
SetPriorityClass
SetThreadPriority
Sleep
TerminateJobObject
TerminateProcess
WinExec
Code examples:
How to find when the application started
GetProcessTimes
..msdn    Add comment     W32 Constants      Translate this page
Retrieves timing information for the specified process.
Code examples:
How to find when the application started
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:
  Spanish    Portuguese    German    French    Italian  
FreeTranslation.com offers instant, free translations of text or web pages.
Created: 2008-03-26 11:55:41
Modified: 2008-03-26 17:21:07
Visited in last 7 days: 12
User Contributed Notes:
There are no notes on this subject.


Copyright 2001-2017 News2News, Inc. Before reproducing or distributing any data from this site please ask for an approval from its owner. Unless otherwise specified, this page is for your personal and non-commercial use. The information on this page is presented AS IS, meaning that you may use it at your own risk. Microsoft Visual FoxPro and Windows are trade marks of Microsoft Corp. All other trademarks are the property of their respective owners. 

Privacy policy
Credits: PHP (4.4.9), an HTML-embedded scripting language, MySQL (5.6.38), the Open Source standard SQL database, AceHTML Freeware Version 4, freeware HTML Editor of choice.   Hosted by Korax Online Inc.
Last Topics Visited (23.20.129.162)
4 sec.
Function group: 'Process and Thread'
8 sec.Function: 'CreateVirtualDisk'
Function group: 'Virtual Hard Disk (Win7)'
13 sec.
Function group: 'Window Procedure'
17 sec.
Function group: 'Clipboard'
22 sec.
Function group: 'Shell Functions'
26 sec.Function: 'CeEnumDBVolumes'
Function group: 'Remote Application Programming (RAPI)'
31 sec.
Function group: 'GDI+ ImageAttributes'
34 sec.
Function group: 'Device Context'
38 sec.
42 sec.
Function group: 'Font and Text'
Google
Advertise here!