From: Austin English Subject: wmvcore: add a stub dll Message-Id: Date: Thu, 3 May 2012 12:44:20 -0500 http://bugs.winehq.org/show_bug.cgi?id=21939 -- -Austin From 9c3ef2ceb578843141409d857223ad3bcc712ff9 Mon Sep 17 00:00:00 2001 From: Austin English Date: Thu, 3 May 2012 12:41:30 -0500 Subject: [PATCH 1/1] wmvcore: add stub dll --- configure.ac | 1 + dlls/wmvcore/Makefile.in | 8 +++++++ dlls/wmvcore/wmvcore.spec | 20 +++++++++++++++++++ dlls/wmvcore/wmvcore_main.c | 45 +++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 74 insertions(+), 0 deletions(-) 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.ac b/configure.ac index 849508c..1d2d880 100644 --- a/configure.ac +++ b/configure.ac @@ -2944,6 +2944,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..0142da4 --- /dev/null +++ b/dlls/wmvcore/Makefile.in @@ -0,0 +1,8 @@ +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 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 + +#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; +} -- 1.7.3.4