_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