Hans Leidekker : wuapi: New dll.

Alexandre Julliard julliard at winehq.org
Wed Dec 17 09:39:38 CST 2008


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

Author: Hans Leidekker <hans at codeweavers.com>
Date:   Tue Dec 16 16:41:43 2008 +0100

wuapi: New dll.

---

 configure              |    9 +++++++++
 configure.ac           |    1 +
 dlls/wuapi/Makefile.in |   14 ++++++++++++++
 dlls/wuapi/main.c      |   45 +++++++++++++++++++++++++++++++++++++++++++++
 dlls/wuapi/wuapi.spec  |    4 ++++
 5 files changed, 73 insertions(+), 0 deletions(-)

diff --git a/configure b/configure
index 475bc08..c7db22c 100755
--- a/configure
+++ b/configure
@@ -26660,6 +26660,14 @@ dlls/wtsapi32/Makefile: dlls/wtsapi32/Makefile.in dlls/Makedll.rules"
 ac_config_files="$ac_config_files dlls/wtsapi32/Makefile"
 
 ALL_MAKEFILES="$ALL_MAKEFILES \\
+	dlls/wuapi/Makefile"
+test "x$enable_wuapi" != xno && ALL_DLL_DIRS="$ALL_DLL_DIRS \\
+	wuapi"
+ALL_MAKEFILE_DEPENDS="$ALL_MAKEFILE_DEPENDS
+dlls/wuapi/Makefile: dlls/wuapi/Makefile.in dlls/Makedll.rules"
+ac_config_files="$ac_config_files dlls/wuapi/Makefile"
+
+ALL_MAKEFILES="$ALL_MAKEFILES \\
 	dlls/xinput1_1/Makefile"
 test "x$enable_xinput1_1" != xno && ALL_DLL_DIRS="$ALL_DLL_DIRS \\
 	xinput1_1"
@@ -28235,6 +28243,7 @@ do
     "dlls/ws2_32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ws2_32/tests/Makefile" ;;
     "dlls/wsock32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wsock32/Makefile" ;;
     "dlls/wtsapi32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wtsapi32/Makefile" ;;
+    "dlls/wuapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wuapi/Makefile" ;;
     "dlls/xinput1_1/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/xinput1_1/Makefile" ;;
     "dlls/xinput1_2/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/xinput1_2/Makefile" ;;
     "dlls/xinput1_3/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/xinput1_3/Makefile" ;;
diff --git a/configure.ac b/configure.ac
index 4a0048e..b554201 100644
--- a/configure.ac
+++ b/configure.ac
@@ -2089,6 +2089,7 @@ WINE_CONFIG_MAKEFILE([dlls/ws2_32/Makefile],[dlls/Makedll.rules],[dlls],[ALL_DLL
 WINE_CONFIG_MAKEFILE([dlls/ws2_32/tests/Makefile],[dlls/Maketest.rules],[dlls],[ALL_TEST_DIRS],[enable_tests])
 WINE_CONFIG_MAKEFILE([dlls/wsock32/Makefile],[dlls/Makedll.rules],[dlls],[ALL_DLL_DIRS])
 WINE_CONFIG_MAKEFILE([dlls/wtsapi32/Makefile],[dlls/Makedll.rules],[dlls],[ALL_DLL_DIRS])
+WINE_CONFIG_MAKEFILE([dlls/wuapi/Makefile],[dlls/Makedll.rules],[dlls],[ALL_DLL_DIRS])
 WINE_CONFIG_MAKEFILE([dlls/xinput1_1/Makefile],[dlls/Makedll.rules],[dlls],[ALL_DLL_DIRS])
 WINE_CONFIG_MAKEFILE([dlls/xinput1_2/Makefile],[dlls/Makedll.rules],[dlls],[ALL_DLL_DIRS])
 WINE_CONFIG_MAKEFILE([dlls/xinput1_3/Makefile],[dlls/Makedll.rules],[dlls],[ALL_DLL_DIRS])
diff --git a/dlls/wuapi/Makefile.in b/dlls/wuapi/Makefile.in
new file mode 100644
index 0000000..95592aa
--- /dev/null
+++ b/dlls/wuapi/Makefile.in
@@ -0,0 +1,14 @@
+EXTRADEFS = -DCOM_NO_WINDOWS_H
+TOPSRCDIR = @top_srcdir@
+TOPOBJDIR = ../..
+SRCDIR    = @srcdir@
+VPATH     = @srcdir@
+MODULE    = wuapi.dll
+IMPORTS   = kernel32
+
+C_SRCS = \
+	main.c
+
+ at MAKE_DLL_RULES@
+
+ at DEPENDENCIES@  # everything below this line is overwritten by make depend
diff --git a/dlls/wuapi/main.c b/dlls/wuapi/main.c
new file mode 100644
index 0000000..7076024
--- /dev/null
+++ b/dlls/wuapi/main.c
@@ -0,0 +1,45 @@
+/*
+ * WUAPI implementation
+ *
+ * Copyright 2008 Hans Leidekker
+ *
+ * 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 "winuser.h"
+
+#include "wine/debug.h"
+
+WINE_DEFAULT_DEBUG_CHANNEL(wuapi);
+
+BOOL WINAPI DllMain( HINSTANCE hinst, DWORD reason, LPVOID lpv )
+{
+    switch(reason)
+    {
+    case DLL_WINE_PREATTACH:
+        return FALSE;  /* prefer native version */
+    case DLL_PROCESS_ATTACH:
+        DisableThreadLibraryCalls( hinst );
+        break;
+    case DLL_PROCESS_DETACH:
+        break;
+    }
+    return TRUE;
+}
diff --git a/dlls/wuapi/wuapi.spec b/dlls/wuapi/wuapi.spec
new file mode 100644
index 0000000..c5fc87a
--- /dev/null
+++ b/dlls/wuapi/wuapi.spec
@@ -0,0 +1,4 @@
+@ stub DllCanUnloadNow
+@ stub DllGetClassObject
+@ stub DllRegisterServer
+@ stub DllUnregisterServer




More information about the wine-cvs mailing list