Advertisement
wuuyi123

Reduce Memory Others Process

May 27th, 2017
332
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
AutoIt 0.34 KB | None | 0 0
  1. Func _ReduceMemoryProcess($ProcessID)
  2.     Local $Handle = DllCall("kernel32.dll", 'int', 'OpenProcess', 'int', 0x1F0FFF, 'int', False, 'int', $ProcessID)
  3.     Local $Return = DllCall("psapi.dll", 'int', 'EmptyWorkingSet', 'long', $Handle[0])
  4.     DllCall('kernel32.dll', 'int', 'CloseHandle', 'int', $Handle[0])
  5.     Return $Return[0]
  6. EndFunc
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement