wpc: Added stub wpc dll.

Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Jacek Caban 2016-08-22 16:52:27 +02:00 committed by Alexandre Julliard
parent 4d816bdbcd
commit 668e69a767
5 changed files with 69 additions and 0 deletions

2
configure vendored
View File

@ -1404,6 +1404,7 @@ enable_wmiutils
enable_wmp enable_wmp
enable_wmvcore enable_wmvcore
enable_wnaspi32 enable_wnaspi32
enable_wpc
enable_wpcap enable_wpcap
enable_ws2_32 enable_ws2_32
enable_wshom_ocx 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 wmvcore enable_wmvcore
wine_fn_config_dll wnaspi32 enable_wnaspi32 implib wine_fn_config_dll wnaspi32 enable_wnaspi32 implib
wine_fn_config_dll wow32 enable_win16 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 wpcap enable_wpcap
wine_fn_config_dll ws2_32 enable_ws2_32 implib wine_fn_config_dll ws2_32 enable_ws2_32 implib
wine_fn_config_test dlls/ws2_32/tests ws2_32_test wine_fn_config_test dlls/ws2_32/tests ws2_32_test

View File

@ -3405,6 +3405,7 @@ WINE_CONFIG_TEST(dlls/wmp/tests)
WINE_CONFIG_DLL(wmvcore) WINE_CONFIG_DLL(wmvcore)
WINE_CONFIG_DLL(wnaspi32,,[implib]) WINE_CONFIG_DLL(wnaspi32,,[implib])
WINE_CONFIG_DLL(wow32,enable_win16,[implib]) WINE_CONFIG_DLL(wow32,enable_win16,[implib])
WINE_CONFIG_DLL(wpc)
WINE_CONFIG_DLL(wpcap) WINE_CONFIG_DLL(wpcap)
WINE_CONFIG_DLL(ws2_32,,[implib]) WINE_CONFIG_DLL(ws2_32,,[implib])
WINE_CONFIG_TEST(dlls/ws2_32/tests) WINE_CONFIG_TEST(dlls/ws2_32/tests)

4
dlls/wpc/Makefile.in Normal file
View File

@ -0,0 +1,4 @@
MODULE = wpc.dll
C_SRCS = \
wpc.c

59
dlls/wpc/wpc.c Normal file
View File

@ -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;
}

3
dlls/wpc/wpc.spec Normal file
View File

@ -0,0 +1,3 @@
@ stub ApplyParentalControlsW
@ stdcall -private DllCanUnloadNow()
@ stdcall -private DllGetClassObject(ptr ptr ptr)