网站首页  词典首页

请输入您要查询的函数:

 

术语 isprocessinjob
释义 IsProcessInJob
语法:
C++
BOOL WINAPI IsProcessInJob(
__in HANDLE ProcessHandle,
__in_opt HANDLE JobHandle,
__out PBOOL Result
);
IsProcessInJob功能
确定该进程是否在指定的工作运行。
参数
ProcessHandle [in]
句柄的进程得以tested.The处理必须有PROCESS_QUERY_INFORMATION或PROCESS_QUERY_LIMITED_INFORMATION访问权限。有关更多信息,请参见过程的安全性和访问权限。
Windows Server 2003和Windows XP中:在处理必须有PROCESS_QUERY_INFORMATION访问权。
JobHandle [中,可选]
一个句柄,工作。如果该参数为NULL,则函数测试,如果这一进程在任何工作运行。
如果这个参数不是NULL,则处理必须有JOB_OBJECT_QUERY访问权限。有关更多信息,请参见作业对象的安全和访问权限。
结果[out]
一个值,接收TRUE,如果该进程在运行的工作指针,否则返回FALSE。
返回值
如果函数成功,返回值为非零。
如果函数失败,返回值是零。为了获得更多错误信息,调用GetLastError。
备注
应用程序无法获取的句柄作业对象,其中运行,除非它的工作对象的名称。然而,应用程序可以调用空的QueryInformationJobObject函数以获取有关工作对象的信息。
要编译的应用程序使用此功能,定义_WIN32_WINNT为0x0501或更高版本。有关详细信息,请参阅使用Windows头。
要求:
最低支持client-Windows XP
最低支持serverWindows服务器2003
HeaderWinbase.h(头文件:winuser.h)
LibraryKernel32.lib
DLLKernel32.dll
参见
AssignProcessToJobObject
招聘对象
进程和线程函数
QueryInformationJobObject
如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com)
生成日期:2009年8月27日
==英文原文==IsProcessInJob Function
Determines whether the process is running in the specified job.
Syntax
C++
BOOL WINAPI IsProcessInJob(
__in HANDLE ProcessHandle,
__in_opt HANDLE JobHandle,
__out PBOOL Result
);
Parameters
ProcessHandle [in]
A handle to the process to be tested.The handle must have the PROCESS_QUERY_INFORMATION or PROCESS_QUERY_LIMITED_INFORMATION access right. For more information, see Process Security and Access Rights .
Windows Server 2003 and Windows XP: The handle must have the PROCESS_QUERY_INFORMATION access right.
JobHandle [in, optional]
A handle to the job. If this parameter is NULL, the function tests if the process is running under any job.
If this parameter is not NULL, the handle must have the JOB_OBJECT_QUERY access right. For more information, see Job Object Security and Access Rights .
Result [out]
A pointer to a value that receives TRUE if the process is running in the job, and FALSE otherwise.
Return Value
If the function succeeds, the return value is nonzero.
If the function fails, the return value is zero. To get extended error information, call GetLastError .
Remarks
An application cannot obtain a handle to the job object in which it is running unless it has the name of the job object. However, an application can call the QueryInformationJobObject function with NULL to obtain information about the job object.
To compile an application that uses this function, define _WIN32_WINNT as 0x0501 or later. For more information, see Using the Windows Headers .
Requirements
Minimum supported clientWindows XP
Minimum supported serverWindows Server 2003
HeaderWinbase.h (include Windows.h)
LibraryKernel32.lib
DLLKernel32.dll
See Also
AssignProcessToJobObject
Job Objects
Process and Thread Functions
QueryInformationJobObject
Send comments about this topic to Microsoft
Build date: 8/27/2009
==原始网址==http://msdn.microsoft.com/en-us/library/ms684127(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:21:47