[Dlls/Cryptnet] Implement a stub cryptnet dll (v3)

Maarten Lankhorst M.B.Lankhorst at gmail.com
Wed Jun 28 09:51:41 CDT 2006


This time with cryptnet_main.c attached.

Changelog:
Implement a stub cryptnet dll
-------------- next part --------------
Index: configure.ac
===================================================================
RCS file: /home/wine/wine/configure.ac,v
retrieving revision 1.508
diff -u -p -r1.508 configure.ac
--- configure.ac	22 Jun 2006 11:19:38 -0000	1.508
+++ configure.ac	27 Jun 2006 16:15:25 -0000
@@ -1569,6 +1569,7 @@ dlls/crtdll/Makefile
 dlls/crypt32/Makefile
 dlls/crypt32/tests/Makefile
 dlls/cryptdll/Makefile
+dlls/cryptnet/Makefile
 dlls/ctl3d32/Makefile
 dlls/d3d8/Makefile
 dlls/d3d8/tests/Makefile
Index: dlls/Makefile.in
===================================================================
RCS file: /home/wine/wine/dlls/Makefile.in,v
retrieving revision 1.311
diff -u -p -r1.311 Makefile.in
--- dlls/Makefile.in	21 Jun 2006 10:27:10 -0000	1.311
+++ dlls/Makefile.in	27 Jun 2006 16:15:25 -0000
@@ -34,6 +34,7 @@ BASEDIRS = \
 	crtdll \
 	crypt32 \
 	cryptdll \
+	cryptnet \
 	ctl3d32 \
 	d3d8 \
 	d3d9 \
--- /dev/null	2006-06-27 16:50:17.450672440 +0200
+++ dlls/cryptnet/cryptnet.spec	2006-06-12 23:12:40.000000000 +0200
@@ -0,0 +1,18 @@
+@ stdcall -private DllRegisterServer()
+@ stdcall -private DllUnregisterServer()
+@ stub CertDllVerifyCTLUsage
+@ stub CertDllVerifyRevocation
+@ stub CryptnetWlxLogoffEvent
+@ stub LdapProvOpenStore
+@ stub CryptCancelAsyncRetrieval
+@ stub CryptFlushTimeValidObject
+@ stub CryptGetObjectUrl
+@ stub CryptGetTimeValidObject
+@ stub CryptInstallCancelRetrieval
+@ stub CryptRetrieveObjectByUrlA
+@ stub CryptRetrieveObjectByUrlW
+@ stub CryptUninstallCancelRetrieval
+@ stub I_CryptNetEnumUrlCacheEntry
+@ stub I_CryptNetGetHostNameFromUrl
+@ stub I_CryptNetGetUserDsStoreUrl
+@ stub I_CryptNetIsConnected
--- /dev/null	2006-06-27 16:50:17.450672440 +0200
+++ dlls/cryptnet/Makefile.in	2006-06-27 16:11:17.000000000 +0200
@@ -0,0 +1,13 @@
+TOPSRCDIR = @top_srcdir@
+TOPOBJDIR = ../..
+SRCDIR    = @srcdir@
+VPATH     = @srcdir@
+MODULE    = cryptnet.dll
+IMPORTS   = kernel32
+
+C_SRCS = \
+	cryptnet_main.c
+
+ at MAKE_DLL_RULES@
+
+### Dependencies:
--- /dev/null	2006-06-19 09:06:52.912545500 +0200
+++ dlls/cryptnet/cryptnet_main.c	2006-06-28 08:37:33.000000000 +0200
@@ -0,0 +1,65 @@
+/*
+ * Copyright (C) 2006 Maarten Lankhorst
+ *
+ * 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., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
+ *
+ */
+
+#include "config.h"
+#include "windef.h"
+#include "wine/debug.h"
+#include "winbase.h"
+#include "winnt.h"
+
+WINE_DEFAULT_DEBUG_CHANNEL(cryptnet);
+
+BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
+{
+   TRACE("(0x%p, %ld, %p)\n", hinstDLL, fdwReason, lpvReserved);
+
+   switch (fdwReason) {
+      case DLL_WINE_PREATTACH:
+         return FALSE;  /* prefer native version */
+      case DLL_PROCESS_ATTACH:
+         DisableThreadLibraryCalls(hinstDLL);
+         break;
+      case DLL_PROCESS_DETACH:
+         /* Do uninitialisation here */
+         break;
+      default: break;
+   }
+   return TRUE;
+}
+
+/***********************************************************************
+ *    DllRegisterServer (CRYPTNET.@)
+ */
+HRESULT WINAPI DllRegisterServer(void)
+{
+   FIXME("stub\n");
+
+   return S_OK;
+}
+
+/***********************************************************************
+ *    DllUnregisterServer (CRYPTNET.@)
+ */
+HRESULT WINAPI DllUnregisterServer(void)
+{
+   FIXME("stub\n");
+
+   return S_OK;
+}
+


More information about the wine-patches mailing list