Jacek Caban : jscript: Added stub DLL.

Alexandre Julliard julliard at winehq.org
Mon Mar 10 07:16:53 CDT 2008


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

Author: Jacek Caban <jacek at codeweavers.com>
Date:   Sun Mar  9 00:07:57 2008 +0100

jscript: Added stub DLL.

---

 Makefile.in                 |    2 +
 configure                   |    3 ++
 configure.ac                |    1 +
 dlls/Makefile.in            |    1 +
 dlls/jscript/Makefile.in    |   14 +++++++
 dlls/jscript/jscript.spec   |    4 ++
 dlls/jscript/jscript_main.c |   85 +++++++++++++++++++++++++++++++++++++++++++
 7 files changed, 110 insertions(+), 0 deletions(-)

diff --git a/Makefile.in b/Makefile.in
index 6b22eb0..34b4e56 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -288,6 +288,7 @@ ALL_MAKEFILES = \
 	dlls/itircl/Makefile \
 	dlls/itss/Makefile \
 	dlls/itss/tests/Makefile \
+	dlls/jscript/Makefile \
 	dlls/kernel32/Makefile \
 	dlls/kernel32/tests/Makefile \
 	dlls/localspl/Makefile \
@@ -705,6 +706,7 @@ dlls/iphlpapi/tests/Makefile: dlls/iphlpapi/tests/Makefile.in dlls/Maketest.rule
 dlls/itircl/Makefile: dlls/itircl/Makefile.in dlls/Makedll.rules
 dlls/itss/Makefile: dlls/itss/Makefile.in dlls/Makedll.rules
 dlls/itss/tests/Makefile: dlls/itss/tests/Makefile.in dlls/Maketest.rules
+dlls/jscript/Makefile: dlls/jscript/Makefile.in dlls/Makedll.rules
 dlls/kernel32/Makefile: dlls/kernel32/Makefile.in dlls/Makedll.rules
 dlls/kernel32/tests/Makefile: dlls/kernel32/tests/Makefile.in dlls/Maketest.rules
 dlls/localspl/Makefile: dlls/localspl/Makefile.in dlls/Makedll.rules
diff --git a/configure b/configure
index 22ab9f4..32a85c3 100755
--- a/configure
+++ b/configure
@@ -21438,6 +21438,8 @@ ac_config_files="$ac_config_files dlls/itss/Makefile"
 
 ac_config_files="$ac_config_files dlls/itss/tests/Makefile"
 
+ac_config_files="$ac_config_files dlls/jscript/Makefile"
+
 ac_config_files="$ac_config_files dlls/kernel32/Makefile"
 
 ac_config_files="$ac_config_files dlls/kernel32/tests/Makefile"
@@ -22678,6 +22680,7 @@ do
     "dlls/itircl/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/itircl/Makefile" ;;
     "dlls/itss/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/itss/Makefile" ;;
     "dlls/itss/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/itss/tests/Makefile" ;;
+    "dlls/jscript/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/jscript/Makefile" ;;
     "dlls/kernel32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/kernel32/Makefile" ;;
     "dlls/kernel32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/kernel32/tests/Makefile" ;;
     "dlls/localspl/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/localspl/Makefile" ;;
diff --git a/configure.ac b/configure.ac
index c2d628b..f239a68 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1792,6 +1792,7 @@ AC_CONFIG_FILES([dlls/iphlpapi/tests/Makefile])
 AC_CONFIG_FILES([dlls/itircl/Makefile])
 AC_CONFIG_FILES([dlls/itss/Makefile])
 AC_CONFIG_FILES([dlls/itss/tests/Makefile])
+AC_CONFIG_FILES([dlls/jscript/Makefile])
 AC_CONFIG_FILES([dlls/kernel32/Makefile])
 AC_CONFIG_FILES([dlls/kernel32/tests/Makefile])
 AC_CONFIG_FILES([dlls/localspl/Makefile])
diff --git a/dlls/Makefile.in b/dlls/Makefile.in
index 9ed67df..1fe9309 100644
--- a/dlls/Makefile.in
+++ b/dlls/Makefile.in
@@ -117,6 +117,7 @@ BASEDIRS = \
 	iphlpapi \
 	itircl \
 	itss \
+	jscript \
 	kernel32 \
 	localspl \
 	localui \
diff --git a/dlls/jscript/Makefile.in b/dlls/jscript/Makefile.in
new file mode 100644
index 0000000..c1ce428
--- /dev/null
+++ b/dlls/jscript/Makefile.in
@@ -0,0 +1,14 @@
+TOPSRCDIR = @top_srcdir@
+TOPOBJDIR = ../..
+SRCDIR    = @srcdir@
+VPATH     = @srcdir@
+MODULE    = jscript.dll
+IMPORTS   = kernel32
+EXTRALIBS = -luuid
+
+C_SRCS = \
+	jscript_main.c
+
+ at MAKE_DLL_RULES@
+
+ at DEPENDENCIES@  # everything below this line is overwritten by make depend
diff --git a/dlls/jscript/jscript.spec b/dlls/jscript/jscript.spec
new file mode 100644
index 0000000..b16365d
--- /dev/null
+++ b/dlls/jscript/jscript.spec
@@ -0,0 +1,4 @@
+@ stdcall -private DllCanUnloadNow()
+@ stdcall -private DllGetClassObject(ptr ptr ptr)
+@ stdcall -private DllRegisterServer()
+@ stdcall -private DllUnregisterServer()
diff --git a/dlls/jscript/jscript_main.c b/dlls/jscript/jscript_main.c
new file mode 100644
index 0000000..807a821
--- /dev/null
+++ b/dlls/jscript/jscript_main.c
@@ -0,0 +1,85 @@
+/*
+ * Copyright 2008 Jacek Caban 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>
+
+#define COBJMACROS
+
+#include "windef.h"
+#include "winbase.h"
+
+#include "wine/debug.h"
+
+WINE_DEFAULT_DEBUG_CHANNEL(jscript);
+
+/******************************************************************
+ *              DllMain (jscript.@)
+ */
+BOOL WINAPI DllMain(HINSTANCE hInstDLL, DWORD fdwReason, LPVOID lpv)
+{
+    TRACE("(%p %d %p)\n", hInstDLL, fdwReason, lpv);
+
+    switch(fdwReason)
+    {
+    case DLL_WINE_PREATTACH:
+        return FALSE;  /* prefer native version */
+    case DLL_PROCESS_ATTACH:
+         DisableThreadLibraryCalls(hInstDLL);
+        break;
+    }
+
+    return TRUE;
+}
+
+/***********************************************************************
+ *		DllGetClassObject	(jscript.@)
+ */
+HRESULT WINAPI DllGetClassObject(REFCLSID rclsid, REFIID riid, LPVOID *ppv)
+{
+    FIXME("%s %s %p\n", debugstr_guid(rclsid), debugstr_guid(riid), ppv);
+    return CLASS_E_CLASSNOTAVAILABLE;
+}
+
+/***********************************************************************
+ *          DllCanUnloadNow (jscript.@)
+ */
+HRESULT WINAPI DllCanUnloadNow(void)
+{
+    FIXME("()\n");
+    return S_FALSE;
+}
+
+/***********************************************************************
+ *          DllRegisterServer (jscript.@)
+ */
+HRESULT WINAPI DllRegisterServer(void)
+{
+    FIXME("()\n");
+    return S_OK;
+}
+
+/***********************************************************************
+ *          DllUnregisterServer (jscript.@)
+ */
+HRESULT WINAPI DllUnregisterServer(void)
+{
+    FIXME("()\n");
+    return S_OK;
+}




More information about the wine-cvs mailing list