Hans Leidekker : wmiutils: New dll.
Alexandre Julliard
julliard at winehq.org
Tue Jul 14 10:37:47 CDT 2009
Module: wine
Branch: master
Commit: dd1d8cab3aa52da66de61c6f71f480bd75578021
URL: http://source.winehq.org/git/wine.git/?a=commit;h=dd1d8cab3aa52da66de61c6f71f480bd75578021
Author: Hans Leidekker <hans at codeweavers.com>
Date: Tue Jul 14 12:27:46 2009 +0200
wmiutils: New dll.
---
configure | 9 +++++++++
configure.ac | 1 +
dlls/wmiutils/Makefile.in | 13 +++++++++++++
dlls/wmiutils/main.c | 43 +++++++++++++++++++++++++++++++++++++++++++
dlls/wmiutils/wmiutils.spec | 4 ++++
5 files changed, 70 insertions(+), 0 deletions(-)
diff --git a/configure b/configure
index f082f38..029742a 100755
--- a/configure
+++ b/configure
@@ -28041,6 +28041,14 @@ dlls/wmi/Makefile: dlls/wmi/Makefile.in dlls/Makedll.rules"
ac_config_files="$ac_config_files dlls/wmi/Makefile"
ALL_MAKEFILES="$ALL_MAKEFILES \\
+ dlls/wmiutils/Makefile"
+test "x$enable_wmiutils" != xno && ALL_DLL_DIRS="$ALL_DLL_DIRS \\
+ wmiutils"
+ALL_MAKEFILE_DEPENDS="$ALL_MAKEFILE_DEPENDS
+dlls/wmiutils/Makefile: dlls/wmiutils/Makefile.in dlls/Makedll.rules"
+ac_config_files="$ac_config_files dlls/wmiutils/Makefile"
+
+ALL_MAKEFILES="$ALL_MAKEFILES \\
dlls/wnaspi32/Makefile"
test "x$enable_wnaspi32" != xno && ALL_DLL_DIRS="$ALL_DLL_DIRS \\
wnaspi32"
@@ -29791,6 +29799,7 @@ do
"dlls/wldap32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wldap32/Makefile" ;;
"dlls/wldap32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wldap32/tests/Makefile" ;;
"dlls/wmi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wmi/Makefile" ;;
+ "dlls/wmiutils/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wmiutils/Makefile" ;;
"dlls/wnaspi32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wnaspi32/Makefile" ;;
"dlls/wow32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wow32/Makefile" ;;
"dlls/ws2_32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ws2_32/Makefile" ;;
diff --git a/configure.ac b/configure.ac
index b271773..3b805fe 100644
--- a/configure.ac
+++ b/configure.ac
@@ -2436,6 +2436,7 @@ WINE_CONFIG_MAKEFILE([dlls/wintrust/tests/Makefile],[dlls/Maketest.rules],[dlls]
WINE_CONFIG_MAKEFILE([dlls/wldap32/Makefile],[dlls/Makedll.rules],[dlls],[ALL_DLL_DIRS])
WINE_CONFIG_MAKEFILE([dlls/wldap32/tests/Makefile],[dlls/Maketest.rules],[dlls],[ALL_TEST_DIRS],[enable_tests])
WINE_CONFIG_MAKEFILE([dlls/wmi/Makefile],[dlls/Makedll.rules],[dlls],[ALL_DLL_DIRS])
+WINE_CONFIG_MAKEFILE([dlls/wmiutils/Makefile],[dlls/Makedll.rules],[dlls],[ALL_DLL_DIRS])
WINE_CONFIG_MAKEFILE([dlls/wnaspi32/Makefile],[dlls/Makedll.rules],[dlls],[ALL_DLL_DIRS])
WINE_CONFIG_MAKEFILE([dlls/wow32/Makefile],[dlls/Makedll.rules],[dlls],[ALL_DLL_DIRS])
WINE_CONFIG_MAKEFILE([dlls/ws2_32/Makefile],[dlls/Makedll.rules],[dlls],[ALL_DLL_DIRS])
diff --git a/dlls/wmiutils/Makefile.in b/dlls/wmiutils/Makefile.in
new file mode 100644
index 0000000..09d1cb4
--- /dev/null
+++ b/dlls/wmiutils/Makefile.in
@@ -0,0 +1,13 @@
+TOPSRCDIR = @top_srcdir@
+TOPOBJDIR = ../..
+SRCDIR = @srcdir@
+VPATH = @srcdir@
+MODULE = wmiutils.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/wmiutils/main.c b/dlls/wmiutils/main.c
new file mode 100644
index 0000000..8e8b005
--- /dev/null
+++ b/dlls/wmiutils/main.c
@@ -0,0 +1,43 @@
+/*
+ * Copyright 2009 Hans Leidekker 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 "winuser.h"
+
+#include "wine/debug.h"
+
+WINE_DEFAULT_DEBUG_CHANNEL(wmiutils);
+
+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/wmiutils/wmiutils.spec b/dlls/wmiutils/wmiutils.spec
new file mode 100644
index 0000000..c5fc87a
--- /dev/null
+++ b/dlls/wmiutils/wmiutils.spec
@@ -0,0 +1,4 @@
+@ stub DllCanUnloadNow
+@ stub DllGetClassObject
+@ stub DllRegisterServer
+@ stub DllUnregisterServer
More information about the wine-cvs
mailing list