网站首页  词典首页

请输入您要查询的函数:

 

术语 setprocesspriorityboost
释义 SetProcessPriorityBoost
语法:
C++
BOOL WINAPI SetProcessPriorityBoost(
__in HANDLE hProcess,
__in BOOL DisablePriorityBoost
);
SetProcessPriorityBoost功能
禁用或启用系统的能力,暂时增强指定进程的线程的优先级。
参数
hProcess [in]
句柄的进程。这种处理必须有PROCESS_SET_INFORMATION访问权限。有关更多信息,请参见过程的安全性和访问权限。
DisablePriorityBoost [in]
如果此参数为true,动态的提高被禁用。如果该参数为FALSE,动态的提高已启用。
返回值
如果函数成功,返回值为非零。
如果函数失败,返回值是零。为了获得更多错误信息,调用GetLastError。
备注
当一个线程处于充满活力的运行优先类之一,该系统暂时如鱼得水,线程的优先级是考虑一个等待状态了。如果SetProcessPriorityBoost是设置为TRUE DisablePriorityBoost参数调用,它的线程的优先考虑是不是提高了。此设置会影响所有现有的线程,随后由进程创建的任何线程。要恢复正常的行为,呼吁SetProcessPriorityBoost与DisablePriorityBoost设置为FALSE。
要求:
最低支持:client-Windows 2000专业版
最低支持server-Windows 2000服务器
HeaderWinbase.h(头文件:winuser.h)
LibraryKernel32.lib
DLLKernel32.dll
参见
GetProcessPriorityBoost
优先Boosts
进程和线程函数
过程
调度优先级
如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com)
生成日期:2009年8月27日
==英文原文==SetProcessPriorityBoost Function
Disables or enables the ability of the system to temporarily boost the priority of the threads of the specified process.
Syntax
C++
BOOL WINAPI SetProcessPriorityBoost(
__in HANDLE hProcess,
__in BOOL DisablePriorityBoost
);
Parameters
hProcess [in]
A handle to the process. This handle must have the PROCESS_SET_INFORMATION access right. For more information, see Process Security and Access Rights .
DisablePriorityBoost [in]
If this parameter is TRUE, dynamic boosting is disabled. If the parameter is FALSE, dynamic boosting is enabled.
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
When a thread is running in one of the dynamic priority classes, the system temporarily boosts the thread's priority when it is taken out of a wait state. If SetProcessPriorityBoost is called with the DisablePriorityBoost parameter set to TRUE, its threads' priorities are not boosted. This setting affects all existing threads and any threads subsequently created by the process. To restore normal behavior, call SetProcessPriorityBoost with DisablePriorityBoost set to FALSE.
Requirements
Minimum supported clientWindows 2000 Professional
Minimum supported serverWindows 2000 Server
HeaderWinbase.h (include Windows.h)
LibraryKernel32.lib
DLLKernel32.dll
See Also
GetProcessPriorityBoost
Priority Boosts
Process and Thread Functions
Processes
Scheduling Priorities
Send comments about this topic to Microsoft
Build date: 8/27/2009
==原始网址==http://msdn.microsoft.com/en-us/library/ms686225(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:20:27