netcfgx: add stub dll

Austin English austinenglish at gmail.com
Mon Aug 26 18:11:43 CDT 2013


Requested by Anastasius Focht:
http://bugs.winehq.org/show_bug.cgi?id=27060#c13

-- 
-Austin
-------------- next part --------------
From 518481d14f0e15017b1515afb3407ce1f2829e5a Mon Sep 17 00:00:00 2001
From: Austin English <austinenglish at gmail.com>
Date: Mon, 26 Aug 2013 16:09:01 -0700
Subject: [PATCH 2/2] netcfgx: add stub dll

---
 configure.ac              |  1 +
 dlls/netcfgx/Makefile.in  |  6 ++++++
 dlls/netcfgx/main.c       | 44 ++++++++++++++++++++++++++++++++++++++++++++
 dlls/netcfgx/netcfgx.spec | 16 ++++++++++++++++
 4 files changed, 67 insertions(+)
 create mode 100644 dlls/netcfgx/Makefile.in
 create mode 100644 dlls/netcfgx/main.c
 create mode 100644 dlls/netcfgx/netcfgx.spec

diff --git a/configure.ac b/configure.ac
index 0f84770..edd69c0 100644
--- a/configure.ac
+++ b/configure.ac
@@ -2944,6 +2944,7 @@ WINE_CONFIG_DLL(msxml6)
 WINE_CONFIG_DLL(nddeapi,,[implib])
 WINE_CONFIG_DLL(netapi32,,[implib])
 WINE_CONFIG_TEST(dlls/netapi32/tests)
+WINE_CONFIG_DLL(netcfgx)
 WINE_CONFIG_DLL(newdev,,[implib])
 WINE_CONFIG_DLL(normaliz,,[implib])
 WINE_CONFIG_DLL(npmshtml)
diff --git a/dlls/netcfgx/Makefile.in b/dlls/netcfgx/Makefile.in
new file mode 100644
index 0000000..8ad17e1
--- /dev/null
+++ b/dlls/netcfgx/Makefile.in
@@ -0,0 +1,6 @@
+MODULE    = netcfgx.dll
+
+C_SRCS = \
+	main.c
+
+ at MAKE_DLL_RULES@
diff --git a/dlls/netcfgx/main.c b/dlls/netcfgx/main.c
new file mode 100644
index 0000000..6cd1894
--- /dev/null
+++ b/dlls/netcfgx/main.c
@@ -0,0 +1,44 @@
+/*
+ * Network Configuration Objects implementation
+ *
+ * Copyright 2013 Austin English
+ *
+ * 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 <stdarg.h>
+
+#include "windef.h"
+#include "winbase.h"
+#include "wine/debug.h"
+
+WINE_DEFAULT_DEBUG_CHANNEL(netcfgx);
+
+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;
+        default:
+            break;
+    }
+
+    return TRUE;
+}
diff --git a/dlls/netcfgx/netcfgx.spec b/dlls/netcfgx/netcfgx.spec
new file mode 100644
index 0000000..38ce927
--- /dev/null
+++ b/dlls/netcfgx/netcfgx.spec
@@ -0,0 +1,16 @@
+@ stub DllCanUnloadNow
+@ stub DllGetClassObject
+@ stub DllRegisterServer
+@ stub DllUnregisterServer
+@ stub HrDiAddComponentToINetCfg
+@ stub LanaCfgFromCommandArgs
+@ stub ModemClassCoInstaller
+@ stub NetCfgDiagFromCommandArgs
+@ stub NetCfgDiagRepairRegistryBindings
+@ stub NetClassInstaller
+@ stub NetPropPageProvider
+@ stub RasAddBindings
+@ stub RasCountBindings
+@ stub RasRemoveBindings
+@ stub SvchostChangeSvchostGroup
+@ stub UpdateLanaConfigUsingAnswerfile
-- 
1.8.2.1


More information about the wine-patches mailing list