various missing stubs

Eric Pouech Eric.Pouech at wanadoo.fr
Fri Feb 23 16:25:36 CST 2001


A+
-- 
---------------
Eric Pouech (http://perso.wanadoo.fr/eric.pouech/)
"The future will be better tomorrow", Vice President Dan Quayle
-------------- next part --------------
Name: stubs
ChangeLog: added a few missing stubs to KERNEL32 and USER32
GenDate: 2001/02/23 20:08:52 UTC
ModifiedFiles: controls/menu.c dlls/kernel/kernel32.spec dlls/kernel/time.c dlls/user/user32.spec windows/syscolor.c windows/user.c
AddedFiles: 
===================================================================
RCS file: /home/cvs/cvsroot/wine/wine/controls/menu.c,v
retrieving revision 1.107
diff -u -u -r1.107 menu.c
--- controls/menu.c	2001/02/23 01:13:42	1.107
+++ controls/menu.c	2001/02/23 20:00:56
@@ -4196,6 +4196,14 @@
     return FALSE;
 }
 
+/***********************************************************************
+ *           DrawMenuBarTemp   (USER32.@)
+ */
+DWORD WINAPI DrawMenuBarTemp(DWORD p1, DWORD p2)
+{
+    FIXME("(%08lx %08lx): stub\n", p1, p2);
+    return 0;
+}
 
 /***********************************************************************
  *           EndMenu   (USER.187) (USER32.@)
Index: dlls/kernel/kernel32.spec
===================================================================
RCS file: /home/cvs/cvsroot/wine/wine/dlls/kernel/kernel32.spec,v
retrieving revision 1.28
diff -u -u -r1.28 kernel32.spec
--- dlls/kernel/kernel32.spec	2001/02/14 23:12:36	1.28
+++ dlls/kernel/kernel32.spec	2001/02/17 21:18:01
@@ -958,6 +958,10 @@
 @ stdcall InitializeCriticalSectionAndSpinCount(ptr long) InitializeCriticalSectionAndSpinCount
 @ stdcall SetCriticalSectionSpinCount(ptr long) SetCriticalSectionSpinCount
 @ stdcall ProcessIdToSessionId(long ptr) ProcessIdToSessionId
+@ stdcall GetCalendarInfoA(long long long ptr long ptr) GetCalendarInfoA
+@ stdcall GetCalendarInfoW(long long long ptr long ptr) GetCalendarInfoW
+@ stdcall SetCalendarInfoA(long long long str) SetCalendarInfoA
+@ stdcall SetCalendarInfoW(long long long wstr) SetCalendarInfoW
 
 ################################################################
 # Wine extensions: Win16 functions that are needed by other dlls
Index: dlls/kernel/time.c
===================================================================
RCS file: /home/cvs/cvsroot/wine/wine/dlls/kernel/time.c,v
retrieving revision 1.9
diff -u -u -r1.9 time.c
--- dlls/kernel/time.c	2001/02/12 03:49:57	1.9
+++ dlls/kernel/time.c	2001/02/23 20:08:10
@@ -12,6 +12,7 @@
 #include "file.h"
 #include "ntddk.h"
 #include "winerror.h"
+#include "winnls.h"
 #include "debugtools.h"
 
 DEFAULT_DEBUG_CHANNEL(win32);
@@ -312,3 +313,50 @@
     TIME_ClockTimeToFileTime(tms.tms_stime,lpKernelTime);
     return TRUE;
 }
+
+/*********************************************************************
+ *	GetCalendarInfoA				(KERNEL32)
+ *
+ */
+int WINAPI GetCalendarInfoA(LCID Locale, CALID Calendar, CALTYPE CalType,
+			    LPSTR lpCalData, int cchData, LPDWORD lpValue)
+{
+    FIXME("(%08lx,%08lx,%08lx,%p,%d,%p): stub\n", 
+	  Locale, Calendar, CalType, lpCalData, cchData, lpValue);
+    return 0;
+}
+
+/*********************************************************************
+ *	GetCalendarInfoW				(KERNEL32)
+ *
+ */
+int WINAPI GetCalendarInfoW(LCID Locale, CALID Calendar, CALTYPE CalType,
+			    LPWSTR lpCalData, int cchData, LPDWORD lpValue)
+{	
+    FIXME("(%08lx,%08lx,%08lx,%p,%d,%p): stub\n", 
+	  Locale, Calendar, CalType, lpCalData, cchData, lpValue);
+    return 0;
+}
+
+/*********************************************************************
+ *	SetCalendarInfoA				(KERNEL32)
+ *
+ */
+int WINAPI	SetCalendarInfoA(LCID Locale, CALID Calendar, CALTYPE CalType, LPCSTR lpCalData)
+{
+    FIXME("(%08lx,%08lx,%08lx,%s): stub\n", 
+	  Locale, Calendar, CalType, debugstr_a(lpCalData));
+    return 0;
+}
+
+/*********************************************************************
+ *	SetCalendarInfoW				(KERNEL32)
+ *
+ */
+int WINAPI	SetCalendarInfoW(LCID Locale, CALID Calendar, CALTYPE CalType, LPCWSTR lpCalData)
+{
+    FIXME("(%08lx,%08lx,%08lx,%s): stub\n", 
+	  Locale, Calendar, CalType, debugstr_w(lpCalData));
+    return 0;
+}
+
Index: dlls/user/user32.spec
===================================================================
RCS file: /home/cvs/cvsroot/wine/wine/dlls/user/user32.spec,v
retrieving revision 1.25
diff -u -u -r1.25 user32.spec
--- dlls/user/user32.spec	2001/02/12 03:40:42	1.25
+++ dlls/user/user32.spec	2001/02/23 20:08:43
@@ -518,7 +518,7 @@
 @ stdcall SetScrollRange(long long long long long) SetScrollRange
 @ stdcall SetShellWindow(long) SetShellWindow
 @ stdcall SetSysColors(long ptr ptr) SetSysColors
