Skip to content

Instantly share code, notes, and snippets.

@mvankuipers
Created August 13, 2017 22:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mvankuipers/c1de345d571cfe79619e332e65360d25 to your computer and use it in GitHub Desktop.
Save mvankuipers/c1de345d571cfe79619e332e65360d25 to your computer and use it in GitHub Desktop.
// Unlock the virtual memory (just in case).
VirtualUnlock(Private, 4096);
// Flush the process' working set.
SetProcessWorkingSetSize(GetCurrentProcess(), (SIZE_T)-1, (SIZE_T)-1);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment