Austin English : wmvcore: Add a stub dll.
Alexandre Julliard
julliard at winehq.org
Mon May 7 14:29:27 CDT 2012
Module: wine
Branch: master
Commit: d1cfbbb62cefb9de3fa1c6d0051aca68f98dc3aa
URL: http://source.winehq.org/git/wine.git/?a=commit;h=d1cfbbb62cefb9de3fa1c6d0051aca68f98dc3aa
Author: Austin English <austinenglish at gmail.com>
Date: Thu May 3 12:41:30 2012 -0500
wmvcore: Add a stub dll.
---
configure | 1 +
configure.ac | 1 +
dlls/wmvcore/Makefile.in | 7 ++++++
dlls/wmvcore/wmvcore.spec | 20 +++++++++++++++++++
dlls/wmvcore/wmvcore_main.c | 45 +++++++++++++++++++++++++++++++++++++++++++
5 files changed, 74 insertions(+), 0 deletions(-)
diff --git a/configure b/configure
index 771cc60..896db3a 100755
--- a/configure
+++ b/configure
@@ -15457,6 +15457,7 @@ wine_fn_config_dll wldap32 enable_wldap32 implib,po
wine_fn_config_test dlls/wldap32/tests wldap32_test
wine_fn_config_dll wmi enable_wmi
wine_fn_config_dll wmiutils enable_wmiutils
+wine_fn_config_dll wmvcore enable_wmvcore
wine_fn_config_dll wnaspi32 enable_wnaspi32 implib
wine_fn_config_dll wow32 enable_win16 implib
wine_fn_config_dll ws2_32 enable_ws2_32 implib
diff --git a/configure.ac b/configure.ac
index 1623ddc..857b99b 100644
--- a/configure.ac
+++ b/configure.ac
@@ -2945,6 +2945,7 @@ WINE_CONFIG_DLL(wldap32,,[implib,po])
WINE_CONFIG_TEST(dlls/wldap32/tests)
WINE_CONFIG_DLL(wmi)
WINE_CONFIG_DLL(wmiutils)
+WINE_CONFIG_DLL(wmvcore)
WINE_CONFIG_DLL(wnaspi32,,[implib])
WINE_CONFIG_DLL(wow32,enable_win16,[implib])
WINE_CONFIG_DLL(ws2_32,,[implib])
diff --git a/dlls/wmvcore/Makefile.in b/dlls/wmvcore/Makefile.in
new file mode 100644
index 0000000..3f06e19
--- /dev/null
+++ b/dlls/wmvcore/Makefile.in
@@ -0,0 +1,7 @@
+MODULE = wmvcore.dll
+IMPORTS = kernel32
+
+C_SRCS = \
+ wmvcore_main.c
+
+ at MAKE_DLL_RULES@
diff --git a/dlls/wmvcore/wmvcore.spec b/dlls/wmvcore/wmvcore.spec
new file mode 100644
index 0000000..1c6cb1f
--- /dev/null
+++ b/dlls/wmvcore/wmvcore.spec
@@ -0,0 +1,20 @@
+@ stub WMCheckURLExtension
+@ stub WMCheckURLScheme
+@ stub WMCreateBackupRestorerPrivate
+@ stub WMCreateSyncReaderPriv
+@ stub WMIsAvailableOffline
+@ stub WMValidateData
+@ stub DllRegisterServer
+@ stub WMCreateBackupRestorer
+@ stub WMCreateEditor
+@ stub WMCreateIndexer
+@ stub WMCreateProfileManager
+@ stub WMCreateReader
+@ stub WMCreateReaderPriv
+@ stub WMCreateSyncReader
+@ stub WMCreateWriter
+@ stub WMCreateWriterFileSink
+@ stub WMCreateWriterNetworkSink
+@ stub WMCreateWriterPriv
+@ stub WMCreateWriterPushSink
+@ stub WMIsContentProtected
diff --git a/dlls/wmvcore/wmvcore_main.c b/dlls/wmvcore/wmvcore_main.c
new file mode 100644
index 0000000..096328b
--- /dev/null
+++ b/dlls/wmvcore/wmvcore_main.c
@@ -0,0 +1,45 @@
+/*
+ * Copyright 2012 Austin English
+ *
+ * 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 <stdarg.h>
+
+#include "windef.h"
+#include "winbase.h"
+#include "wine/debug.h"
+
+WINE_DEFAULT_DEBUG_CHANNEL(wmvcore);
+
+BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
+{
+ TRACE("(0x%p, %d, %p)\n", hinstDLL, fdwReason, lpvReserved);
+
+ switch (fdwReason)
+ {
+ case DLL_WINE_PREATTACH:
+ return FALSE; /* prefer native version */
+ case DLL_PROCESS_ATTACH:
+ DisableThreadLibraryCalls(hinstDLL);
+ break;
+ case DLL_PROCESS_DETACH:
+ break;
+ }
+
+ return TRUE;
+}
More information about the wine-cvs
mailing list