[1/5] netprofm: New dll.

Hans Leidekker hans at codeweavers.com
Mon Apr 7 07:57:13 CDT 2014


---
 configure.ac                |  1 +
 dlls/netprofm/Makefile.in   |  4 ++++
 dlls/netprofm/main.c        | 38 ++++++++++++++++++++++++++++++++++++++
 dlls/netprofm/netprofm.spec |  4 ++++
 4 files changed, 47 insertions(+)
 create mode 100644 dlls/netprofm/Makefile.in
 create mode 100644 dlls/netprofm/main.c
 create mode 100644 dlls/netprofm/netprofm.spec

diff --git a/configure.ac b/configure.ac
index 44d7224..fbdc269 100644
--- a/configure.ac
+++ b/configure.ac
@@ -3031,6 +3031,7 @@ WINE_CONFIG_DLL(netapi32,,[implib])
 WINE_CONFIG_TEST(dlls/netapi32/tests)
 WINE_CONFIG_DLL(netcfgx,,[clean])
 WINE_CONFIG_TEST(dlls/netcfgx/tests)
+WINE_CONFIG_DLL(netprofm)
 WINE_CONFIG_DLL(newdev,,[implib])
 WINE_CONFIG_DLL(normaliz,,[implib])
 WINE_CONFIG_DLL(npmshtml)
diff --git a/dlls/netprofm/Makefile.in b/dlls/netprofm/Makefile.in
new file mode 100644
index 0000000..0368b86
--- /dev/null
+++ b/dlls/netprofm/Makefile.in
@@ -0,0 +1,4 @@
+MODULE    = netprofm.dll
+
+C_SRCS = \
+	main.c
diff --git a/dlls/netprofm/main.c b/dlls/netprofm/main.c
new file mode 100644
index 0000000..8c9fd27
--- /dev/null
+++ b/dlls/netprofm/main.c
@@ -0,0 +1,38 @@
+/*
+ * Copyright 2014 Hans Leidekker for CodeWeavers
+ *
+ * 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 <stdarg.h>
+#include "windef.h"
+#include "winbase.h"
+
+static HINSTANCE instance;
+
+BOOL WINAPI DllMain( HINSTANCE hinst, DWORD reason, LPVOID reserved )
+{
+    switch (reason)
+    {
+        case DLL_WINE_PREATTACH:
+            return FALSE;    /* prefer native version */
+        case DLL_PROCESS_ATTACH:
+            instance = hinst;
+            DisableThreadLibraryCalls( hinst );
+            break;
+    }
+    return TRUE;
+}
diff --git a/dlls/netprofm/netprofm.spec b/dlls/netprofm/netprofm.spec
new file mode 100644
index 0000000..c5fc87a
--- /dev/null
+++ b/dlls/netprofm/netprofm.spec
@@ -0,0 +1,4 @@
+@ stub DllCanUnloadNow
+@ stub DllGetClassObject
+@ stub DllRegisterServer
+@ stub DllUnregisterServer
-- 
1.9.1





More information about the wine-patches mailing list