diff --git a/dlls/kernel32/kernel32.spec b/dlls/kernel32/kernel32.spec index 7e278b59bd..aad5e79496 100644 --- a/dlls/kernel32/kernel32.spec +++ b/dlls/kernel32/kernel32.spec @@ -236,7 +236,7 @@ @ stub CreateKernelThread @ stdcall CreateMailslotA(ptr long long ptr) @ stdcall CreateMailslotW(ptr long long ptr) -# @ stub CreateMemoryResourceNotification +@ stdcall CreateMemoryResourceNotification(long) @ stdcall CreateMutexA(ptr long str) @ stdcall CreateMutexExA(ptr str long long) @ stdcall CreateMutexExW(ptr wstr long long) diff --git a/dlls/kernel32/sync.c b/dlls/kernel32/sync.c index 8330d4a1de..8918f3df2a 100644 --- a/dlls/kernel32/sync.c +++ b/dlls/kernel32/sync.c @@ -2171,6 +2171,18 @@ BOOL WINAPI BindIoCompletionCallback( HANDLE FileHandle, LPOVERLAPPED_COMPLETION return FALSE; } + +/*********************************************************************** + * CreateMemoryResourceNotification (KERNEL32.@) + */ +HANDLE WINAPI CreateMemoryResourceNotification(MEMORY_RESOURCE_NOTIFICATION_TYPE nt) +{ + FIXME("(%d) stub\n", nt); + SetLastError(ERROR_CALL_NOT_IMPLEMENTED); + return NULL; +} + + #ifdef __i386__ /*********************************************************************** diff --git a/include/winbase.h b/include/winbase.h index 0b4ee170d1..8298cbd4cb 100644 --- a/include/winbase.h +++ b/include/winbase.h @@ -501,6 +501,10 @@ typedef struct tagMEMORYSTATUSEX { } MEMORYSTATUSEX, *LPMEMORYSTATUSEX; #include +typedef enum _MEMORY_RESOURCE_NOTIFICATION_TYPE { + LowMemoryResourceNotification, + HighMemoryResourceNotification +} MEMORY_RESOURCE_NOTIFICATION_TYPE; #ifndef _SYSTEMTIME_ #define _SYSTEMTIME_ @@ -1391,6 +1395,7 @@ WINBASEAPI HANDLE WINAPI CreateJobObjectW(LPSECURITY_ATTRIBUTES,LPCWSTR); WINBASEAPI HANDLE WINAPI CreateMailslotA(LPCSTR,DWORD,DWORD,LPSECURITY_ATTRIBUTES); WINBASEAPI HANDLE WINAPI CreateMailslotW(LPCWSTR,DWORD,DWORD,LPSECURITY_ATTRIBUTES); #define CreateMailslot WINELIB_NAME_AW(CreateMailslot) +WINBASEAPI HANDLE WINAPI CreateMemoryResourceNotification(MEMORY_RESOURCE_NOTIFICATION_TYPE); WINBASEAPI HANDLE WINAPI CreateMutexA(LPSECURITY_ATTRIBUTES,BOOL,LPCSTR); WINBASEAPI HANDLE WINAPI CreateMutexW(LPSECURITY_ATTRIBUTES,BOOL,LPCWSTR); #define CreateMutex WINELIB_NAME_AW(CreateMutex)