 |
OpenProcess ..msdn Add comment W32 Constants Translate this page |
 |
 |
|
The OpenProcess function opens an existing process object. |
 |
 |
| Code examples: |
 |
|
|
 |
 |
| 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: |
 |
|
 |
 |
| • |
 |
| Created: | 2001-10-09 22:05:23 | | Modified: | 2001-11-26 16:03:45 | Visited in last 7 days: 34 |