RSS订阅追求最高效、最简单的解决方案
你的位置:首页 » autoit3研究 » 正文

AU3释放程序内存代码

选择字号: 超大 标准 技术小哥 发布于2016年12月04日 属于 autoit3研究 栏目  0个评论 6505人浏览

01    _ReduceMemory(@AutoItPID) ; 进程PID    
02    
03    
04    Func _ReduceMemory($i_PID = -1)    
05            If $i_PID <> -1 Then    
06                    Local $ai_Handle = DllCall("kernel32.dll", 'int','OpenProcess', 'int', 0x1f0fff, 'int', False, 'int', $i_PID)    
07                    Local $ai_Return = DllCall("psapi.dll", 'int','EmptyWorkingSet', 'long', $ai_Handle[0])    
08                    DllCall('kernel32.dll', 'int', 'CloseHandle', 'int',$ai_Handle[0])    
09            Else    
10                    Local $ai_Return = DllCall("psapi.dll", 'int','EmptyWorkingSet', 'long', -1)    
11            EndIf    
12    
13            Return $ai_Return[0]    
14    EndFunc   ;==>_ReduceMemory

转自ACN论坛

打赏

标签:

1

猜你喜欢

右侧2016一起努力
最新发布的文章
最新评论

公告

十年相伴 值得信赖 需要定制开发、购买加速器可以联系 QQ1368762345,微信同号