From e4576c807ba771c2d5cb63edec58eb6330ebb51c Mon Sep 17 00:00:00 2001 From: Maarten Lankhorst Date: Sun, 17 Feb 2008 18:20:32 -0800 Subject: [PATCH] gpkcsp: Add initial stub dll. --- Makefile.in | 2 ++ configure | 3 +++ configure.ac | 1 + dlls/Makefile.in | 1 + dlls/gpkcsp/Makefile.in | 13 ++++++++++++ dlls/gpkcsp/gpkcsp.spec | 26 +++++++++++++++++++++++ dlls/gpkcsp/main.c | 46 +++++++++++++++++++++++++++++++++++++++++ 7 files changed, 92 insertions(+) create mode 100644 dlls/gpkcsp/Makefile.in create mode 100644 dlls/gpkcsp/gpkcsp.spec create mode 100644 dlls/gpkcsp/main.c diff --git a/Makefile.in b/Makefile.in index c7a53064168..9407b139afc 100644 --- a/Makefile.in +++ b/Makefile.in @@ -248,6 +248,7 @@ ALL_MAKEFILES = \ dlls/gdiplus/tests/Makefile \ dlls/glu32/Makefile \ dlls/gphoto2.ds/Makefile \ + dlls/gpkcsp/Makefile \ dlls/hal/Makefile \ dlls/hhctrl.ocx/Makefile \ dlls/hid/Makefile \ @@ -640,6 +641,7 @@ dlls/gdiplus/Makefile: dlls/gdiplus/Makefile.in dlls/Makedll.rules dlls/gdiplus/tests/Makefile: dlls/gdiplus/tests/Makefile.in dlls/Maketest.rules dlls/glu32/Makefile: dlls/glu32/Makefile.in dlls/Makedll.rules dlls/gphoto2.ds/Makefile: dlls/gphoto2.ds/Makefile.in dlls/Makedll.rules +dlls/gpkcsp/Makefile: dlls/gpkcsp/Makefile.in dlls/Makedll.rules dlls/hal/Makefile: dlls/hal/Makefile.in dlls/Makedll.rules dlls/hhctrl.ocx/Makefile: dlls/hhctrl.ocx/Makefile.in dlls/Makedll.rules dlls/hid/Makefile: dlls/hid/Makefile.in dlls/Makedll.rules diff --git a/configure b/configure index 758a8512f8e..4be76fbd08c 100755 --- a/configure +++ b/configure @@ -21347,6 +21347,8 @@ ac_config_files="$ac_config_files dlls/glu32/Makefile" ac_config_files="$ac_config_files dlls/gphoto2.ds/Makefile" +ac_config_files="$ac_config_files dlls/gpkcsp/Makefile" + ac_config_files="$ac_config_files dlls/hal/Makefile" ac_config_files="$ac_config_files dlls/hhctrl.ocx/Makefile" @@ -22577,6 +22579,7 @@ do "dlls/gdiplus/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/gdiplus/tests/Makefile" ;; "dlls/glu32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/glu32/Makefile" ;; "dlls/gphoto2.ds/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/gphoto2.ds/Makefile" ;; + "dlls/gpkcsp/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/gpkcsp/Makefile" ;; "dlls/hal/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/hal/Makefile" ;; "dlls/hhctrl.ocx/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/hhctrl.ocx/Makefile" ;; "dlls/hid/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/hid/Makefile" ;; diff --git a/configure.ac b/configure.ac index bb8aac48c80..be7389b4985 100644 --- a/configure.ac +++ b/configure.ac @@ -1747,6 +1747,7 @@ AC_CONFIG_FILES([dlls/gdiplus/Makefile]) AC_CONFIG_FILES([dlls/gdiplus/tests/Makefile]) AC_CONFIG_FILES([dlls/glu32/Makefile]) AC_CONFIG_FILES([dlls/gphoto2.ds/Makefile]) +AC_CONFIG_FILES([dlls/gpkcsp/Makefile]) AC_CONFIG_FILES([dlls/hal/Makefile]) AC_CONFIG_FILES([dlls/hhctrl.ocx/Makefile]) AC_CONFIG_FILES([dlls/hid/Makefile]) diff --git a/dlls/Makefile.in b/dlls/Makefile.in index 6577b2ab77e..3297a6400fa 100644 --- a/dlls/Makefile.in +++ b/dlls/Makefile.in @@ -82,6 +82,7 @@ BASEDIRS = \ gdi32 \ gdiplus \ gphoto2.ds \ + gpkcsp \ hal \ hhctrl.ocx \ hid \ diff --git a/dlls/gpkcsp/Makefile.in b/dlls/gpkcsp/Makefile.in new file mode 100644 index 00000000000..39d6a9585fe --- /dev/null +++ b/dlls/gpkcsp/Makefile.in @@ -0,0 +1,13 @@ +TOPSRCDIR = @top_srcdir@ +TOPOBJDIR = ../.. +SRCDIR = @srcdir@ +VPATH = @srcdir@ +MODULE = gpkcsp.dll +IMPORTS = kernel32 + +C_SRCS = \ + main.c + +@MAKE_DLL_RULES@ + +@DEPENDENCIES@ # everything below this line is overwritten by make depend diff --git a/dlls/gpkcsp/gpkcsp.spec b/dlls/gpkcsp/gpkcsp.spec new file mode 100644 index 00000000000..1f828b09812 --- /dev/null +++ b/dlls/gpkcsp/gpkcsp.spec @@ -0,0 +1,26 @@ +@ stub CPAcquireContext +@ stub CPCreateHash +@ stub CPDecrypt +@ stub CPDeriveKey +@ stub CPDestroyHash +@ stub CPDestroyKey +@ stub CPEncrypt +@ stub CPExportKey +@ stub CPGenKey +@ stub CPGenRandom +@ stub CPGetHashParam +@ stub CPGetKeyParam +@ stub CPGetProvParam +@ stub CPGetUserKey +@ stub CPHashData +@ stub CPHashSessionKey +@ stub CPImportKey +@ stub CPReleaseContext +@ stub CPSetHashParam +@ stub CPSetKeyParam +@ stub CPSetProvParam +@ stub CPSignHash +@ stub CPVerifySignature +@ stdcall DllMain(ptr long ptr) +@ stub DllRegisterServer +@ stub DllUnregisterServer diff --git a/dlls/gpkcsp/main.c b/dlls/gpkcsp/main.c new file mode 100644 index 00000000000..b6d9f177472 --- /dev/null +++ b/dlls/gpkcsp/main.c @@ -0,0 +1,46 @@ +/* + * Copyright 2008 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 + +#include "windef.h" +#include "winbase.h" +#include "wine/debug.h" + +WINE_DEFAULT_DEBUG_CHANNEL(gpkcsp); + +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: + break; + default: + break; + } + return TRUE; +}