From: Stefan Leichter Subject: wsnmp32: New stub dll Message-Id: <201203090031.45247.Stefan.Leichter@camline.com> Date: Fri, 9 Mar 2012 00:31:45 +0100 http://bugs.winehq.org/show_bug.cgi?id=25000 --- configure.ac | 1 + dlls/wsnmp32/Makefile.in | 5 ++++ dlls/wsnmp32/wsnmp32.c | 41 +++++++++++++++++++++++++++++++++++++ dlls/wsnmp32/wsnmp32.spec | 49 +++++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 96 insertions(+), 0 deletions(-) create mode 100644 dlls/wsnmp32/Makefile.in create mode 100644 dlls/wsnmp32/wsnmp32.c create mode 100644 dlls/wsnmp32/wsnmp32.spec diff --git a/configure.ac b/configure.ac index 0b68774..5bdd776 100644 --- a/configure.ac +++ b/configure.ac @@ -2904,6 +2904,7 @@ WINE_CONFIG_DLL(ws2_32,,[implib]) WINE_CONFIG_TEST(dlls/ws2_32/tests) WINE_CONFIG_DLL(wshom.ocx) WINE_CONFIG_TEST(dlls/wshom.ocx/tests) +WINE_CONFIG_DLL(wsnmp32) WINE_CONFIG_DLL(wsock32,,[implib]) WINE_CONFIG_DLL(wtsapi32,,[implib]) WINE_CONFIG_DLL(wuapi) diff --git a/dlls/wsnmp32/Makefile.in b/dlls/wsnmp32/Makefile.in new file mode 100644 index 0000000..0fe0da2 --- /dev/null +++ b/dlls/wsnmp32/Makefile.in @@ -0,0 +1,5 @@ +MODULE = wsnmp32.dll + +C_SRCS = wsnmp32.c + +@MAKE_DLL_RULES@ diff --git a/dlls/wsnmp32/wsnmp32.c b/dlls/wsnmp32/wsnmp32.c new file mode 100644 index 0000000..6ace895 --- /dev/null +++ b/dlls/wsnmp32/wsnmp32.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(wsnmp32); + +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/wsnmp32/wsnmp32.spec b/dlls/wsnmp32/wsnmp32.spec new file mode 100644 index 0000000..dccc589 --- /dev/null +++ b/dlls/wsnmp32/wsnmp32.spec @@ -0,0 +1,49 @@ +# imported from D-Link EMS by ordinal +320 stub SnmpSetPort +# +@ stub SnmpCancelMsg +@ stub SnmpCleanup +@ stub SnmpClose +@ stub SnmpContextRoStr +@ stub _SnmpConveyAgentAddress +@ stub SnmpCountVbl +@ stub SnmpCreatePdu +@ stub SnmpCreateSession +@ stub SnmpCreateVbl +@ stub SnmpDecodeMsg +@ stub SnmpDeleteVb +@ stub SnmpDuplicatePdu +@ stub SnmpDuplicateVbl +@ stub SnmpEncodeMsg +@ stub SnmpEntityTpStr +@ stub SnmpFreeContext +@ stub SnmpFreeDescriptor +@ stub SnmpFreeEntity +@ stub SnmpFreePdu +@ stub SnmpFreeVbl +@ stub SnmpGetLastError +@ stub SnmpGetPduData +@ stub SnmpGetRetransmitMode +@ stub SnmpGetRetry +@ stub SnmpGetTimeout +@ stub SnmpGetVb +@ stub SnmpGetVendorInfo +@ stub SnmpListen +@ stub SnmpOidCompare +@ stub SnmpOidCopy +@ stub SnmpOidToStr +@ stub SnmpOpen +@ stub SnmpRecvMsg +@ stub SnmpRegister +@ stub SnmpSendMsg +@ stub _SnmpSetAgentAddress +@ stub SnmpSetPdu +@ stub SnmpSetRetransmitMode +@ stub SnmpSetRetry +@ stub SnmpSetTimeout +@ stub SnmpSetTranslateMode +@ stub SnmpSetVb +@ stub SnmpStartup +@ stub SnmpStrToContext +@ stub SnmpStrToEntity +@ stub SnmpStrToOid