Hans Leidekker : scrrun: New dll.

Alexandre Julliard julliard at winehq.org
Wed Nov 9 13:29:42 CST 2011


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

Author: Hans Leidekker <hans at codeweavers.com>
Date:   Wed Nov  9 15:03:53 2011 +0100

scrrun: New dll.

---

 configure               |    1 +
 configure.ac            |    1 +
 dlls/scrrun/Makefile.in |    5 +++++
 dlls/scrrun/scrrun.c    |   43 +++++++++++++++++++++++++++++++++++++++++++
 dlls/scrrun/scrrun.spec |    6 ++++++
 5 files changed, 56 insertions(+), 0 deletions(-)

diff --git a/configure b/configure
index 46cbd5f..6762f90 100755
--- a/configure
+++ b/configure
@@ -15138,6 +15138,7 @@ wine_fn_config_dll scarddlg enable_scarddlg
 wine_fn_config_dll sccbase enable_sccbase
 wine_fn_config_dll schannel enable_schannel
 wine_fn_config_test dlls/schannel/tests schannel_test
+wine_fn_config_dll scrrun enable_scrrun
 wine_fn_config_dll secur32 enable_secur32 implib
 wine_fn_config_test dlls/secur32/tests secur32_test
 wine_fn_config_dll security enable_security
diff --git a/configure.ac b/configure.ac
index 76e8e95..36a7642 100644
--- a/configure.ac
+++ b/configure.ac
@@ -2756,6 +2756,7 @@ WINE_CONFIG_DLL(scarddlg)
 WINE_CONFIG_DLL(sccbase)
 WINE_CONFIG_DLL(schannel)
 WINE_CONFIG_TEST(dlls/schannel/tests)
+WINE_CONFIG_DLL(scrrun)
 WINE_CONFIG_DLL(secur32,,[implib])
 WINE_CONFIG_TEST(dlls/secur32/tests)
 WINE_CONFIG_DLL(security)
diff --git a/dlls/scrrun/Makefile.in b/dlls/scrrun/Makefile.in
new file mode 100644
index 0000000..46d8748
--- /dev/null
+++ b/dlls/scrrun/Makefile.in
@@ -0,0 +1,5 @@
+MODULE    = scrrun.dll
+
+C_SRCS = scrrun.c
+
+ at MAKE_DLL_RULES@
diff --git a/dlls/scrrun/scrrun.c b/dlls/scrrun/scrrun.c
new file mode 100644
index 0000000..84a7bef
--- /dev/null
+++ b/dlls/scrrun/scrrun.c
@@ -0,0 +1,43 @@
+/*
+ * Copyright 2011 Hans Leidekker for CodeWeavers
+ *
+ * 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(scrrun);
+
+BOOL WINAPI DllMain( HINSTANCE hinst, DWORD reason, LPVOID reserved )
+{
+    TRACE("%p, %u, %p\n", hinst, reason, reserved);
+
+    switch (reason)
+    {
+        case DLL_WINE_PREATTACH:
+            return FALSE;    /* prefer native version */
+        case DLL_PROCESS_ATTACH:
+            DisableThreadLibraryCalls( hinst );
+            break;
+        case DLL_PROCESS_DETACH:
+            break;
+    }
+    return TRUE;
+}
diff --git a/dlls/scrrun/scrrun.spec b/dlls/scrrun/scrrun.spec
new file mode 100644
index 0000000..5316d8f
--- /dev/null
+++ b/dlls/scrrun/scrrun.spec
@@ -0,0 +1,6 @@
+@ stub DLLGetDocumentation
+@ stub DllCanUnloadNow
+@ stub DllGetClassObject
+@ stub DllRegisterServer
+@ stub DllUnregisterServer
+@ stub DoOpenPipeStream




More information about the wine-cvs mailing list