From dbcf03ede1d823f18dae7de239adc6207b7db1f0 Mon Sep 17 00:00:00 2001 From: Ged Murphy Date: Fri, 27 Apr 2007 09:05:43 +0000 Subject: [PATCH] - add cryptnet.dll from wine (stub) - relocate a few dlls svn path=/trunk/; revision=26532 --- reactos/baseaddress.rbuild | 5 +- reactos/boot/bootdata/packages/reactos.dff | 1 + reactos/dll/win32/cryptnet/cryptnet.rbuild | 16 ++++++ reactos/dll/win32/cryptnet/cryptnet.spec | 18 ++++++ reactos/dll/win32/cryptnet/cryptnet_main.c | 64 ++++++++++++++++++++++ reactos/dll/win32/win32.rbuild | 3 + reactos/media/doc/README.WINE | 1 + 7 files changed, 106 insertions(+), 2 deletions(-) create mode 100644 reactos/dll/win32/cryptnet/cryptnet.rbuild create mode 100644 reactos/dll/win32/cryptnet/cryptnet.spec create mode 100644 reactos/dll/win32/cryptnet/cryptnet_main.c diff --git a/reactos/baseaddress.rbuild b/reactos/baseaddress.rbuild index 7a733b9f294..9c0d323bf9a 100644 --- a/reactos/baseaddress.rbuild +++ b/reactos/baseaddress.rbuild @@ -10,6 +10,7 @@ + @@ -82,8 +83,7 @@ - - + @@ -93,6 +93,7 @@ + diff --git a/reactos/boot/bootdata/packages/reactos.dff b/reactos/boot/bootdata/packages/reactos.dff index f045147a70c..80691656578 100644 --- a/reactos/boot/bootdata/packages/reactos.dff +++ b/reactos/boot/bootdata/packages/reactos.dff @@ -153,6 +153,7 @@ dll\win32\comdlg32\comdlg32.dll 1 dll\win32\crtdll\crtdll.dll 1 dll\win32\crypt32\crypt32.dll 1 dll\win32\cryptdll\cryptdll.dll 1 +dll\win32\cryptnet\cryptnet.dll 1 dll\win32\cryptui\cryptui.dll 1 dll\win32\dbghelp\dbghelp.dll 1 dll\win32\devmgr\devmgr.dll 1 diff --git a/reactos/dll/win32/cryptnet/cryptnet.rbuild b/reactos/dll/win32/cryptnet/cryptnet.rbuild new file mode 100644 index 00000000000..baff9ca5866 --- /dev/null +++ b/reactos/dll/win32/cryptnet/cryptnet.rbuild @@ -0,0 +1,16 @@ + + + . + include/reactos/wine + + + + 0x600 + 0x501 + 0x501 + wine + kernel32 + ntdll + cryptnet_main.c + cryptnet.spec + diff --git a/reactos/dll/win32/cryptnet/cryptnet.spec b/reactos/dll/win32/cryptnet/cryptnet.spec new file mode 100644 index 00000000000..62a88234570 --- /dev/null +++ b/reactos/dll/win32/cryptnet/cryptnet.spec @@ -0,0 +1,18 @@ +@ stub CertDllVerifyCTLUsage +@ stub CertDllVerifyRevocation +@ stub CryptnetWlxLogoffEvent +@ stub LdapProvOpenStore +@ stub CryptCancelAsyncRetrieval +@ stub CryptFlushTimeValidObject +@ stub CryptGetObjectUrl +@ stub CryptGetTimeValidObject +@ stub CryptInstallCancelRetrieval +@ stub CryptRetrieveObjectByUrlA +@ stub CryptRetrieveObjectByUrlW +@ stub CryptUninstallCancelRetrieval +@ stdcall -private DllRegisterServer() +@ stdcall -private DllUnregisterServer() +@ stub I_CryptNetEnumUrlCacheEntry +@ stub I_CryptNetGetHostNameFromUrl +@ stub I_CryptNetGetUserDsStoreUrl +@ stub I_CryptNetIsConnected diff --git a/reactos/dll/win32/cryptnet/cryptnet_main.c b/reactos/dll/win32/cryptnet/cryptnet_main.c new file mode 100644 index 00000000000..3ecb0d3fc2e --- /dev/null +++ b/reactos/dll/win32/cryptnet/cryptnet_main.c @@ -0,0 +1,64 @@ +/* + * 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., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, 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, %d, %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; +} diff --git a/reactos/dll/win32/win32.rbuild b/reactos/dll/win32/win32.rbuild index 6e6ba833d14..4a31ccd4698 100644 --- a/reactos/dll/win32/win32.rbuild +++ b/reactos/dll/win32/win32.rbuild @@ -52,6 +52,9 @@ + + + diff --git a/reactos/media/doc/README.WINE b/reactos/media/doc/README.WINE index 1d81fbe819e..6294bbf7079 100644 --- a/reactos/media/doc/README.WINE +++ b/reactos/media/doc/README.WINE @@ -45,6 +45,7 @@ reactos/dll/win32/comctl32 # Autosync reactos/dll/win32/comdlg32 # Synced to Wine-0_9_16 reactos/dll/win32/crypt32 # Autosync reactos/dll/win32/cryptdll # Autosync +reactos/dll/win32/cryptnet # Autosync reactos/dll/win32/dbghelp # reactos/dll/win32/icmp # Synced to Wine-0_9_10 reactos/dll/win32/imm32 # Autosync