psapi: Forward EmptyWorkingSet implementation to kernel32.

This commit is contained in:
Jacek Caban 2011-04-19 14:21:08 +02:00 committed by Alexandre Julliard
parent 766eb46a0f
commit 25023c1302
4 changed files with 10 additions and 9 deletions

View File

@ -767,6 +767,7 @@
@ stdcall IsValidLocale(long long)
# @ stub IsValidUILanguage
@ stdcall IsWow64Process(ptr ptr)
@ stdcall K32EmptyWorkingSet(long)
@ stdcall K32GetProcessImageFileNameA(long ptr long)
@ stdcall K32GetProcessImageFileNameW(long ptr long)
@ stdcall -i386 -private -register K32Thk1632Epilog() krnl386.exe16.K32Thk1632Epilog

View File

@ -3231,6 +3231,14 @@ BOOL WINAPI SetProcessWorkingSetSize(HANDLE hProcess, SIZE_T minset,
return TRUE;
}
/***********************************************************************
* K32EmptyWorkingSet (KERNEL32.@)
*/
BOOL WINAPI K32EmptyWorkingSet(HANDLE hProcess)
{
return SetProcessWorkingSetSize(hProcess, (SIZE_T)-1, (SIZE_T)-1);
}
/***********************************************************************
* GetProcessWorkingSetSize (KERNEL32.@)
*/

View File

@ -1,4 +1,4 @@
@ stdcall EmptyWorkingSet(long)
@ stdcall EmptyWorkingSet(long) kernel32.K32EmptyWorkingSet
@ stdcall EnumDeviceDrivers(ptr long ptr)
@ stdcall EnumPageFilesA(ptr ptr)
@ stdcall EnumPageFilesW(ptr ptr)

View File

@ -147,14 +147,6 @@ static BOOL PSAPI_GetLdrModule(HANDLE hProcess, HMODULE hModule,
return FALSE;
}
/***********************************************************************
* EmptyWorkingSet (PSAPI.@)
*/
BOOL WINAPI EmptyWorkingSet(HANDLE hProcess)
{
return SetProcessWorkingSetSize(hProcess, 0xFFFFFFFF, 0xFFFFFFFF);
}
/***********************************************************************
* EnumDeviceDrivers (PSAPI.@)
*/