wmp: Added new DLL.

This commit is contained in:
Jacek Caban 2014-01-25 18:42:34 +01:00 committed by Alexandre Julliard
parent d57ccd77ec
commit e7053c1100
5 changed files with 93 additions and 0 deletions

2
configure vendored
View File

@ -1239,6 +1239,7 @@ enable_wlanapi
enable_wldap32 enable_wldap32
enable_wmi enable_wmi
enable_wmiutils enable_wmiutils
enable_wmp
enable_wmvcore enable_wmvcore
enable_wnaspi32 enable_wnaspi32
enable_ws2_32 enable_ws2_32
@ -17102,6 +17103,7 @@ wine_fn_config_test dlls/wldap32/tests wldap32_test
wine_fn_config_dll wmi enable_wmi wine_fn_config_dll wmi enable_wmi
wine_fn_config_dll wmiutils enable_wmiutils clean wine_fn_config_dll wmiutils enable_wmiutils clean
wine_fn_config_test dlls/wmiutils/tests wmiutils_test wine_fn_config_test dlls/wmiutils/tests wmiutils_test
wine_fn_config_dll wmp enable_wmp
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

View File

@ -3226,6 +3226,7 @@ WINE_CONFIG_TEST(dlls/wldap32/tests)
WINE_CONFIG_DLL(wmi) WINE_CONFIG_DLL(wmi)
WINE_CONFIG_DLL(wmiutils,,[clean]) WINE_CONFIG_DLL(wmiutils,,[clean])
WINE_CONFIG_TEST(dlls/wmiutils/tests) WINE_CONFIG_TEST(dlls/wmiutils/tests)
WINE_CONFIG_DLL(wmp)
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])

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

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

4
dlls/wmp/wmp.spec Normal file
View File

@ -0,0 +1,4 @@
@ stdcall -private DllCanUnloadNow()
@ stdcall -private DllGetClassObject(ptr ptr ptr)
@ stdcall -private DllRegisterServer()
@ stdcall -private DllUnregisterServer()

82
dlls/wmp/wmp_main.c Normal file
View File

@ -0,0 +1,82 @@
/*
* Copyright 2014 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 "windows.h"
#include "ole2.h"
#include "rpcproxy.h"
#include "wine/debug.h"
WINE_DEFAULT_DEBUG_CHANNEL(wmp);
static HINSTANCE wmp_instance;
/******************************************************************
* DllMain (wmp.@)
*/
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);
wmp_instance = hInstDLL;
break;
}
return TRUE;
}
/***********************************************************************
* DllGetClassObject (wmp.@)
*/
HRESULT WINAPI DllGetClassObject(REFCLSID rclsid, REFIID riid, LPVOID *ppv)
{
FIXME("%s %s %p\n", debugstr_guid(rclsid), debugstr_guid(riid), ppv);
return CLASS_E_CLASSNOTAVAILABLE;
}
/***********************************************************************
* DllCanUnloadNow (wmp.@)
*/
HRESULT WINAPI DllCanUnloadNow(void)
{
TRACE("\n");
return S_FALSE;
}
/***********************************************************************
* DllRegisterServer (wmp.@)
*/
HRESULT WINAPI DllRegisterServer(void)
{
TRACE("()\n");
return __wine_register_resources(wmp_instance);
}
/***********************************************************************
* DllUnregisterServer (wmp.@)
*/
HRESULT WINAPI DllUnregisterServer(void)
{
TRACE("()\n");
return __wine_unregister_resources(wmp_instance);
}