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
CreateJobObject
..msdn    Add comment     W32 Constants      Translate this page
Creates or opens a job object.
Code examples:
How to make application automatically close all documents it opened
Declaration:
HANDLE CreateJobObject(
    LPSECURITY_ATTRIBUTES lpJobAttributes,
    LPCTSTR lpName
);
FoxPro declaration:
DECLARE INTEGER CreateJobObject IN kernel32;
    INTEGER lpJobAttributes,;
    STRING  lpName
Parameters:
lpJobAttributes
[in] Pointer to a SECURITY_ATTRIBUTES structure, can be NULL.

lpName
[in] Pointer to a null-terminated string specifying the name of the job. If lpName is NULL, the job is created without a name.
Return value:
If the function succeeds, the return value is a handle to the job object.
My comment:
To assign a process to a job object, use the AssignProcessToJobObject function. To close a job object handle, use the CloseHandle function.
Word Index links for the CreateJobObject :
Translate this page:
  Spanish    Portuguese    German    French    Italian  
FreeTranslation.com offers instant, free translations of text or web pages.
Created: 2005-07-28 18:41:34
Modified: 2005-07-28 18:43:58
Visited in last 7 days: 42
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.227.127.109)
17 sec.Function: 'WaitForSingleObject'
34 sec.Function: 'GetSystemPowerStatus'
51 sec.Function: 'ClipCursor'
1.15 min.Function: 'if_nametoindex'
1.43 min.Function: 'MQDeleteQueue'
1.73 min.Function: 'GetModuleBaseName'
2.03 min.Function: 'GdipGetImageWidth'
2.32 min.Function: 'StrCpy'
2.58 min.Function: 'GetSystemRegistryQuota'
2.9 min.Function: 'HttpOpenRequest'
Google
Advertise here!