Maarten Lankhorst : sccbase: Add initial stub dll.

Alexandre Julliard julliard at winehq.org
Mon Feb 18 08:50:56 CST 2008


Module: wine
Branch: master
Commit: 322d4cab1e6b1c6ddbb9be86d6e0ffef2aeab1d4
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=322d4cab1e6b1c6ddbb9be86d6e0ffef2aeab1d4

Author: Maarten Lankhorst <m.b.lankhorst at gmail.com>
Date:   Sun Feb 17 18:20:32 2008 -0800

sccbase: Add initial stub dll.

---

 Makefile.in               |    2 +
 configure                 |    3 ++
 configure.ac              |    1 +
 dlls/Makefile.in          |    1 +
 dlls/sccbase/Makefile.in  |   13 ++++++++++++
 dlls/sccbase/main.c       |   46 +++++++++++++++++++++++++++++++++++++++++++++
 dlls/sccbase/sccbase.spec |   26 +++++++++++++++++++++++++
 7 files changed, 92 insertions(+), 0 deletions(-)

diff --git a/Makefile.in b/Makefile.in
index 70427ef..9c3a005 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -385,6 +385,7 @@ ALL_MAKEFILES = \
 	dlls/rsaenh/Makefile \
 	dlls/rsaenh/tests/Makefile \
 	dlls/sane.ds/Makefile \
+	dlls/sccbase/Makefile \
 	dlls/schannel/Makefile \
 	dlls/schannel/tests/Makefile \
 	dlls/secur32/Makefile \
@@ -780,6 +781,7 @@ dlls/rsabase/tests/Makefile: dlls/rsabase/tests/Makefile.in dlls/Maketest.rules
 dlls/rsaenh/Makefile: dlls/rsaenh/Makefile.in dlls/Makedll.rules
 dlls/rsaenh/tests/Makefile: dlls/rsaenh/tests/Makefile.in dlls/Maketest.rules
 dlls/sane.ds/Makefile: dlls/sane.ds/Makefile.in dlls/Makedll.rules
+dlls/sccbase/Makefile: dlls/sccbase/Makefile.in dlls/Makedll.rules
 dlls/schannel/Makefile: dlls/schannel/Makefile.in dlls/Makedll.rules
 dlls/schannel/tests/Makefile: dlls/schannel/tests/Makefile.in dlls/Maketest.rules
 dlls/secur32/Makefile: dlls/secur32/Makefile.in dlls/Makedll.rules
diff --git a/configure b/configure
index 494c4da..3a38161 100755
--- a/configure
+++ b/configure
@@ -21621,6 +21621,8 @@ ac_config_files="$ac_config_files dlls/rsaenh/tests/Makefile"
 
 ac_config_files="$ac_config_files dlls/sane.ds/Makefile"
 
+ac_config_files="$ac_config_files dlls/sccbase/Makefile"
+
 ac_config_files="$ac_config_files dlls/schannel/Makefile"
 
 ac_config_files="$ac_config_files dlls/schannel/tests/Makefile"
@@ -22720,6 +22722,7 @@ do
     "dlls/rsaenh/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/rsaenh/Makefile" ;;
     "dlls/rsaenh/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/rsaenh/tests/Makefile" ;;
     "dlls/sane.ds/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/sane.ds/Makefile" ;;
+    "dlls/sccbase/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/sccbase/Makefile" ;;
     "dlls/schannel/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/schannel/Makefile" ;;
     "dlls/schannel/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/schannel/tests/Makefile" ;;
     "dlls/secur32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/secur32/Makefile" ;;
diff --git a/configure.ac b/configure.ac
index f4404b3..da0df30 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1884,6 +1884,7 @@ AC_CONFIG_FILES([dlls/rsabase/tests/Makefile])
 AC_CONFIG_FILES([dlls/rsaenh/Makefile])
 AC_CONFIG_FILES([dlls/rsaenh/tests/Makefile])
 AC_CONFIG_FILES([dlls/sane.ds/Makefile])
+AC_CONFIG_FILES([dlls/sccbase/Makefile])
 AC_CONFIG_FILES([dlls/schannel/Makefile])
 AC_CONFIG_FILES([dlls/schannel/tests/Makefile])
 AC_CONFIG_FILES([dlls/secur32/Makefile])
diff --git a/dlls/Makefile.in b/dlls/Makefile.in
index f241168..1378ffb 100644
--- a/dlls/Makefile.in
+++ b/dlls/Makefile.in
@@ -183,6 +183,7 @@ BASEDIRS = \
 	rsabase \
 	rsaenh \
 	sane.ds \
+	sccbase \
 	schannel \
 	secur32 \
 	security \
diff --git a/dlls/sccbase/Makefile.in b/dlls/sccbase/Makefile.in
new file mode 100644
index 0000000..a24f123
--- /dev/null
+++ b/dlls/sccbase/Makefile.in
@@ -0,0 +1,13 @@
+TOPSRCDIR = @top_srcdir@
+TOPOBJDIR = ../..
+SRCDIR    = @srcdir@
+VPATH     = @srcdir@
+MODULE    = sccbase.dll
+IMPORTS   = kernel32
+
+C_SRCS = \
+	main.c
+
+ at MAKE_DLL_RULES@
+
+ at DEPENDENCIES@  # everything below this line is overwritten by make depend
diff --git a/dlls/sccbase/main.c b/dlls/sccbase/main.c
new file mode 100644
index 0000000..37abe5f
--- /dev/null
+++ b/dlls/sccbase/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 <stdarg.h>
+
+#include "windef.h"
+#include "winbase.h"
+#include "wine/debug.h"
+
+WINE_DEFAULT_DEBUG_CHANNEL(sccbase);
+
+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;
+}
diff --git a/dlls/sccbase/sccbase.spec b/dlls/sccbase/sccbase.spec
new file mode 100644
index 0000000..c63d06b
--- /dev/null
+++ b/dlls/sccbase/sccbase.spec
@@ -0,0 +1,26 @@
+@ stub CPAcquireContext
+@ stub CPAcquireContextW
+@ 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
+@ stub DllRegisterServer
+@ stub DllUnregisterServer




More information about the wine-cvs mailing list