找回密码
 加入
搜索
查看: 2122|回复: 4

[系统综合] 怎么设置进程优先级

[复制链接]
发表于 2015-3-17 12:52:00 | 显示全部楼层 |阅读模式
怎么设置进程优先级 请大神给个源码
发表于 2015-3-17 13:18:17 | 显示全部楼层
cmd.exe /c start "Process Monitor" /High "E:\Programs\Process Monitor 3.05\Procmon.exe"
可选参数

        * Realtime
        * High
        * AboveNormal
        * Normal
        * BelowNormal
        * Low

怎么改造成AutoIt代码,就不说了吧
 楼主| 发表于 2015-3-17 13:30:59 | 显示全部楼层
回复 2# 虫子樱桃


    能不能修改已经启动进程的优先级
 楼主| 发表于 2015-3-17 13:32:13 | 显示全部楼层
刚找了一下帮助 有现成的函数用 ProcessSetPriority
发表于 2015-3-17 13:32:34 | 显示全部楼层
BOOL WINAPI SetPriorityClass(
  _In_  HANDLE hProcess,
  _In_  DWORD dwPriorityClass
);
https://msdn.microsoft.com/en-us/library/windows/desktop/ms686219(v=vs.85).aspx

_WinAPI_SetPriorityClass ( $iPriority [, $PID] )
您需要登录后才可以回帖 登录 | 加入

本版积分规则

QQ|手机版|小黑屋|AUTOIT CN ( 鲁ICP备19019924号-1 )谷歌 百度

GMT+8, 2024-5-8 06:02 , Processed in 0.072686 second(s), 23 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表