jscript: Added stub DLL.

This commit is contained in:
Jacek Caban 2008-03-09 00:07:57 +01:00 committed by Alexandre Julliard
parent bbfae3deff
commit fa23a2c4b6
7 changed files with 110 additions and 0 deletions

View File

@ -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

3
configure vendored
View File

@ -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" ;;

View File

@ -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])

View File

@ -117,6 +117,7 @@ BASEDIRS = \
iphlpapi \
itircl \
itss \
jscript \
kernel32 \
localspl \
localui \

14
dlls/jscript/Makefile.in Normal file
View File

@ -0,0 +1,14 @@
TOPSRCDIR = @top_srcdir@
TOPOBJDIR = ../..
SRCDIR = @srcdir@
VPATH = @srcdir@
MODULE = jscript.dll
IMPORTS = kernel32
EXTRALIBS = -luuid
C_SRCS = \
jscript_main.c
@MAKE_DLL_RULES@
@DEPENDENCIES@ # everything below this line is overwritten by make depend

View File

@ -0,0 +1,4 @@
@ stdcall -private DllCanUnloadNow()
@ stdcall -private DllGetClassObject(ptr ptr ptr)
@ stdcall -private DllRegisterServer()
@ stdcall -private DllUnregisterServer()

View File

@ -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;
}