Module: wine Branch: master Commit: 74e37bc301f23d01c0240e25a054d948bdcd8462 URL: http://source.winehq.org/git/wine.git/?a=commit;h=74e37bc301f23d01c0240e25a0...
Author: Jacek Caban jacek@codeweavers.com Date: Tue Jun 23 13:09:32 2015 +0200
msscript.ocx: Added stub DLL.
---
configure | 2 + configure.ac | 1 + dlls/msscript.ocx/Makefile.in | 4 ++ dlls/msscript.ocx/msscript.c | 77 +++++++++++++++++++++++++++++++++++++ dlls/msscript.ocx/msscript.ocx.spec | 5 +++ 5 files changed, 89 insertions(+)
diff --git a/configure b/configure index 33dd534..e9f08ba 100755 --- a/configure +++ b/configure @@ -1152,6 +1152,7 @@ enable_msls31 enable_msnet32 enable_mspatcha enable_msrle32 +enable_msscript_ocx enable_mssign32 enable_mssip32 enable_mstask @@ -17426,6 +17427,7 @@ wine_fn_config_dll msnet32 enable_msnet32 wine_fn_config_dll mspatcha enable_mspatcha implib wine_fn_config_dll msrle32 enable_msrle32 po wine_fn_config_test dlls/msrle32/tests msrle32_test +wine_fn_config_dll msscript.ocx enable_msscript_ocx wine_fn_config_dll mssign32 enable_mssign32 wine_fn_config_dll mssip32 enable_mssip32 wine_fn_config_dll mstask enable_mstask clean diff --git a/configure.ac b/configure.ac index f56b6f6..bfc4f3f 100644 --- a/configure.ac +++ b/configure.ac @@ -3101,6 +3101,7 @@ WINE_CONFIG_DLL(msnet32) WINE_CONFIG_DLL(mspatcha,,[implib]) WINE_CONFIG_DLL(msrle32,,[po]) WINE_CONFIG_TEST(dlls/msrle32/tests) +WINE_CONFIG_DLL(msscript.ocx) WINE_CONFIG_DLL(mssign32) WINE_CONFIG_DLL(mssip32) WINE_CONFIG_DLL(mstask,,[clean]) diff --git a/dlls/msscript.ocx/Makefile.in b/dlls/msscript.ocx/Makefile.in new file mode 100644 index 0000000..13cd926 --- /dev/null +++ b/dlls/msscript.ocx/Makefile.in @@ -0,0 +1,4 @@ +MODULE = msscript.ocx + +C_SRCS = \ + msscript.c diff --git a/dlls/msscript.ocx/msscript.c b/dlls/msscript.ocx/msscript.c new file mode 100644 index 0000000..330ad76 --- /dev/null +++ b/dlls/msscript.ocx/msscript.c @@ -0,0 +1,77 @@ +/* + * Copyright 2015 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 "wine/debug.h" + +WINE_DEFAULT_DEBUG_CHANNEL(msscript); + +/****************************************************************** + * DllMain (msscript.ocx.@) + */ +BOOL WINAPI DllMain(HINSTANCE instance, DWORD reason, LPVOID lpv) +{ + TRACE("(%p %d %p)\n", instance, reason, lpv); + + switch(reason) { + case DLL_WINE_PREATTACH: + return FALSE; /* prefer native version */ + case DLL_PROCESS_ATTACH: + DisableThreadLibraryCalls(instance); + break; + } + + return TRUE; +} + +/*********************************************************************** + * DllGetClassObject (msscript.ocx.@) + */ +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 (msscript.ocx.@) + */ +HRESULT WINAPI DllCanUnloadNow(void) +{ + TRACE("\n"); + return S_FALSE; +} + +/*********************************************************************** + * DllRegisterServer (msscript.ocx.@) + */ +HRESULT WINAPI DllRegisterServer(void) +{ + FIXME("()\n"); + return E_NOTIMPL; +} + +/*********************************************************************** + * DllUnregisterServer (msscript.ocx.@) + */ +HRESULT WINAPI DllUnregisterServer(void) +{ + TRACE("()\n"); + return E_NOTIMPL; +} diff --git a/dlls/msscript.ocx/msscript.ocx.spec b/dlls/msscript.ocx/msscript.ocx.spec new file mode 100644 index 0000000..861d893 --- /dev/null +++ b/dlls/msscript.ocx/msscript.ocx.spec @@ -0,0 +1,5 @@ +@ stub DLLGetDocumentation +@ stdcall -private DllCanUnloadNow() +@ stdcall -private DllGetClassObject(ptr ptr ptr) +@ stdcall -private DllRegisterServer() +@ stdcall -private DllUnregisterServer()