C# With Ram Optimize : <p>you can optimize the RAM usage of an application with the following code with AutoIt. How is this in C#, How do I set up?</p>

<pre><code>Func _ReduceMemory($iPid)
    Local $ai_Handle = DllCall("kernel32.dll", 'int', 'OpenProcess', 'int', 0x1f0fff, 'int', False, 'int', $iPid)
    Local $ai_Return = DllCall("psapi.dll", 'int', 'EmptyWorkingSet', 'long', $ai_Handle[0])
    Return $ai_Return[0]
EndFunc
</code></pre>
