From 662de2bca6d95b19eac54dbb9f859069cc1eab52 Mon Sep 17 00:00:00 2001 From: Louis Lenders Date: Mon, 26 Oct 2009 12:49:41 +0100 Subject: wuaueng: add new stubbed dll wuaueng --- dlls/wuaueng/Makefile.in | 13 ++++++++++++ dlls/wuaueng/main.c | 48 +++++++++++++++++++++++++++++++++++++++++++++ dlls/wuaueng/wuaueng.spec | 15 ++++++++++++++ 3 files changed, 76 insertions(+), 0 deletions(-) create mode 100644 dlls/wuaueng/Makefile.in create mode 100644 dlls/wuaueng/main.c create mode 100644 dlls/wuaueng/wuaueng.spec 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 + +#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..48bcd87 --- /dev/null +++ b/dlls/wuaueng/wuaueng.spec @@ -0,0 +1,15 @@ +@ stub GetAUOptionsEx +@ stub WUAUENG_2 +@ stub WUAUENG_3 +@ stub WUCheckForUpdatesAtShutdown +@ stub WUAutoUpdateAtShutdown +@ stub GeneralizeForImaging +@ stub GetEngineStatusInfo +@ stub RegisterServiceVersion +@ stub ServiceHandler +@ stub ServiceMain +@ stub WUServiceMain +@ stub DllInstall +@ stub DllMain +@ stub DllRegisterServer +@ stub DllUnregisterServer -- 1.6.0.4