From: Stefan Leichter Subject: mgmtapi: New stub dll Message-Id: <201203090031.49524.Stefan.Leichter@camline.com> Date: Fri, 9 Mar 2012 00:31:49 +0100 http://bugs.winehq.org/show_bug.cgi?id=25000 http://bugs.winehq.org/show_bug.cgi?id=25465 --- configure.ac | 1 + dlls/mgmtapi/Makefile.in | 5 +++++ dlls/mgmtapi/mgmtapi.c | 41 +++++++++++++++++++++++++++++++++++++++++ dlls/mgmtapi/mgmtapi.spec | 9 +++++++++ 4 files changed, 56 insertions(+), 0 deletions(-) create mode 100644 dlls/mgmtapi/Makefile.in create mode 100644 dlls/mgmtapi/mgmtapi.c create mode 100644 dlls/mgmtapi/mgmtapi.spec diff --git a/configure.ac b/configure.ac index 5bdd776..039f3ef 100644 --- a/configure.ac +++ b/configure.ac @@ -2607,6 +2607,7 @@ WINE_CONFIG_DLL(mcicda) WINE_CONFIG_DLL(mciqtz32) WINE_CONFIG_DLL(mciseq) WINE_CONFIG_DLL(mciwave) +WINE_CONFIG_DLL(mgmtapi) WINE_CONFIG_DLL(midimap) WINE_CONFIG_DLL(mlang,,[implib]) WINE_CONFIG_TEST(dlls/mlang/tests) diff --git a/dlls/mgmtapi/Makefile.in b/dlls/mgmtapi/Makefile.in new file mode 100644 index 0000000..fde16ae --- /dev/null +++ b/dlls/mgmtapi/Makefile.in @@ -0,0 +1,5 @@ +MODULE = mgmtapi.dll + +C_SRCS = mgmtapi.c + +@MAKE_DLL_RULES@ diff --git a/dlls/mgmtapi/mgmtapi.c b/dlls/mgmtapi/mgmtapi.c new file mode 100644 index 0000000..0cde5d5 --- /dev/null +++ b/dlls/mgmtapi/mgmtapi.c @@ -0,0 +1,41 @@ +/* + * Copyright 2012 Stefan Leichter + * + * 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 +#include "windef.h" +#include "winbase.h" +#include "wine/debug.h" + +WINE_DEFAULT_DEBUG_CHANNEL(mgmtapi); + +BOOL WINAPI DllMain( HINSTANCE hinst, DWORD reason, LPVOID reserved ) +{ + TRACE("%p, %u, %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/mgmtapi/mgmtapi.spec b/dlls/mgmtapi/mgmtapi.spec new file mode 100644 index 0000000..9166cd4 --- /dev/null +++ b/dlls/mgmtapi/mgmtapi.spec @@ -0,0 +1,9 @@ +@ stub SnmpMgrClose +@ stub SnmpMgrCtl +@ stub SnmpMgrGetTrap +@ stub SnmpMgrGetTrapEx +@ stub SnmpMgrOidToStr +@ stub SnmpMgrOpen +@ stub SnmpMgrrequest +@ stub SnmpMgrStrToOid +@ stub SnmpMgrTrapListen