From d1cfbbb62cefb9de3fa1c6d0051aca68f98dc3aa Mon Sep 17 00:00:00 2001 From: Austin English Date: Thu, 3 May 2012 12:41:30 -0500 Subject: [PATCH] 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(+) create mode 100644 dlls/wmvcore/Makefile.in create mode 100644 dlls/wmvcore/wmvcore.spec create mode 100644 dlls/wmvcore/wmvcore_main.c diff --git a/configure b/configure index 771cc608a56..896db3a02ad 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 1623ddc7174..857b99b563d 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 00000000000..3f06e190a55 --- /dev/null +++ b/dlls/wmvcore/Makefile.in @@ -0,0 +1,7 @@ +MODULE = wmvcore.dll +IMPORTS = kernel32 + +C_SRCS = \ + wmvcore_main.c + +@MAKE_DLL_RULES@ diff --git a/dlls/wmvcore/wmvcore.spec b/dlls/wmvcore/wmvcore.spec new file mode 100644 index 00000000000..1c6cb1f33f4 --- /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 00000000000..096328b22d6 --- /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 + +#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; +}