Module: wine
Branch: master
Commit: 3fa635f9dc33df9857d05d58c375cd2bc2e57878
URL: http://source.winehq.org/git/wine.git/?a=commit;h=3fa635f9dc33df9857d05d58c…
Author: Rico Schüller <kgbricola(a)web.de>
Date: Wed Apr 30 19:55:25 2008 +0200
msftedit: Add DllGetVersion.
---
dlls/msftedit/Makefile.in | 5 +++
dlls/msftedit/msftedit.spec | 2 +-
dlls/msftedit/msftedit_main.c | 69 +++++++++++++++++++++++++++++++++++++++++
dlls/msftedit/version.rc | 26 +++++++++++++++
4 files changed, 101 insertions(+), 1 deletions(-)
diff --git a/dlls/msftedit/Makefile.in b/dlls/msftedit/Makefile.in
index 829b834..d00682a 100644
--- a/dlls/msftedit/Makefile.in
+++ b/dlls/msftedit/Makefile.in
@@ -5,6 +5,11 @@ VPATH = @srcdir@
MODULE = msftedit.dll
IMPORTS = uuid riched20 kernel32
+C_SRCS = \
+ msftedit_main.c
+
+RC_SRCS = version.rc
+
@MAKE_DLL_RULES@
@DEPENDENCIES@ # everything below this line is overwritten by make depend
diff --git a/dlls/msftedit/msftedit.spec b/dlls/msftedit/msftedit.spec
index be36be5..6f0e9e2 100644
--- a/dlls/msftedit/msftedit.spec
+++ b/dlls/msftedit/msftedit.spec
@@ -8,7 +8,7 @@
9 stdcall RichEdit10ANSIWndProc(ptr long long long) riched20.RichEdit10ANSIWndProc
10 stdcall RichEditANSIWndProc(ptr long long long) riched20.RichEditANSIWndProc
11 stub SetCustomTextOutHandlerEx
-12 stub DllGetVersion
+12 stdcall -private DllGetVersion(ptr)
13 stub RichEditWndProc
14 stub RichListBoxWndProc
15 stub RichComboBoxWndProc
diff --git a/dlls/msftedit/msftedit_main.c b/dlls/msftedit/msftedit_main.c
new file mode 100644
index 0000000..7fcb6ee
--- /dev/null
+++ b/dlls/msftedit/msftedit_main.c
@@ -0,0 +1,69 @@
+/*
+ * msftedit main file
+ *
+ * Copyright (C) 2008 Rico Schüller
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
+ *
+ */
+
+#include "config.h"
+#include "wine/port.h"
+
+#include <stdarg.h>
+
+#include "windef.h"
+#include "winbase.h"
+#include "wingdi.h"
+#include "winuser.h"
+#include "wine/debug.h"
+
+#include "winreg.h"
+#include "shlwapi.h"
+
+WINE_DEFAULT_DEBUG_CHANNEL(msftedit);
+
+/***********************************************************************
+ * DllMain.
+ */
+BOOL WINAPI DllMain(HINSTANCE inst, DWORD reason, LPVOID reserved)
+{
+ switch(reason)
+ {
+ case DLL_WINE_PREATTACH:
+ return FALSE; /* prefer native version */
+ case DLL_PROCESS_ATTACH:
+ DisableThreadLibraryCalls(inst);
+ break;
+ case DLL_PROCESS_DETACH:
+ break;
+ }
+ return TRUE;
+}
+
+/***********************************************************************
+ * DllGetVersion (msftedit.@)
+ */
+HRESULT WINAPI DllGetVersion(DLLVERSIONINFO *info)
+{
+ if (info->cbSize != sizeof(DLLVERSIONINFO)) FIXME("support DLLVERSIONINFO2\n");
+
+ /* this is what WINXP SP2 reports */
+ info->dwMajorVersion = 41;
+ info->dwMinorVersion = 15;
+ info->dwBuildNumber = 1507;
+ info->dwPlatformID = 1;
+ return NOERROR;
+}
diff --git a/dlls/msftedit/version.rc b/dlls/msftedit/version.rc
new file mode 100644
index 0000000..ce5ef0e
--- /dev/null
+++ b/dlls/msftedit/version.rc
@@ -0,0 +1,26 @@
+/*
+ * Copyright 2008 Rico Schüller
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
+ */
+
+#define WINE_FILEDESCRIPTION_STR "Rich Text Edit Control"
+#define WINE_FILENAME_STR "msftedit.dll"
+#define WINE_FILEVERSION 5,41,15,1509
+#define WINE_FILEVERSION_STR "5,41,15,1509"
+#define WINE_PRODUCTVERSION 5,41,15,1509
+#define WINE_PRODUCTVERSION_STR "5,41,15,1509"
+
+#include "wine/wine_common_ver.rc"