UID | title | description | helpviewer_keywords | old-location | tech.root | ms.assetid | ms.date | ms.keywords | req.header | req.include-header | req.target-type | req.target-min-winverclnt | req.target-min-winversvr | req.kmdf-ver | req.umdf-ver | req.ddi-compliance | req.unicode-ansi | req.idl | req.max-support | req.namespace | req.assembly | req.type-library | req.lib | req.dll | req.irql | targetos | req.typenames | req.redist | ms.custom | f1_keywords | dev_langs | topic_type | api_type | api_location | api_name | |||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
NF:jobapi2.OpenJobObjectW | OpenJobObjectW function (jobapi2.h) | Opens an existing job object. (OpenJobObjectW) |
| base\openjobobject.htm | backup | cb6ebc6f-5c61-408d-a781-ba029c83ddeb | 12/05/2018 | OpenJobObject, OpenJobObject function, OpenJobObjectA, OpenJobObjectW, _win32_openjobobject, base.openjobobject, winbase/OpenJobObject, winbase/OpenJobObjectA, winbase/OpenJobObjectW | jobapi2.h | Windows.h, Jobapi2.h | Windows | Windows XP [desktop apps only] | Windows Server 2003 [desktop apps only] | OpenJobObjectW (Unicode) and OpenJobObjectA (ANSI) | Kernel32.lib | Kernel32.dll | Windows | 19H1 |
|
|
|
|
|
|
Opens an existing job object.
The access to the job object. This parameter can be one or more of the job object access rights. This access right is checked against any security descriptor for the object.
If this value is TRUE, processes created by this process will inherit the handle. Otherwise, the processes do not inherit this handle.
The name of the job to be opened. Name comparisons are case sensitive.
This function can open objects in a private namespace. For more information, see Object Namespaces.
Terminal Services: The name can have a "Global\" or "Local\" prefix to explicitly open the object in the global or session namespace. The remainder of the name can contain any character except the backslash character (\). For more information, see Kernel Object Namespaces.
If the function succeeds, the return value is a handle to the job. The handle provides the requested access to the job.
If the function fails, the return value is NULL. To get extended error information, call GetLastError.
To associate a process with a job, use the AssignProcessToJobObject function.
To compile an application that uses this function, define _WIN32_WINNT as 0x0500 or later. For more information, see Using the Windows Headers.