npptools: add stub dll

Austin English austinenglish at gmail.com
Sun Jul 27 02:21:08 CDT 2014


Fixes https://bugs.winehq.org/show_bug.cgi?id=30041 (Dr. Com starts with
this patch)

-- 
-Austin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.winehq.org/pipermail/wine-patches/attachments/20140727/99f2e85a/attachment.html>
-------------- next part --------------
From 92c6da183e5301b69b7c6cf67e2f8424a984373f Mon Sep 17 00:00:00 2001
From: Austin English <austinenglish at gmail.com>
Date: Sun, 27 Jul 2014 00:17:59 -0700
Subject: [PATCH 1/1] npptools: add stub dll

---
 configure.ac                |  1 +
 dlls/npptools/Makefile.in   |  4 +++
 dlls/npptools/main.c        | 40 ++++++++++++++++++++++++++++++
 dlls/npptools/npptools.spec | 60 +++++++++++++++++++++++++++++++++++++++++++++
 4 files changed, 105 insertions(+)
 create mode 100644 dlls/npptools/Makefile.in
 create mode 100644 dlls/npptools/main.c
 create mode 100644 dlls/npptools/npptools.spec

diff --git a/configure.ac b/configure.ac
index a56cda0..ca69e46 100644
--- a/configure.ac
+++ b/configure.ac
@@ -3047,6 +3047,7 @@ WINE_CONFIG_TEST(dlls/netprofm/tests)
 WINE_CONFIG_DLL(newdev,,[implib])
 WINE_CONFIG_DLL(normaliz,,[implib])
 WINE_CONFIG_DLL(npmshtml)
+WINE_CONFIG_DLL(npptools)
 WINE_CONFIG_DLL(ntdll,,[implib])
 WINE_CONFIG_TEST(dlls/ntdll/tests)
 WINE_CONFIG_DLL(ntdsapi,,[implib])
diff --git a/dlls/npptools/Makefile.in b/dlls/npptools/Makefile.in
new file mode 100644
index 0000000..a9bbd35
--- /dev/null
+++ b/dlls/npptools/Makefile.in
@@ -0,0 +1,4 @@
+MODULE    = npptools.dll
+
+C_SRCS = \
+	main.c
diff --git a/dlls/npptools/main.c b/dlls/npptools/main.c
new file mode 100644
index 0000000..c9b3619
--- /dev/null
+++ b/dlls/npptools/main.c
@@ -0,0 +1,40 @@
+/*
+ *
+ *
+ * Copyright 2014 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 "config.h"
+
+#include <stdarg.h>
+
+#include "windef.h"
+#include "winbase.h"
+#include "wine/debug.h"
+
+BOOL WINAPI DllMain(HINSTANCE instance, DWORD reason, LPVOID reserved)
+{
+    switch (reason)
+    {
+        case DLL_WINE_PREATTACH:
+            return FALSE;    /* prefer native version */
+        case DLL_PROCESS_ATTACH:
+            DisableThreadLibraryCalls(instance);
+            break;
+    }
+
+    return TRUE;
+}
diff --git a/dlls/npptools/npptools.spec b/dlls/npptools/npptools.spec
new file mode 100644
index 0000000..9f69e21
--- /dev/null
+++ b/dlls/npptools/npptools.spec
@@ -0,0 +1,60 @@
+@ stub ClearEventData
+@ stub CreateBlob
+@ stub CreateNPPInterface
+@ stub DestroyBlob
+@ stub DestroyNPPBlobTable
+@ stub DuplicateBlob
+@ stub FilterNPPBlob
+@ stub FindOneOf
+@ stub FindUnknownBlobCategories
+@ stub FindUnknownBlobTags
+@ stub GetBoolFromBlob
+@ stub GetClassIDFromBlob
+@ stub GetDwordFromBlob
+@ stub GetMacAddressFromBlob
+@ stub GetNPPAddressFilterFromBlob
+@ stub GetNPPBlobFromUI
+@ stub GetNPPBlobTable
+@ stub GetNPPEtypeSapFilter
+@ stub GetNPPMacTypeAsNumber
+@ stub GetNPPPatternFilterFromBlob
+@ stub GetNPPTriggerFromBlob
+@ stub GetNetworkInfoFromBlob
+@ stub GetStringFromBlob
+@ stub GetStringsFromBlob
+@ stub IsRemoteNPP
+@ stub LockBlob
+@ stub MarshalBlob
+@ stub MergeBlob
+@ stub NmAddUsedEntry
+@ stub NmHeapAllocate
+@ stub NmHeapFree
+@ stub NmHeapReallocate
+@ stub NmHeapSetMaxSize
+@ stub NmHeapSize
+@ stub NmRemoveUsedEntry
+@ stub RaiseNMEvent
+@ stub ReadBlobFromFile
+@ stub RegCreateBlobKey
+@ stub RegOpenBlobKey
+@ stub ReleaseEventSystem
+@ stub RemoveFromBlob
+@ stub SelectNPPBlobFromTable
+@ stub SendEvent
+@ stub SetBoolInBlob
+@ stub SetClassIDInBlob
+@ stub SetDwordInBlob
+@ stub SetMacAddressInBlob
+@ stub SetNPPAddressFilterInBlob
+@ stub SetNPPEtypeSapFilter
+@ stub SetNPPPatternFilterInBlob
+@ stub SetNPPTriggerInBlob
+@ stub SetNetworkInfoInBlob
+@ stub SetStringInBlob
+@ stub SubkeyExists
+@ stub UnMarshalBlob
+@ stub UnlockBlob
+@ stub WriteBlobToFile
+@ stub WriteCrackedBlobToFile
+@ stub recursiveDeleteKey
+@ stub setKeyAndValue
-- 
2.0.0



More information about the wine-patches mailing list