[DllImport("psapi.dll", SetLastError = true)] public static extern bool GetProcessMemoryInfo( IntPtr hProcess, out PROCESS_MEMORY_COUNTERS ppsmemCounters, uint cb );
Microsoft documentation: Link
Last updated 1 year ago