Last active
December 14, 2015 13:25
-
-
Save Mandar-Shinde/5b64aff59c504e4fe8b0 to your computer and use it in GitHub Desktop.
Clear Memory Working Set
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// 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