From 668e69a7678f5d148ef4e42d27f7e9b0cfd84b77 Mon Sep 17 00:00:00 2001 From: Jacek Caban Date: Mon, 22 Aug 2016 16:52:27 +0200 Subject: [PATCH] wpc: Added stub wpc dll. Signed-off-by: Jacek Caban Signed-off-by: Alexandre Julliard --- configure | 2 ++ configure.ac | 1 + dlls/wpc/Makefile.in | 4 +++ dlls/wpc/wpc.c | 59 ++++++++++++++++++++++++++++++++++++++++++++ dlls/wpc/wpc.spec | 3 +++ 5 files changed, 69 insertions(+) create mode 100644 dlls/wpc/Makefile.in create mode 100644 dlls/wpc/wpc.c create mode 100644 dlls/wpc/wpc.spec diff --git a/configure b/configure index 3eba2d20a87..f4c9f19d05f 100755 --- a/configure +++ b/configure @@ -1404,6 +1404,7 @@ enable_wmiutils enable_wmp enable_wmvcore enable_wnaspi32 +enable_wpc enable_wpcap enable_ws2_32 enable_wshom_ocx @@ -18175,6 +18176,7 @@ wine_fn_config_test dlls/wmp/tests wmp_test 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 wpc enable_wpc wine_fn_config_dll wpcap enable_wpcap wine_fn_config_dll ws2_32 enable_ws2_32 implib wine_fn_config_test dlls/ws2_32/tests ws2_32_test diff --git a/configure.ac b/configure.ac index 24e519010fd..2fcdcb1b0c9 100644 --- a/configure.ac +++ b/configure.ac @@ -3405,6 +3405,7 @@ WINE_CONFIG_TEST(dlls/wmp/tests) WINE_CONFIG_DLL(wmvcore) WINE_CONFIG_DLL(wnaspi32,,[implib]) WINE_CONFIG_DLL(wow32,enable_win16,[implib]) +WINE_CONFIG_DLL(wpc) WINE_CONFIG_DLL(wpcap) WINE_CONFIG_DLL(ws2_32,,[implib]) WINE_CONFIG_TEST(dlls/ws2_32/tests) diff --git a/dlls/wpc/Makefile.in b/dlls/wpc/Makefile.in new file mode 100644 index 00000000000..edd729fc574 --- /dev/null +++ b/dlls/wpc/Makefile.in @@ -0,0 +1,4 @@ +MODULE = wpc.dll + +C_SRCS = \ + wpc.c diff --git a/dlls/wpc/wpc.c b/dlls/wpc/wpc.c new file mode 100644 index 00000000000..a3e7c0380f8 --- /dev/null +++ b/dlls/wpc/wpc.c @@ -0,0 +1,59 @@ +/* + * Copyright 2016 Jacek Caban 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 + */ + +#include "wpcapi.h" + +#include "wine/debug.h" + +WINE_DEFAULT_DEBUG_CHANNEL(wpc); + +/****************************************************************** + * DllMain + */ +BOOL WINAPI DllMain(HINSTANCE hInstDLL, DWORD fdwReason, LPVOID lpv) +{ + TRACE("(%p %d %p)\n", hInstDLL, fdwReason, lpv); + + switch(fdwReason) { + case DLL_WINE_PREATTACH: + return FALSE; /* prefer native version */ + case DLL_PROCESS_ATTACH: + DisableThreadLibraryCalls(hInstDLL); + break; + } + + return TRUE; +} + +/*********************************************************************** + * DllGetClassObject (wpc.@) + */ +HRESULT WINAPI DllGetClassObject(REFCLSID rclsid, REFIID riid, void **ppv) +{ + FIXME("Unknown object %s (iface %s)\n", debugstr_guid(rclsid), debugstr_guid(riid)); + return CLASS_E_CLASSNOTAVAILABLE; +} + +/*********************************************************************** + * DllCanUnloadNow (wpc.@) + */ +HRESULT WINAPI DllCanUnloadNow(void) +{ + TRACE("\n"); + return S_FALSE; +} diff --git a/dlls/wpc/wpc.spec b/dlls/wpc/wpc.spec new file mode 100644 index 00000000000..195cf86c195 --- /dev/null +++ b/dlls/wpc/wpc.spec @@ -0,0 +1,3 @@ +@ stub ApplyParentalControlsW +@ stdcall -private DllCanUnloadNow() +@ stdcall -private DllGetClassObject(ptr ptr ptr)