Stefan Leichter : kernel32: Added stub for CreateMemoryResourceNotification .
Alexandre Julliard
julliard at winehq.org
Mon Nov 16 11:43:54 CST 2009
Module: wine
Branch: master
Commit: 7f1fe90e7f45433fc2f2f6fc130687262040e9ef
URL: http://source.winehq.org/git/wine.git/?a=commit;h=7f1fe90e7f45433fc2f2f6fc130687262040e9ef
Author: Stefan Leichter <Stefan.Leichter at camline.com>
Date: Sat Nov 14 09:58:47 2009 +0100
kernel32: Added stub for CreateMemoryResourceNotification.
---
dlls/kernel32/kernel32.spec | 2 +-
dlls/kernel32/sync.c | 12 ++++++++++++
include/winbase.h | 5 +++++
3 files changed, 18 insertions(+), 1 deletions(-)
diff --git a/dlls/kernel32/kernel32.spec b/dlls/kernel32/kernel32.spec
index 7e278b5..aad5e79 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 8330d4a..8918f3d 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 0b4ee17..8298cbd 100644
--- a/include/winbase.h
+++ b/include/winbase.h
@@ -501,6 +501,10 @@ typedef struct tagMEMORYSTATUSEX {
} MEMORYSTATUSEX, *LPMEMORYSTATUSEX;
#include <poppack.h>
+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)
More information about the wine-cvs
mailing list