From 2a332f4e5ac01f47dedb1dd8ab487dc7c5270db0 Mon Sep 17 00:00:00 2001 From: Huw Davies Date: Wed, 27 Sep 2017 10:17:15 +0100 Subject: [PATCH] sapi: Add a stub dll. Signed-off-by: Huw Davies Signed-off-by: Alexandre Julliard --- configure | 2 ++ configure.ac | 1 + dlls/sapi/Makefile.in | 5 +++++ dlls/sapi/main.c | 51 +++++++++++++++++++++++++++++++++++++++++++ dlls/sapi/sapi.spec | 4 ++++ loader/wine.inf.in | 2 ++ 6 files changed, 65 insertions(+) create mode 100644 dlls/sapi/Makefile.in create mode 100644 dlls/sapi/main.c create mode 100644 dlls/sapi/sapi.spec diff --git a/configure b/configure index 425f15ddeb..18d999942d 100755 --- a/configure +++ b/configure @@ -1425,6 +1425,7 @@ enable_rstrtmgr enable_rtutils enable_samlib enable_sane_ds +enable_sapi enable_scarddlg enable_sccbase enable_schannel @@ -18665,6 +18666,7 @@ wine_fn_config_dll rstrtmgr enable_rstrtmgr wine_fn_config_dll rtutils enable_rtutils implib wine_fn_config_dll samlib enable_samlib wine_fn_config_dll sane.ds enable_sane_ds clean +wine_fn_config_dll sapi enable_sapi wine_fn_config_dll scarddlg enable_scarddlg wine_fn_config_dll sccbase enable_sccbase wine_fn_config_dll schannel enable_schannel diff --git a/configure.ac b/configure.ac index 518e9d3ed8..9b6b066027 100644 --- a/configure.ac +++ b/configure.ac @@ -3447,6 +3447,7 @@ WINE_CONFIG_DLL(rstrtmgr) WINE_CONFIG_DLL(rtutils,,[implib]) WINE_CONFIG_DLL(samlib) WINE_CONFIG_DLL(sane.ds,,[clean]) +WINE_CONFIG_DLL(sapi) WINE_CONFIG_DLL(scarddlg) WINE_CONFIG_DLL(sccbase) WINE_CONFIG_DLL(schannel) diff --git a/dlls/sapi/Makefile.in b/dlls/sapi/Makefile.in new file mode 100644 index 0000000000..c7406999a9 --- /dev/null +++ b/dlls/sapi/Makefile.in @@ -0,0 +1,5 @@ +MODULE = sapi.dll +IMPORTS = uuid ole32 user32 advapi32 + +C_SRCS = \ + main.c diff --git a/dlls/sapi/main.c b/dlls/sapi/main.c new file mode 100644 index 0000000000..5b247a9a3f --- /dev/null +++ b/dlls/sapi/main.c @@ -0,0 +1,51 @@ +/* + * Speech API (SAPI) main file. + * + * Copyright (C) 2017 Huw Davies + * + * 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 "config.h" +#include + +#define COBJMACROS + +#include "windef.h" +#include "winbase.h" + +#include "wine/debug.h" + +WINE_DEFAULT_DEBUG_CHANNEL(sapi); + +BOOL WINAPI DllMain( HINSTANCE dll, DWORD reason, LPVOID reserved ) +{ + switch (reason) + { + case DLL_PROCESS_ATTACH: + DisableThreadLibraryCalls( dll ); + break; + } + return TRUE; +} + +/****************************************************************** + * DllCanUnloadNow + */ +HRESULT WINAPI DllCanUnloadNow( void ) +{ + TRACE( "()\n" ); + return S_FALSE; +} diff --git a/dlls/sapi/sapi.spec b/dlls/sapi/sapi.spec new file mode 100644 index 0000000000..bf4587bb03 --- /dev/null +++ b/dlls/sapi/sapi.spec @@ -0,0 +1,4 @@ +@ stdcall -private DllCanUnloadNow() +#@ stdcall -private DllGetClassObject(ptr ptr ptr) +#@ stdcall -private DllRegisterServer() +#@ stdcall -private DllUnregisterServer() diff --git a/loader/wine.inf.in b/loader/wine.inf.in index d22137fc7b..322d2cd3a3 100644 --- a/loader/wine.inf.in +++ b/loader/wine.inf.in @@ -2534,6 +2534,7 @@ HKLM,%CurrentVersion%\Telephony\Country List\998,"SameAreaRule",,"G" ; create some directories first 11,mui, 11,gecko\plugin,npmshtml.dll +11,Speech\Common,sapi.dll 11,wbem,mofcomp.exe 10,syswow64,stdole2.tlb 11,,iexplore.exe @@ -2604,6 +2605,7 @@ HKLM,%CurrentVersion%\Telephony\Country List\998,"SameAreaRule",,"G" 11,,msxml6.dll 11,,shdocvw.dll 11,gecko\plugin,npmshtml.dll +11,Speech\Common,sapi.dll 11,wbem,mofcomp.exe 11,wbem,wbemdisp.dll 11,wbem,wbemprox.dll