Module: wine Branch: master Commit: 616136799e6322c83d1549751782cfe8b1efab42 URL: http://source.winehq.org/git/wine.git/?a=commit;h=616136799e6322c83d15497517...
Author: Louis Lenders xerox_xerox2000@yahoo.co.uk Date: Mon Oct 26 12:49:41 2009 +0100
wuaueng: Add stubbed wuaueng.dll.
---
configure | 9 ++++++++ configure.ac | 1 + dlls/wuaueng/Makefile.in | 13 ++++++++++++ dlls/wuaueng/main.c | 48 +++++++++++++++++++++++++++++++++++++++++++++ dlls/wuaueng/wuaueng.spec | 16 +++++++++++++++ 5 files changed, 87 insertions(+), 0 deletions(-)
diff --git a/configure b/configure index 906bc67..937d1ae 100755 --- a/configure +++ b/configure @@ -17375,6 +17375,14 @@ dlls/wuapi/Makefile: dlls/wuapi/Makefile.in dlls/Makedll.rules" ac_config_files="$ac_config_files dlls/wuapi/Makefile"
ALL_MAKEFILES="$ALL_MAKEFILES \ + dlls/wuaueng/Makefile" +test "x$enable_wuaueng" != xno && ALL_DLL_DIRS="$ALL_DLL_DIRS \ + wuaueng" +ALL_MAKEFILE_DEPENDS="$ALL_MAKEFILE_DEPENDS +dlls/wuaueng/Makefile: dlls/wuaueng/Makefile.in dlls/Makedll.rules" +ac_config_files="$ac_config_files dlls/wuaueng/Makefile" + +ALL_MAKEFILES="$ALL_MAKEFILES \ dlls/xinput1_1/Makefile" test "x$enable_xinput1_1" != xno && ALL_DLL_DIRS="$ALL_DLL_DIRS \ xinput1_1" @@ -19198,6 +19206,7 @@ do "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/wuaueng/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wuaueng/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 68f0f27..a6daf78 100644 --- a/configure.ac +++ b/configure.ac @@ -2558,6 +2558,7 @@ WINE_CONFIG_MAKEFILE([dlls/ws2_32/tests/Makefile],[dlls/Maketest.rules],[dlls],[ 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/wuaueng/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/wuaueng/Makefile.in b/dlls/wuaueng/Makefile.in new file mode 100644 index 0000000..26be0bb --- /dev/null +++ b/dlls/wuaueng/Makefile.in @@ -0,0 +1,13 @@ +TOPSRCDIR = @top_srcdir@ +TOPOBJDIR = ../.. +SRCDIR = @srcdir@ +VPATH = @srcdir@ +MODULE = wuaueng.dll +IMPORTS = kernel32 + +C_SRCS = \ + main.c + +@MAKE_DLL_RULES@ + +@DEPENDENCIES@ # everything below this line is overwritten by make depend diff --git a/dlls/wuaueng/main.c b/dlls/wuaueng/main.c new file mode 100644 index 0000000..487c302 --- /dev/null +++ b/dlls/wuaueng/main.c @@ -0,0 +1,48 @@ +/* + * Copyright 2009 Louis Lenders + * + * 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 "wine/debug.h" + +WINE_DEFAULT_DEBUG_CHANNEL(wuaueng); + +/***************************************************** + * DllMain + */ +BOOL WINAPI DllMain( HINSTANCE hinst, DWORD reason, LPVOID reserved ) +{ + TRACE("(%p, %d, %p)\n", hinst, reason, reserved); + + 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/wuaueng/wuaueng.spec b/dlls/wuaueng/wuaueng.spec new file mode 100644 index 0000000..9046a42 --- /dev/null +++ b/dlls/wuaueng/wuaueng.spec @@ -0,0 +1,16 @@ +1 stub GetAUOptionsEx +2 stub DSRunStoreAsComServer +3 stub UHRunRemoteHandlerServer +4 stub WUCheckForUpdatesAtShutdown +5 stub WUAutoUpdateAtShutdown + +@ stub GeneralizeForImaging +@ stub GetEngineStatusInfo +@ stub RegisterServiceVersion +@ stub ServiceHandler +@ stub ServiceMain +@ stub WUServiceMain +@ stub DllInstall +@ stub DllMain +@ stub DllRegisterServer +@ stub DllUnregisterServer