psapi: Forward EmptyWorkingSet implementation to kernel32

Jacek Caban jacek at
Tue Apr 19 07:20:52 CDT 2011

On 4/19/11 2:14 PM, Dmitry Timoshkov wrote:
> Jacek Caban<jacek at>  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 


More information about the wine-devel mailing list