Memory Crunching
Article Writing
2
Posts
2
Posters
0
Views
1
Watching
-
When you minimize an entire application a great part of it's memory is decommited back to the system (You can check this with the taskmanager)... Does anyone know how to do this inside an application without minimizing it...
Maybe, just maybe,... // // Get a handle to the process. // DWORD dwId = ::GetCurrentProcessId(); HANDLE hProcess = ::OpenProcess(PROCESS_ALL_ACCESS,FALSE,dwId); if (hProcess) { ::EmptyWorkingSet(hProcess); ::CloseHandle(hProcess); } Old Simon