Skip to content

Instantly share code, notes, and snippets.

@Mandar-Shinde
Last active December 14, 2015 13:25
Show Gist options
  • Save Mandar-Shinde/5b64aff59c504e4fe8b0 to your computer and use it in GitHub Desktop.
Save Mandar-Shinde/5b64aff59c504e4fe8b0 to your computer and use it in GitHub Desktop.
Clear Memory Working Set
//
// Removes as many pages as possible from the working set of the current process.
// Library: Psapi.h
//
if(EmptyWorkingSet(GetCurrentProcess()))
{
// Cleared up some working set
}
else
{
// Failed to free working set
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment