kernel32: Add stub for GetProcessWorkingSetSizeEx.
Signed-off-by: Alex Henrie <alexhenrie24@gmail.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
fbf2631dcb
commit
59ecc9ccd9
|
@ -4,7 +4,7 @@
|
|||
@ stdcall CreateMemoryResourceNotification(long) kernel32.CreateMemoryResourceNotification
|
||||
@ stdcall FlushViewOfFile(ptr long) kernel32.FlushViewOfFile
|
||||
@ stdcall GetLargePageMinimum() kernel32.GetLargePageMinimum
|
||||
@ stub GetProcessWorkingSetSizeEx
|
||||
@ stdcall GetProcessWorkingSetSizeEx(long ptr ptr ptr) kernel32.GetProcessWorkingSetSizeEx
|
||||
@ stdcall GetSystemFileCacheSize(ptr ptr ptr) kernel32.GetSystemFileCacheSize
|
||||
@ stdcall GetWriteWatch(long ptr long ptr ptr ptr) kernel32.GetWriteWatch
|
||||
@ stdcall MapViewOfFile(long long long long long) kernel32.MapViewOfFile
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
@ stdcall FreeUserPhysicalPages(long ptr ptr) kernel32.FreeUserPhysicalPages
|
||||
@ stdcall GetLargePageMinimum() kernel32.GetLargePageMinimum
|
||||
@ stub GetMemoryErrorHandlingCapabilities
|
||||
@ stub GetProcessWorkingSetSizeEx
|
||||
@ stdcall GetProcessWorkingSetSizeEx(long ptr ptr ptr) kernel32.GetProcessWorkingSetSizeEx
|
||||
@ stdcall GetSystemFileCacheSize(ptr ptr ptr) kernel32.GetSystemFileCacheSize
|
||||
@ stdcall GetWriteWatch(long ptr long ptr ptr ptr) kernel32.GetWriteWatch
|
||||
@ stub MapUserPhysicalPages
|
||||
|
|
|
@ -793,7 +793,7 @@
|
|||
# @ stub GetProcessUserModeExceptionPolicy
|
||||
@ stdcall GetProcessVersion(long)
|
||||
@ stdcall GetProcessWorkingSetSize(long ptr ptr)
|
||||
# @ stub GetProcessWorkingSetSizeEx
|
||||
@ stdcall GetProcessWorkingSetSizeEx(long ptr ptr ptr)
|
||||
@ stdcall GetProductInfo(long long long long ptr)
|
||||
@ stub GetProductName
|
||||
@ stdcall GetProfileIntA(str str long)
|
||||
|
|
|
@ -3424,20 +3424,32 @@ BOOL WINAPI K32EmptyWorkingSet(HANDLE hProcess)
|
|||
return SetProcessWorkingSetSize(hProcess, (SIZE_T)-1, (SIZE_T)-1);
|
||||
}
|
||||
|
||||
|
||||
/***********************************************************************
|
||||
* GetProcessWorkingSetSize (KERNEL32.@)
|
||||
* GetProcessWorkingSetSizeEx (KERNEL32.@)
|
||||
*/
|
||||
BOOL WINAPI GetProcessWorkingSetSize(HANDLE hProcess, PSIZE_T minset,
|
||||
PSIZE_T maxset)
|
||||
BOOL WINAPI GetProcessWorkingSetSizeEx(HANDLE process, SIZE_T *minset,
|
||||
SIZE_T *maxset, DWORD *flags)
|
||||
{
|
||||
FIXME("(%p,%p,%p): stub\n",hProcess,minset,maxset);
|
||||
FIXME("(%p,%p,%p,%p): stub\n", process, minset, maxset, flags);
|
||||
/* 32 MB working set size */
|
||||
if (minset) *minset = 32*1024*1024;
|
||||
if (maxset) *maxset = 32*1024*1024;
|
||||
if (flags) *flags = QUOTA_LIMITS_HARDWS_MIN_DISABLE |
|
||||
QUOTA_LIMITS_HARDWS_MAX_DISABLE;
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
|
||||
/***********************************************************************
|
||||
* GetProcessWorkingSetSize (KERNEL32.@)
|
||||
*/
|
||||
BOOL WINAPI GetProcessWorkingSetSize(HANDLE process, SIZE_T *minset, SIZE_T *maxset)
|
||||
{
|
||||
return GetProcessWorkingSetSizeEx(process, minset, maxset, NULL);
|
||||
}
|
||||
|
||||
|
||||
/***********************************************************************
|
||||
* SetProcessShutdownParameters (KERNEL32.@)
|
||||
*/
|
||||
|
|
|
@ -637,7 +637,7 @@
|
|||
@ stdcall GetProcessShutdownParameters(ptr ptr) kernel32.GetProcessShutdownParameters
|
||||
@ stdcall GetProcessTimes(long ptr ptr ptr ptr) kernel32.GetProcessTimes
|
||||
@ stdcall GetProcessVersion(long) kernel32.GetProcessVersion
|
||||
# @ stub GetProcessWorkingSetSizeEx
|
||||
@ stdcall GetProcessWorkingSetSizeEx(long ptr ptr ptr) kernel32.GetProcessWorkingSetSizeEx
|
||||
# @ stub GetProcessorSystemCycleTime
|
||||
@ stdcall GetProductInfo(long long long long ptr) kernel32.GetProductInfo
|
||||
@ stub GetPtrCalData
|
||||
|
|
Loading…
Reference in New Issue