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:
Enumerating Processes -- WinNT
How to find when the application started
Moving shortcut to a specified position on the Windows Desktop
Obtaining I/O counts for the current process
Obtaining names and positions for shortcuts located on the Windows Desktop
Reading and setting the priority class values for the current process and thread
Terminating all running applications from a VFP program
OpenProcess
..msdn    Add comment     W32 Constants      Translate this page
The OpenProcess function opens an existing process object.
Code examples:
Obtaining names and positions for shortcuts located on the Windows Desktop
Moving shortcut to a specified position on the Windows Desktop
Enumerating Processes -- WinNT
Terminating all running applications from a VFP program
How to find when the application started
Reading and setting the priority class values for the current process and thread
Obtaining I/O counts for the current process
Declaration:
HANDLE OpenProcess(
  DWORD dwDesiredAccess,  // access flag
  BOOL bInheritHandle,    // handle inheritance option
  DWORD dwProcessId       // process identifier
);
FoxPro declaration:
DECLARE INTEGER OpenProcess IN kernel32;
    INTEGER dwDesiredAccessas,;
    INTEGER bInheritHandle,;
    INTEGER dwProcId
Parameters:
dwDesiredAccess
[in] Specifies the access to the process object.

bInheritHandle
[in] Specifies whether the returned handle can be inherited by a new process created by the current process.

dwProcessId
[in] Specifies the identifier of the process to open.
Return value:
If the function succeeds, the return value is an open handle to the specified process. If the function fails, the return value is NULL.
My comment:
MSDN: the handle returned by the OpenProcess function can be used in any function that requires a handle to a process, such as the wait functions, provided the appropriate access rights were requested. When you are finished with the handle, be sure to close it using the CloseHandle function.
Word Index links for the OpenProcess :
Translate this page:
  Spanish    Portuguese    German    French    Italian  
FreeTranslation.com offers instant, free translations of text or web pages.
Created: 2001-10-09 22:05:23
Modified: 2001-11-26 16:03:45
Visited in last 7 days: 38
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.37), the Open Source standard SQL database, AceHTML Freeware Version 4, freeware HTML Editor of choice.   Hosted by Korax Online Inc.
Last Topics Visited (54.166.150.10)
4 sec.Function: 'WinHttpConnect'
9 sec.Function: 'GetCursorInfo'
13 sec.Function: 'gethostname'
18 sec.Function: 'CLSIDFromString'
22 sec.Function: 'SQLSetConfigMode'
27 sec.Function: 'GdipCreateSolidFill'
31 sec.Function: 'BeginUpdateResource'
37 sec.Function: 'IpReleaseAddress'
42 sec.Function: 'SQLSetEnvAttr'
47 sec.Function: 'CreateService'
Google
Advertise here!