Alistair Leslie-Hughes : mtxdm: Implement GetDispenserManager.

Alexandre Julliard julliard at winehq.org
Thu Apr 13 13:06:10 CDT 2017


Module: wine
Branch: master
Commit: 3abb995842b2ec3cc85ed9197a714e6f46559e84
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=3abb995842b2ec3cc85ed9197a714e6f46559e84

Author: Alistair Leslie-Hughes <leslie_alistair at hotmail.com>
Date:   Mon Apr 10 03:59:45 2017 +0000

mtxdm: Implement GetDispenserManager.

Signed-off-by: Alistair Leslie-Hughes <leslie_alistair at hotmail.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 configure               |  2 ++
 configure.ac            |  1 +
 dlls/mtxdm/Makefile.in  |  5 +++++
 dlls/mtxdm/mtxdm.spec   |  1 +
 dlls/mtxdm/mtxdm_main.c | 36 ++++++++++++++++++++++++++++++++++++
 include/Makefile.in     |  1 +
 include/mtxdm.h         | 34 ++++++++++++++++++++++++++++++++++
 7 files changed, 80 insertions(+)

diff --git a/configure b/configure
index e4b9dd2..b9be11d 100755
--- a/configure
+++ b/configure
@@ -1332,6 +1332,7 @@ enable_msxml2
 enable_msxml3
 enable_msxml4
 enable_msxml6
+enable_mtxdm
 enable_ncrypt
 enable_nddeapi
 enable_ndis_sys
@@ -18213,6 +18214,7 @@ wine_fn_config_dll msxml3 enable_msxml3 clean
 wine_fn_config_test dlls/msxml3/tests msxml3_test clean
 wine_fn_config_dll msxml4 enable_msxml4 clean
 wine_fn_config_dll msxml6 enable_msxml6 clean
+wine_fn_config_dll mtxdm enable_mtxdm
 wine_fn_config_dll ncrypt enable_ncrypt
 wine_fn_config_dll nddeapi enable_nddeapi implib
 wine_fn_config_dll ndis.sys enable_ndis_sys
diff --git a/configure.ac b/configure.ac
index a2fc66d..1a5b0de 100644
--- a/configure.ac
+++ b/configure.ac
@@ -3247,6 +3247,7 @@ WINE_CONFIG_DLL(msxml3,,[clean])
 WINE_CONFIG_TEST(dlls/msxml3/tests,[clean])
 WINE_CONFIG_DLL(msxml4,,[clean])
 WINE_CONFIG_DLL(msxml6,,[clean])
+WINE_CONFIG_DLL(mtxdm)
 WINE_CONFIG_DLL(ncrypt)
 WINE_CONFIG_DLL(nddeapi,,[implib])
 WINE_CONFIG_DLL(ndis.sys)
diff --git a/dlls/mtxdm/Makefile.in b/dlls/mtxdm/Makefile.in
new file mode 100644
index 0000000..63a99b6
--- /dev/null
+++ b/dlls/mtxdm/Makefile.in
@@ -0,0 +1,5 @@
+MODULE    = mtxdm.dll
+IMPORTS   = uuid ole32
+
+C_SRCS = \
+	mtxdm_main.c
diff --git a/dlls/mtxdm/mtxdm.spec b/dlls/mtxdm/mtxdm.spec
new file mode 100644
index 0000000..4aad62f
--- /dev/null
+++ b/dlls/mtxdm/mtxdm.spec
@@ -0,0 +1 @@
+@ cdecl GetDispenserManager(ptr)
diff --git a/dlls/mtxdm/mtxdm_main.c b/dlls/mtxdm/mtxdm_main.c
new file mode 100644
index 0000000..9b7e1df
--- /dev/null
+++ b/dlls/mtxdm/mtxdm_main.c
@@ -0,0 +1,36 @@
+/*
+ * Copyright (C) 2017 Alistair Leslie-Hughes
+ *
+ * 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 "comsvcs.h"
+#include "wine/debug.h"
+
+WINE_DEFAULT_DEBUG_CHANNEL(comsvcs);
+
+
+HRESULT CDECL GetDispenserManager(IDispenserManager **dispenser)
+{
+    TRACE("%p\n", dispenser);
+
+    return CoCreateInstance( &CLSID_DispenserManager, NULL, CLSCTX_ALL, &IID_IDispenserManager, (void**)dispenser);
+}
diff --git a/include/Makefile.in b/include/Makefile.in
index 2384c93..f9cb7b4 100644
--- a/include/Makefile.in
+++ b/include/Makefile.in
@@ -513,6 +513,7 @@ HEADER_SRCS = \
 	msxml2did.h \
 	msxml6did.h \
 	msxmldid.h \
+	mtxdm.h \
 	nb30.h \
 	ncrypt.h \
 	ndrtypes.h \
diff --git a/include/mtxdm.h b/include/mtxdm.h
new file mode 100644
index 0000000..94098ea
--- /dev/null
+++ b/include/mtxdm.h
@@ -0,0 +1,34 @@
+/*
+ * Copyright (C) 2017 Alistair Leslie-Hughes
+ *
+ * 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
+ */
+#ifndef __MTXDM_H__
+#define __MTXDM_H__
+
+#include "comsvcs.h"
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+HRESULT CDECL GetDispenserManager(IDispenserManager**);
+
+#ifdef __cplusplus
+}
+#endif
+
+
+#endif




More information about the wine-cvs mailing list