Module: wine Branch: master Commit: 618f9de37e349aa270588813f9b5cf1913fa8926 URL: http://source.winehq.org/git/wine.git/?a=commit;h=618f9de37e349aa270588813f9...
Author: Vincent Povirk vincent@codeweavers.com Date: Wed Aug 16 16:08:51 2017 -0500
wmphoto: Add stub dll.
Signed-off-by: Vincent Povirk vincent@codeweavers.com Signed-off-by: Alexandre Julliard julliard@winehq.org
---
configure | 2 ++ configure.ac | 1 + dlls/wmphoto/Makefile.in | 3 +++ dlls/wmphoto/main.c | 67 +++++++++++++++++++++++++++++++++++++++++++++++ dlls/wmphoto/wmphoto.spec | 4 +++ 5 files changed, 77 insertions(+)
diff --git a/configure b/configure index 2ccbb09..1444c48 100755 --- a/configure +++ b/configure @@ -1515,6 +1515,7 @@ enable_wmasf enable_wmi enable_wmiutils enable_wmp +enable_wmphoto enable_wmvcore enable_wnaspi32 enable_wpc @@ -18830,6 +18831,7 @@ wine_fn_config_dll wmiutils enable_wmiutils clean wine_fn_config_test dlls/wmiutils/tests wmiutils_test wine_fn_config_dll wmp enable_wmp clean wine_fn_config_test dlls/wmp/tests wmp_test +wine_fn_config_dll wmphoto enable_wmphoto wine_fn_config_dll wmvcore enable_wmvcore implib wine_fn_config_test dlls/wmvcore/tests wmvcore_test wine_fn_config_dll wnaspi32 enable_wnaspi32 implib diff --git a/configure.ac b/configure.ac index 4796492..0a8a89b 100644 --- a/configure.ac +++ b/configure.ac @@ -3612,6 +3612,7 @@ WINE_CONFIG_DLL(wmiutils,,[clean]) WINE_CONFIG_TEST(dlls/wmiutils/tests) WINE_CONFIG_DLL(wmp,,[clean]) WINE_CONFIG_TEST(dlls/wmp/tests) +WINE_CONFIG_DLL(wmphoto) WINE_CONFIG_DLL(wmvcore,,[implib]) WINE_CONFIG_TEST(dlls/wmvcore/tests) WINE_CONFIG_DLL(wnaspi32,,[implib]) diff --git a/dlls/wmphoto/Makefile.in b/dlls/wmphoto/Makefile.in new file mode 100644 index 0000000..115de54 --- /dev/null +++ b/dlls/wmphoto/Makefile.in @@ -0,0 +1,3 @@ +MODULE = wmphoto.dll + +C_SRCS = main.c diff --git a/dlls/wmphoto/main.c b/dlls/wmphoto/main.c new file mode 100644 index 0000000..48fd5dc --- /dev/null +++ b/dlls/wmphoto/main.c @@ -0,0 +1,67 @@ +/* + * Copyright 2017 Vincent Povirk for CodeWeavers + * + * 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 COBJMAcROS +#include "config.h" + +#include <stdarg.h> + +#include "windef.h" +#include "winbase.h" +#include "objbase.h" + +#include "wine/debug.h" + +WINE_DEFAULT_DEBUG_CHANNEL(wincodecs); + +BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved) +{ + switch (fdwReason) + { + case DLL_PROCESS_ATTACH: + DisableThreadLibraryCalls(hinstDLL); + break; + case DLL_WINE_PREATTACH: + return FALSE; /* prefer native version */ + } + + return TRUE; +} + +HRESULT WINAPI DllCanUnloadNow(void) +{ + return S_FALSE; +} + +HRESULT WINAPI DllGetClassObject(REFCLSID rclsid, REFIID riid, LPVOID * ppv) +{ + FIXME("wmphoto: stub\n"); + return E_NOTIMPL; +} + +HRESULT WINAPI DllRegisterServer(void) +{ + FIXME("wmphoto: stub\n"); + return E_NOTIMPL; +} + +HRESULT WINAPI DllUnregisterServer(void) +{ + FIXME("wmphoto: stub\n"); + return E_NOTIMPL; +} diff --git a/dlls/wmphoto/wmphoto.spec b/dlls/wmphoto/wmphoto.spec new file mode 100644 index 0000000..b16365d --- /dev/null +++ b/dlls/wmphoto/wmphoto.spec @@ -0,0 +1,4 @@ +@ stdcall -private DllCanUnloadNow() +@ stdcall -private DllGetClassObject(ptr ptr ptr) +@ stdcall -private DllRegisterServer() +@ stdcall -private DllUnregisterServer()