Jacek Caban jacek@codeweavers.com wrote:
+BOOL WINAPI K32EmptyWorkingSet(HANDLE hProcess) +{
- return SetProcessWorkingSetSize(hProcess, (SIZE_T)-1, (SIZE_T)-1);
+}
You need to export it from kernel32. Also using ~0 instead of casting -1 would be better IMHO.
On 4/19/11 2:14 PM, Dmitry Timoshkov wrote:
Jacek Cabanjacek@codeweavers.com 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