[PATCH 4/7] sapi: Add a stub dll.

Huw Davies huw at codeweavers.com
Wed Sep 27 04:17:15 CDT 2017


Signed-off-by: Huw Davies <huw at codeweavers.com>
---
 dlls/sapi/Makefile.in |  5 +++++
 dlls/sapi/main.c      | 51 +++++++++++++++++++++++++++++++++++++++++++++++++++
 dlls/sapi/sapi.spec   |  4 ++++
 loader/wine.inf.in    |  2 ++
 4 files changed, 62 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/dlls/sapi/Makefile.in b/dlls/sapi/Makefile.in
new file mode 100644
index 0000000..c740699
--- /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 0000000..5b247a9
--- /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 <stdarg.h>
+
+#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 0000000..bf4587b
--- /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 d22137f..322d2cd 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
-- 
2.7.4




More information about the wine-patches mailing list