网站首页  词典首页

请输入您要查询的函数:

 

术语 openjobobject
释义 OpenJobObject
语法:
C++
HANDLE WINAPI OpenJobObject(
__in DWORD dwDesiredAccess,
__in BOOL bInheritHandles,
__in LPCTSTR lpName
);
OpenJobObject功能
打开一个现有的作业对象。
参数
dwDesiredAccess [in]
向工作对象访问。此参数可以是一个或多个作业对象的访问权限。这探视权,对任何检查对象的安全描述符。
bInheritHandles [in]
如果该值为TRUE,进程创建的这一进程将继承处理。否则,该进程不会继承此处理。
lpName [in]
该工作的名称被打开。名称比较是区分大小写的。
这个函数可以打开一个私人空间的对象。有关更多信息,请参见对象命名。
终端服务:名称可以有一个“全球\\”或“Local \\”前缀,明确打开该对象在全球或会话名称空间。名称的其余部分可以包含以外的任何字符反斜杠字符(\\)。如需信息见命名内核对象。
窗口2000:如果终端服务没有运行,“全球\\”和“地方\\”前缀将被忽略。名称的其余部分可以包含反斜杠以外的任何字符的字符。
返回值
如果函数成功,返回值是一个句柄工作。句柄提供了该职位要求的访问。
如果函数失败,返回值为NULL。为了获得更多错误信息,调用GetLastError。
备注
要关联一个工作的过程中,使用AssignProcessToJobObject功能。
要编译的应用程序使用此功能,定义_WIN32_WINNT为0x0500或更高版本。有关详细信息,请参阅使用Windows头。
要求:
最低支持:client-Windows 2000专业版
最低支持server-Windows 2000服务器
HeaderWinbase.h(头文件:winuser.h)
LibraryKernel32.lib
DLLKernel32.dll
Unicode和ANSI namesOpenJobObjectW(Unicode)和OpenJobObjectA(ANSI)的
参见
AssignProcessToJobObject
招聘对象
进程和线程函数
如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com)
生成日期:2009年8月27日
==英文原文==OpenJobObject Function
Opens an existing job object.
Syntax
C++
HANDLE WINAPI OpenJobObject(
__in DWORD dwDesiredAccess,
__in BOOL bInheritHandles,
__in LPCTSTR lpName
);
Parameters
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.
bInheritHandles [in]
If this value is TRUE, processes created by this process will inherit the handle. Otherwise, the processes do not inherit this handle.
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 name space. The remainder of the name can contain any character except the backslash character (\\). For more information, see Kernel Object Namespaces .
Windows 2000: If Terminal Services is not running, the "Global\\" and "Local\\" prefixes are ignored. The remainder of the name can contain any character except the backslash character.
Return Value
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 .
Requirements
Minimum supported clientWindows 2000 Professional
Minimum supported serverWindows 2000 Server
HeaderWinbase.h (include Windows.h)
LibraryKernel32.lib
DLLKernel32.dll
Unicode and ANSI namesOpenJobObjectW (Unicode) and OpenJobObjectA (ANSI)
See Also
AssignProcessToJobObject
Job Objects
Process and Thread Functions
Send comments about this topic to Microsoft
Build date: 8/27/2009
==原始网址==http://msdn.microsoft.com/en-us/library/ms684312(VS.85).aspx\n
随便看

 

windows api函数参考手册包含2258条windows api函数文档,详细介绍nodejs、java、rust调用windows api的方法技巧,是学习windows api编程的入门中文文档。

 

Copyright © 2004-2023 Winrtm.com All Rights Reserved
京ICP备2021023879号-40 更新时间:2024/10/6 13:17:48