From 1723157954057a471cb817177f30ff76da4e3034 Mon Sep 17 00:00:00 2001 From: Juan Lang Date: Tue, 20 May 2008 20:47:42 -0700 Subject: [PATCH] inetmib1: Add stub dll. --- Makefile.in | 2 ++ configure | 3 +++ configure.ac | 1 + dlls/Makefile.in | 1 + dlls/inetmib1/Makefile.in | 13 ++++++++++ dlls/inetmib1/inetmib1.spec | 4 ++++ dlls/inetmib1/main.c | 47 +++++++++++++++++++++++++++++++++++++ 7 files changed, 71 insertions(+) create mode 100644 dlls/inetmib1/Makefile.in create mode 100644 dlls/inetmib1/inetmib1.spec create mode 100644 dlls/inetmib1/main.c diff --git a/Makefile.in b/Makefile.in index de131bda0a5..7d253fb63be 100644 --- a/Makefile.in +++ b/Makefile.in @@ -291,6 +291,7 @@ ALL_MAKEFILES = \ dlls/imm32/tests/Makefile \ dlls/inetcomm/Makefile \ dlls/inetcomm/tests/Makefile \ + dlls/inetmib1/Makefile \ dlls/infosoft/Makefile \ dlls/infosoft/tests/Makefile \ dlls/initpki/Makefile \ @@ -717,6 +718,7 @@ dlls/imm32/Makefile: dlls/imm32/Makefile.in dlls/Makedll.rules dlls/imm32/tests/Makefile: dlls/imm32/tests/Makefile.in dlls/Maketest.rules dlls/inetcomm/Makefile: dlls/inetcomm/Makefile.in dlls/Makedll.rules dlls/inetcomm/tests/Makefile: dlls/inetcomm/tests/Makefile.in dlls/Maketest.rules +dlls/inetmib1/Makefile: dlls/inetmib1/Makefile.in dlls/Makedll.rules dlls/infosoft/Makefile: dlls/infosoft/Makefile.in dlls/Makedll.rules dlls/infosoft/tests/Makefile: dlls/infosoft/tests/Makefile.in dlls/Maketest.rules dlls/initpki/Makefile: dlls/initpki/Makefile.in dlls/Makedll.rules diff --git a/configure b/configure index 7e12e7bf9ad..4b5989cb150 100755 --- a/configure +++ b/configure @@ -21780,6 +21780,8 @@ ac_config_files="$ac_config_files dlls/inetcomm/Makefile" ac_config_files="$ac_config_files dlls/inetcomm/tests/Makefile" +ac_config_files="$ac_config_files dlls/inetmib1/Makefile" + ac_config_files="$ac_config_files dlls/infosoft/Makefile" ac_config_files="$ac_config_files dlls/infosoft/tests/Makefile" @@ -23043,6 +23045,7 @@ do "dlls/imm32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/imm32/tests/Makefile" ;; "dlls/inetcomm/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/inetcomm/Makefile" ;; "dlls/inetcomm/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/inetcomm/tests/Makefile" ;; + "dlls/inetmib1/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/inetmib1/Makefile" ;; "dlls/infosoft/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/infosoft/Makefile" ;; "dlls/infosoft/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/infosoft/tests/Makefile" ;; "dlls/initpki/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/initpki/Makefile" ;; diff --git a/configure.ac b/configure.ac index 8bbb9d55ebe..4810dc33e40 100644 --- a/configure.ac +++ b/configure.ac @@ -1803,6 +1803,7 @@ AC_CONFIG_FILES([dlls/imm32/Makefile]) AC_CONFIG_FILES([dlls/imm32/tests/Makefile]) AC_CONFIG_FILES([dlls/inetcomm/Makefile]) AC_CONFIG_FILES([dlls/inetcomm/tests/Makefile]) +AC_CONFIG_FILES([dlls/inetmib1/Makefile]) AC_CONFIG_FILES([dlls/infosoft/Makefile]) AC_CONFIG_FILES([dlls/infosoft/tests/Makefile]) AC_CONFIG_FILES([dlls/initpki/Makefile]) diff --git a/dlls/Makefile.in b/dlls/Makefile.in index 155db3bf342..4cb06a8c36f 100644 --- a/dlls/Makefile.in +++ b/dlls/Makefile.in @@ -113,6 +113,7 @@ BASEDIRS = \ imagehlp \ imm32 \ inetcomm \ + inetmib1 \ infosoft \ initpki \ inkobj \ diff --git a/dlls/inetmib1/Makefile.in b/dlls/inetmib1/Makefile.in new file mode 100644 index 00000000000..d971e52b904 --- /dev/null +++ b/dlls/inetmib1/Makefile.in @@ -0,0 +1,13 @@ +TOPSRCDIR = @top_srcdir@ +TOPOBJDIR = ../.. +SRCDIR = @srcdir@ +VPATH = @srcdir@ +MODULE = inetmib1.dll +IMPORTS = kernel32 + +C_SRCS = \ + main.c + +@MAKE_DLL_RULES@ + +@DEPENDENCIES@ # everything below this line is overwritten by make depend diff --git a/dlls/inetmib1/inetmib1.spec b/dlls/inetmib1/inetmib1.spec new file mode 100644 index 00000000000..7aecc256c34 --- /dev/null +++ b/dlls/inetmib1/inetmib1.spec @@ -0,0 +1,4 @@ +@ stub SnmpExtensionInit +@ stub SnmpExtensionInitEx +@ stub SnmpExtensionQuery +@ stub SnmpExtensionTrap diff --git a/dlls/inetmib1/main.c b/dlls/inetmib1/main.c new file mode 100644 index 00000000000..0da258de8f3 --- /dev/null +++ b/dlls/inetmib1/main.c @@ -0,0 +1,47 @@ +/* + * Copyright 2008 Juan Lang + * + * 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(inetmib1); + +BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved) +{ + TRACE("(0x%p, %d, %p)\n", hinstDLL, fdwReason, lpvReserved); + + switch (fdwReason) + { + case DLL_WINE_PREATTACH: + return FALSE; /* prefer native version */ + case DLL_PROCESS_ATTACH: + DisableThreadLibraryCalls(hinstDLL); + break; + case DLL_PROCESS_DETACH: + break; + default: + break; + } + + return TRUE; +}