-@ stub SetSysColorsTemp
+@ stdcall SetSysColorsTemp(long ptr ptr) SetSysColorsTemp
 @ stdcall SetSystemCursor(long long) SetSystemCursor
 @ stdcall SetSystemMenu(long long) SetSystemMenu
 @ stdcall SetSystemTimer(long long long ptr) SetSystemTimer
@@ -652,6 +652,9 @@
 @ stdcall GetClipboardSequenceNumber () GetClipboardSequenceNumber
 @ stdcall AllowSetForegroundWindow (long) AllowSetForegroundWindow
 @ stdcall LockSetForegroundWindow (long) LockSetForegroundWindow
+@ stdcall DrawMenuBarTemp(long long) DrawMenuBarTemp
+@ stdcall EnumDisplaySettingsExA(str long ptr long) EnumDisplaySettingsExA
+@ stdcall EnumDisplaySettingsExW(wstr long ptr long) EnumDisplaySettingsExW
 
 ################################################################
 # Wine extensions: Win16 functions that are needed by other dlls
Index: windows/syscolor.c
===================================================================
RCS file: /home/cvs/cvsroot/wine/wine/windows/syscolor.c,v
retrieving revision 1.23
diff -u -u -r1.23 syscolor.c
--- windows/syscolor.c	2001/01/25 22:22:22	1.23
+++ windows/syscolor.c	2001/02/23 20:05:12
@@ -276,6 +276,14 @@
     return TRUE;
 }
 
+/*************************************************************************
+ *		SetSysColors (USER32.@)
+ */
+BOOL	WINAPI	SetSysColorsTemp( int n, const int* p, const COLORREF* ptr)
+{
+	FIXME("(%d,%p,%p): stub!\n", n, p, ptr);
+	return 0;
+}
 
 /***********************************************************************
  *		GetSysColorBrush (USER.281)
@@ -312,3 +320,5 @@
     return SysColorPens[index];
 
 }
+
+
Index: windows/user.c
===================================================================
RCS file: /home/cvs/cvsroot/wine/wine/windows/user.c,v
retrieving revision 1.70
diff -u -u -r1.70 user.c
--- windows/user.c	2001/02/12 03:49:07	1.70
+++ windows/user.c	2001/02/23 19:50:38
@@ -415,7 +415,9 @@
 	int depths[4] = {8,16,24,32};
 
 	TRACE_(system)("(%s,%ld,%p)\n",name,n,devmode);
-	if (n==0) {
+	devmode->dmDisplayFlags = 0;
+	devmode->dmDisplayFrequency = 85;
+	if (n==0 || n == (DWORD)-1 || n == (DWORD)-2) {
 		devmode->dmBitsPerPel = GetSystemMetrics(SM_WINE_BPP);
 		devmode->dmPelsHeight = GetSystemMetrics(SM_CYSCREEN);
 		devmode->dmPelsWidth  = GetSystemMetrics(SM_CXSCREEN);
@@ -439,9 +441,11 @@
 	BOOL ret = EnumDisplaySettingsA(nameA,n,&devmodeA); 
 
 	if (ret) {
-		devmode->dmBitsPerPel	= devmodeA.dmBitsPerPel;
-		devmode->dmPelsHeight	= devmodeA.dmPelsHeight;
-		devmode->dmPelsWidth	= devmodeA.dmPelsWidth;
+		devmode->dmBitsPerPel		 = devmodeA.dmBitsPerPel;
+		devmode->dmPelsHeight		 = devmodeA.dmPelsHeight;
+		devmode->dmPelsWidth	   	 = devmodeA.dmPelsWidth;
+		devmode->dmDisplayFlags	    = devmodeA.dmDisplayFlags;
+		devmode->dmDisplayFrequency = devmodeA.dmDisplayFrequency;
 		/* FIXME: convert rest too, if they are ever returned */
 	}
 	HeapFree(GetProcessHeap(),0,nameA);
@@ -458,6 +462,30 @@
 ) {
 	TRACE_(system)("(%s, %ld, %p)\n", name, n, devmode);
 	return (BOOL16)EnumDisplaySettingsA(name, n, devmode);
+}
+
+/***********************************************************************
+ *		EnumDisplaySettingsExA (USER32.@)
+ */
+BOOL WINAPI EnumDisplaySettingsExA(LPCSTR lpszDeviceName, DWORD iModeNum,
+				   LPDEVMODEA lpDevMode, DWORD dwFlags) 
+{
+        TRACE_(system)("(%s,%lu,%p,%08lx): stub\n",
+		       debugstr_a(lpszDeviceName), iModeNum, lpDevMode, dwFlags);
+
+	return EnumDisplaySettingsA(lpszDeviceName, iModeNum, lpDevMode);
+}
+
+/***********************************************************************
+ *		EnumDisplaySettingsExW (USER32.@)
+ */
+BOOL WINAPI EnumDisplaySettingsExW(LPCWSTR lpszDeviceName, DWORD iModeNum,
+				   LPDEVMODEW lpDevMode, DWORD dwFlags) 
+{
+	TRACE_(system)("(%s,%lu,%p,%08lx): stub\n",
+			debugstr_w(lpszDeviceName), iModeNum, lpDevMode, dwFlags);
+
+	return EnumDisplaySettingsW(lpszDeviceName, iModeNum, lpDevMode);
 }
 
 /***********************************************************************


More information about the wine-patches mailing list