On 4/19/11 2:14 PM, Dmitry Timoshkov wrote:
Jacek Caban<[email protected]> wrote:+BOOL WINAPI K32EmptyWorkingSet(HANDLE hProcess) +{ + return SetProcessWorkingSetSize(hProcess, (SIZE_T)-1, (SIZE_T)-1); +}You need to export it from kernel32.
Right, I've missed that part, thanks.
Also using ~0 instead of casting -1 would be better IMHO.
That's what's used in kernel32 a few lines earlier, so I chose it for consistency.
Thanks,
Jacek
