Zebediah Figura : dsquery: Add stub DLL.
Alexandre Julliard
julliard at winehq.org
Wed Aug 2 15:32:00 CDT 2017
Module: wine
Branch: master
Commit: f93e42e08868455d8867f7c5995959f7aae455d6
URL: http://source.winehq.org/git/wine.git/?a=commit;h=f93e42e08868455d8867f7c5995959f7aae455d6
Author: Zebediah Figura <zfigura at codeweavers.com>
Date: Mon Jul 31 14:00:01 2017 -0500
dsquery: Add stub DLL.
Signed-off-by: Zebediah Figura <zfigura at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
configure | 2 ++
configure.ac | 1 +
dlls/dsquery/Makefile.in | 4 +++
dlls/dsquery/dsquery.spec | 19 +++++++++++
dlls/dsquery/main.c | 85 +++++++++++++++++++++++++++++++++++++++++++++++
5 files changed, 111 insertions(+)
diff --git a/configure b/configure
index c79f5e6..b09f065 100755
--- a/configure
+++ b/configure
@@ -1182,6 +1182,7 @@ enable_dpvoice
enable_dpwsockx
enable_drmclien
enable_dsound
+enable_dsquery
enable_dssenh
enable_dswave
enable_dwmapi
@@ -18310,6 +18311,7 @@ wine_fn_config_dll dpwsockx enable_dpwsockx
wine_fn_config_dll drmclien enable_drmclien
wine_fn_config_dll dsound enable_dsound clean,implib
wine_fn_config_test dlls/dsound/tests dsound_test
+wine_fn_config_dll dsquery enable_dsquery
wine_fn_config_dll dssenh enable_dssenh
wine_fn_config_test dlls/dssenh/tests dssenh_test
wine_fn_config_dll dswave enable_dswave clean
diff --git a/configure.ac b/configure.ac
index ce25b9a..1fbb796 100644
--- a/configure.ac
+++ b/configure.ac
@@ -3094,6 +3094,7 @@ WINE_CONFIG_DLL(dpwsockx)
WINE_CONFIG_DLL(drmclien)
WINE_CONFIG_DLL(dsound,,[clean,implib])
WINE_CONFIG_TEST(dlls/dsound/tests)
+WINE_CONFIG_DLL(dsquery)
WINE_CONFIG_DLL(dssenh)
WINE_CONFIG_TEST(dlls/dssenh/tests)
WINE_CONFIG_DLL(dswave,,[clean])
diff --git a/dlls/dsquery/Makefile.in b/dlls/dsquery/Makefile.in
new file mode 100644
index 0000000..a3f3224
--- /dev/null
+++ b/dlls/dsquery/Makefile.in
@@ -0,0 +1,4 @@
+MODULE = dsquery.dll
+
+C_SRCS = \
+ main.c
diff --git a/dlls/dsquery/dsquery.spec b/dlls/dsquery/dsquery.spec
new file mode 100644
index 0000000..721435f
--- /dev/null
+++ b/dlls/dsquery/dsquery.spec
@@ -0,0 +1,19 @@
+256 stub OpenSavedDsQuery
+257 stub OpenSavedDsQueryW
+258 stub OpenQueryWindow
+512 stub @
+513 stub @
+514 stub @
+515 stub @
+516 stub @
+517 stub @
+518 stub @
+519 stub @
+520 stub @
+521 stub @
+
+@ stdcall -private DllCanUnloadNow()
+@ stdcall -private DllGetClassObject(ptr ptr ptr)
+@ stub DllInstall
+@ stdcall -private DllRegisterServer()
+@ stdcall -private DllUnregisterServer()
diff --git a/dlls/dsquery/main.c b/dlls/dsquery/main.c
new file mode 100644
index 0000000..ccf59f8
--- /dev/null
+++ b/dlls/dsquery/main.c
@@ -0,0 +1,85 @@
+/*
+ * Copyright 2017 Zebediah Figura 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 "config.h"
+
+#include <stdarg.h>
+
+#include "windef.h"
+#include "winbase.h"
+#include "objbase.h"
+#include "rpcproxy.h"
+#include "wine/debug.h"
+
+WINE_DEFAULT_DEBUG_CHANNEL(dsquery);
+
+static HINSTANCE instance;
+
+/***********************************************************************
+ * DllMain
+ */
+BOOL WINAPI DllMain(HINSTANCE inst, DWORD reason, void *reserved)
+{
+ TRACE("(%p, %u, %p)\n", inst, reason, reserved);
+
+ switch (reason)
+ {
+ case DLL_PROCESS_ATTACH:
+ instance = inst;
+ DisableThreadLibraryCalls(inst);
+ break;
+ }
+
+ return TRUE;
+}
+
+/***********************************************************************
+ * DllCanUnloadNow (DSQUERY.@)
+ */
+HRESULT WINAPI DllCanUnloadNow(void)
+{
+ return S_FALSE;
+}
+
+/***********************************************************************
+ * DllGetClassObject (DSQUERY.@)
+ */
+HRESULT WINAPI DllGetClassObject(REFCLSID rclsid, REFIID riid, void **out)
+{
+ TRACE("rclsid %s, riid %s, out %p\n", debugstr_guid(rclsid), debugstr_guid(riid), out);
+
+ FIXME("%s: no class found\n", debugstr_guid(rclsid));
+ *out = NULL;
+ return CLASS_E_CLASSNOTAVAILABLE;
+}
+
+/***********************************************************************
+ * DllRegisterServer (DSQUERY.@)
+ */
+HRESULT WINAPI DllRegisterServer(void)
+{
+ return __wine_register_resources( instance );
+}
+
+/***********************************************************************
+ * DllUnregisterServer (DSQUERY.@)
+ */
+HRESULT WINAPI DllUnregisterServer(void)
+{
+ return __wine_unregister_resources( instance );
+}
More information about the wine-cvs
mailing list