网站首页  词典首页

请输入您要查询的函数:

 

术语 userhandlegrantaccess
释义 UserHandleGrantAccess
语法:
C++
BOOL WINAPI UserHandleGrantAccess(
__in HANDLE hUserHandle,
__in HANDLE hJob,
__in BOOL bGrant
);
UserHandleGrantAccess功能
授予或拒绝访问处理到用户对象的工作,有一个用户界面的限制。获准进入时,与工作相关随后可以识别并使用的所有进程的句柄。当访问被拒绝,该进程可以不再使用手柄。有关更多信息,请用户对象。
参数
hUserHandle [in]
句柄到用户对象。
hJob [in]
句柄的工作被授予访问用户处理。在CreateJobObject或OpenJobObject函数返回此句柄。
bGrant [in]
如果此参数为TRUE,与工作有关的所有进程可以识别和使用的处理。如果该参数为FALSE,该进程无法使用的处理。
返回值
如果函数成功,返回值为非零。
如果函数失败,返回值是零。为了获得更多错误信息,调用GetLastError。
备注
该UserHandleGrantAccess功能可以说是只从没有被hJob参数指定的工作联系在一起的进程。用户处理不能由一个过程或与工作相关的线程拥有。
要创建的用户界面的限制,请与JobObjectBasicUIRestrictions作业信息类SetInformationJobObject功能。
要求:
最低支持:client-Windows 2000专业版
最低支持server-Windows 2000服务器
HeaderWinuser.h(头文件:winuser.h)
LibraryUser32.lib
DLLUser32.dll
参见
CreateJobObject
OpenJobObject
招聘对象
进程和线程函数
SetInformationJobObject
如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com)
生成日期:2009年8月27日
==英文原文==UserHandleGrantAccess Function
Grants or denies access to a handle to a User object to a job that has a user-interface restriction. When access is granted, all processes associated with the job can subsequently recognize and use the handle. When access is denied, the processes can no longer use the handle. For more information see User Objects .
Syntax
C++
BOOL WINAPI UserHandleGrantAccess(
__in HANDLE hUserHandle,
__in HANDLE hJob,
__in BOOL bGrant
);
Parameters
hUserHandle [in]
A handle to the User object.
hJob [in]
A handle to the job to be granted access to the User handle. The CreateJobObject or OpenJobObject function returns this handle.
bGrant [in]
If this parameter is TRUE, all processes associated with the job can recognize and use the handle. If the parameter is FALSE, the processes cannot use the handle.
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
The UserHandleGrantAccess function can be called only from a process not associated with the job specified by the hJob parameter. The User handle must not be owned by a process or thread associated with the job.
To create user-interface restrictions, call the SetInformationJobObject function with the JobObjectBasicUIRestrictions job information class.
Requirements
Minimum supported clientWindows 2000 Professional
Minimum supported serverWindows 2000 Server
HeaderWinuser.h (include Windows.h)
LibraryUser32.lib
DLLUser32.dll
See Also
CreateJobObject
OpenJobObject
Job Objects
Process and Thread Functions
SetInformationJobObject
Send comments about this topic to Microsoft
Build date: 8/27/2009
==原始网址==http://msdn.microsoft.com/en-us/library/ms686884(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 11:24:14