Last updated 1 year ago
[DllImport("psapi.dll", SetLastError = true)] public static extern bool EmptyWorkingSet( IntPtr hProcess );
Microsoft documentation: