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 make application automatically close all documents it opened
AssignProcessToJobObject
..msdn    Add comment     W32 Constants      Translate this page
Assigns a process to an existing job object.
Code examples:
How to make application automatically close all documents it opened
Declaration:
BOOL AssignProcessToJobObject(
    HANDLE hJob,
    HANDLE hProcess
);

FoxPro declaration:
DECLARE INTEGER AssignProcessToJobObject IN kernel32;
    INTEGER hJob,;
    INTEGER hProcess
Parameters:
hJob
[in] Handle to the job object to which the process will be associated.

hProcess
[in] Handle to the process to associate with the job object.
Return value:
If the function succeeds, the return value is nonzero.
My comment:
A process can be associated only with a single job.
Word Index links for the AssignProcessToJobObject :
Translate this page:
  Spanish    Portuguese    German    French    Italian  
FreeTranslation.com offers instant, free translations of text or web pages.
Created: 2005-07-28 18:44:30
Modified: 2005-07-28 18:45:58
Visited in last 7 days: 11
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 (54.80.10.56)
10 sec.Function: 'SetConsoleTitle'
21 sec.Function: 'RegisterServiceProcess'
28 sec.
Function group: 'Cryptography Reference'
39 sec.Function: 'GetOpenFileName'
49 sec.
Function group: 'Mailslot'
58 sec.Function: 'mciSendCommand'
1.1 min.Function: 'RegEnumKey'
1.27 min.Function: 'HeapUnlock'
1.42 min.Function: 'JetPrepareUpdate'
1.57 min.Function: 'IsZoomed'
Google
Advertise here!