Virtual Memory

xiaoxiao2021-03-06  95

Under WIN Under the case of iDLE, the user has taken the memory, and it is necessary to deploy the dummy.

From: SMTH

QQ2004II's BasicCtrldll.dll provides a function void __cdecl minimizeMemory (Void); to clean the memory of QQ. Cygwin once said that its principle is to call NT's API setProcessWorkingSize (), I just saw it, sure, Sure enough:

Void minizeMemory () {osversioninfoEx Osvi; getversionEx (& OSVI); if (Osvi.dwplatformID == Ver_Platform_WIN32_NT) {setProcessWorkingSetSize (getCurrentProcess (), -1, -1);}}

In this way, the so-called "cleaning memory" is actually putting the memory memory in the virtual memory, and what is the same as myim.

转载请注明原文地址:https://www.9cbs.com/read-105513.html

New Post(0)