Skip to content

Latest commit

 

History

History
106 lines (79 loc) · 3.65 KB

nf-jobapi2-openjobobjectw.md

File metadata and controls

106 lines (79 loc) · 3.65 KB
UIDtitledescriptionhelpviewer_keywordsold-locationtech.rootms.assetidms.datems.keywordsreq.headerreq.include-headerreq.target-typereq.target-min-winverclntreq.target-min-winversvrreq.kmdf-verreq.umdf-verreq.ddi-compliancereq.unicode-ansireq.idlreq.max-supportreq.namespacereq.assemblyreq.type-libraryreq.libreq.dllreq.irqltargetosreq.typenamesreq.redistms.customf1_keywordsdev_langstopic_typeapi_typeapi_locationapi_name
NF:jobapi2.OpenJobObjectW
OpenJobObjectW function (jobapi2.h)
Opens an existing job object. (OpenJobObjectW)
OpenJobObject
OpenJobObject function
OpenJobObjectA
OpenJobObjectW
_win32_openjobobject
base.openjobobject
winbase/OpenJobObject
winbase/OpenJobObjectA
winbase/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
OpenJobObjectW
jobapi2/OpenJobObjectW
c++
APIRef
kbSyntax
DllExport
Kernel32.dll
API-MS-Win-Core-job-l2-1-0.dll
kernel32legacy.dll
API-Ms-Win-Core-Kernel32-Legacy-Ansi-L1-1-0.dll
API-MS-Win-Core-Job-L2-1-1.dll
OpenJobObject
OpenJobObjectA
OpenJobObjectW

OpenJobObjectW function

-description

Opens an existing job object.

-parameters

-param dwDesiredAccess [in]

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.

-param bInheritHandle [in]

If this value is TRUE, processes created by this process will inherit the handle. Otherwise, the processes do not inherit this handle.

-param lpName [in]

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.

-returns

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.

-remarks

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.

-see-also

AssignProcessToJobObject

Job Objects

Process and Thread Functions

close