cryptext.dll: add a stub dll

Austin English austinenglish at gmail.com
Sun Nov 16 23:44:35 CST 2014


https://bugs.winehq.org/show_bug.cgi?id=18201

-- 
-Austin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.winehq.org/pipermail/wine-patches/attachments/20141116/4807006e/attachment.html>
-------------- next part --------------
From f4434aa1686149e4cae8c1272c1ebde1a6c5e9a7 Mon Sep 17 00:00:00 2001
From: Austin English <austinenglish at gmail.com>
Date: Sun, 16 Nov 2014 21:31:52 -0800
Subject: [PATCH 1/1] cryptext.dll: add new dll

---
 configure.ac                  |  1 +
 dlls/cryptext/Makefile.in     |  6 ++++++
 dlls/cryptext/cryptext.spec   | 30 +++++++++++++++++++++++++++++
 dlls/cryptext/cryptext_main.c | 45 +++++++++++++++++++++++++++++++++++++++++++
 4 files changed, 82 insertions(+)
 create mode 100644 dlls/cryptext/Makefile.in
 create mode 100644 dlls/cryptext/cryptext.spec
 create mode 100644 dlls/cryptext/cryptext_main.c

diff --git a/configure.ac b/configure.ac
index 398d60b..6f2cb79 100644
--- a/configure.ac
+++ b/configure.ac
@@ -2741,6 +2741,7 @@ WINE_CONFIG_DLL(crypt32,,[implib,po])
 WINE_CONFIG_TEST(dlls/crypt32/tests)
 WINE_CONFIG_DLL(cryptdlg,,[po])
 WINE_CONFIG_DLL(cryptdll,,[implib])
+WINE_CONFIG_DLL(cryptext)
 WINE_CONFIG_DLL(cryptnet,,[implib])
 WINE_CONFIG_TEST(dlls/cryptnet/tests)
 WINE_CONFIG_DLL(cryptui,,[implib,po])
diff --git a/dlls/cryptext/Makefile.in b/dlls/cryptext/Makefile.in
new file mode 100644
index 0000000..3e3093c
--- /dev/null
+++ b/dlls/cryptext/Makefile.in
@@ -0,0 +1,6 @@
+# Generated from /home/austin/cryptext.dll by winedump.
+MODULE    = cryptext.dll
+
+
+C_SRCS = \
+	cryptext_main.c
diff --git a/dlls/cryptext/cryptext.spec b/dlls/cryptext/cryptext.spec
new file mode 100644
index 0000000..b0e920e
--- /dev/null
+++ b/dlls/cryptext/cryptext.spec
@@ -0,0 +1,30 @@
+@ stub CryptExtAddCER
+@ stub CryptExtAddCERW
+@ stub CryptExtAddCRL
+@ stub CryptExtAddCRLW
+@ stub CryptExtAddCTL
+@ stub CryptExtAddCTLW
+@ stub CryptExtAddP7R
+@ stub CryptExtAddP7RW
+@ stub CryptExtAddPFX
+@ stub CryptExtAddPFXW
+@ stub CryptExtAddSPC
+@ stub CryptExtAddSPCW
+@ stub CryptExtOpenCAT
+@ stub CryptExtOpenCATW
+@ stub CryptExtOpenCER
+@ stub CryptExtOpenCERW
+@ stub CryptExtOpenCRL
+@ stub CryptExtOpenCRLW
+@ stub CryptExtOpenCTL
+@ stub CryptExtOpenCTLW
+@ stub CryptExtOpenP7R
+@ stub CryptExtOpenP7RW
+@ stub CryptExtOpenPKCS7
+@ stub CryptExtOpenPKCS7W
+@ stub CryptExtOpenSTR
+@ stub CryptExtOpenSTRW
+@ stub DllCanUnloadNow
+@ stub DllGetClassObject
+@ stub DllRegisterServer
+@ stub DllUnregisterServer
diff --git a/dlls/cryptext/cryptext_main.c b/dlls/cryptext/cryptext_main.c
new file mode 100644
index 0000000..75ede4e
--- /dev/null
+++ b/dlls/cryptext/cryptext_main.c
@@ -0,0 +1,45 @@
+/*
+ * Crypto Shell Extensions
+ *
+ * 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"
+
+WINE_DEFAULT_DEBUG_CHANNEL(cryptext);
+
+BOOL WINAPI DllMain(HINSTANCE instance, DWORD reason, LPVOID reserved)
+{
+    TRACE("(%p, %u, %p)\n", instance, reason, reserved);
+
+    switch (reason)
+    {
+        case DLL_WINE_PREATTACH:
+            return FALSE;    /* prefer native version */
+        case DLL_PROCESS_ATTACH:
+            DisableThreadLibraryCalls(instance);
+            break;
+    }
+
+    return TRUE;
+}
-- 
2.1.3



More information about the wine-patches mailing list