Module: wine Branch: master Commit: a9c825e036102801ecdc026cc5054740c507baa0 URL: http://source.winehq.org/git/wine.git/?a=commit;h=a9c825e036102801ecdc026cc5...
Author: Christian Costa titan.costa@wanadoo.fr Date: Thu Feb 26 23:27:36 2009 +0100
mciqtz32: Add stubbed mciqtz32.dll (part of DirectShow).
---
configure | 9 ++++++ configure.ac | 1 + dlls/mciqtz32/Makefile.in | 15 ++++++++++ dlls/mciqtz32/mciqtz.c | 63 +++++++++++++++++++++++++++++++++++++++++++ dlls/mciqtz32/mciqtz32.spec | 1 + dlls/mciqtz32/version.rc | 27 ++++++++++++++++++ 6 files changed, 116 insertions(+), 0 deletions(-)
diff --git a/configure b/configure index 7ab9c8e..b6a0c69 100755 --- a/configure +++ b/configure @@ -25678,6 +25678,14 @@ dlls/mcicda/Makefile: dlls/mcicda/Makefile.in dlls/Makedll.rules" ac_config_files="$ac_config_files dlls/mcicda/Makefile"
ALL_MAKEFILES="$ALL_MAKEFILES \ + dlls/mciqtz32/Makefile" +test "x$enable_mciqtz32" != xno && ALL_DLL_DIRS="$ALL_DLL_DIRS \ + mciqtz32" +ALL_MAKEFILE_DEPENDS="$ALL_MAKEFILE_DEPENDS +dlls/mciqtz32/Makefile: dlls/mciqtz32/Makefile.in dlls/Makedll.rules" +ac_config_files="$ac_config_files dlls/mciqtz32/Makefile" + +ALL_MAKEFILES="$ALL_MAKEFILES \ dlls/mciseq/Makefile" test "x$enable_mciseq" != xno && ALL_DLL_DIRS="$ALL_DLL_DIRS \ mciseq" @@ -28805,6 +28813,7 @@ do "dlls/mapi32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mapi32/tests/Makefile" ;; "dlls/mciavi32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mciavi32/Makefile" ;; "dlls/mcicda/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mcicda/Makefile" ;; + "dlls/mciqtz32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mciqtz32/Makefile" ;; "dlls/mciseq/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mciseq/Makefile" ;; "dlls/mciwave/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mciwave/Makefile" ;; "dlls/midimap/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/midimap/Makefile" ;; diff --git a/configure.ac b/configure.ac index 06afdf9..c883430 100644 --- a/configure.ac +++ b/configure.ac @@ -2041,6 +2041,7 @@ WINE_CONFIG_MAKEFILE([dlls/mapi32/Makefile],[dlls/Makedll.rules],[dlls],[ALL_DLL WINE_CONFIG_MAKEFILE([dlls/mapi32/tests/Makefile],[dlls/Maketest.rules],[dlls],[ALL_TEST_DIRS],[enable_tests]) WINE_CONFIG_MAKEFILE([dlls/mciavi32/Makefile],[dlls/Makedll.rules],[dlls],[ALL_DLL_DIRS]) WINE_CONFIG_MAKEFILE([dlls/mcicda/Makefile],[dlls/Makedll.rules],[dlls],[ALL_DLL_DIRS]) +WINE_CONFIG_MAKEFILE([dlls/mciqtz32/Makefile],[dlls/Makedll.rules],[dlls],[ALL_DLL_DIRS]) WINE_CONFIG_MAKEFILE([dlls/mciseq/Makefile],[dlls/Makedll.rules],[dlls],[ALL_DLL_DIRS]) WINE_CONFIG_MAKEFILE([dlls/mciwave/Makefile],[dlls/Makedll.rules],[dlls],[ALL_DLL_DIRS]) WINE_CONFIG_MAKEFILE([dlls/midimap/Makefile],[dlls/Makedll.rules],[dlls],[ALL_DLL_DIRS]) diff --git a/dlls/mciqtz32/Makefile.in b/dlls/mciqtz32/Makefile.in new file mode 100644 index 0000000..1d136eb --- /dev/null +++ b/dlls/mciqtz32/Makefile.in @@ -0,0 +1,15 @@ +TOPSRCDIR = @top_srcdir@ +TOPOBJDIR = ../.. +SRCDIR = @srcdir@ +VPATH = @srcdir@ +MODULE = mciqtz32.dll +IMPORTS = kernel32 + +C_SRCS = \ + mciqtz.c + +RC_SRCS = version.rc + +@MAKE_DLL_RULES@ + +@DEPENDENCIES@ # everything below this line is overwritten by make depend diff --git a/dlls/mciqtz32/mciqtz.c b/dlls/mciqtz32/mciqtz.c new file mode 100644 index 0000000..6d272b5 --- /dev/null +++ b/dlls/mciqtz32/mciqtz.c @@ -0,0 +1,63 @@ +/* + * DirectShow MCI Driver + * + * Copyright 2009 Christian Costa + * + * 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 <stdarg.h> +#include "windef.h" +#include "winbase.h" +#include "mmddk.h" +#include "wine/debug.h" + +WINE_DEFAULT_DEBUG_CHANNEL(mciqtz); + +/*======================================================================* + * MCI QTZ implementation * + *======================================================================*/ + +HINSTANCE MCIQTZ_hInstance = 0; + +/*********************************************************************** + * DllMain (MCIQTZ.0) + */ +BOOL WINAPI DllMain(HINSTANCE hInstDLL, DWORD fdwReason, LPVOID fImpLoad) +{ + switch (fdwReason) { + case DLL_PROCESS_ATTACH: + DisableThreadLibraryCalls(hInstDLL); + MCIQTZ_hInstance = hInstDLL; + break; + } + return TRUE; +} + +/*======================================================================* + * MCI QTZ entry points * + *======================================================================*/ + +/************************************************************************** + * DriverProc (MCIQTZ.@) + */ +LRESULT CALLBACK MCIQTZ_DriverProc(DWORD_PTR dwDevID, HDRVR hDriv, UINT wMsg, + LPARAM dwParam1, LPARAM dwParam2) +{ + FIXME("(%08lX, %p, %08X, %08lX, %08lX): Stub!\n", + dwDevID, hDriv, wMsg, dwParam1, dwParam2); + + return MCIERR_UNRECOGNIZED_COMMAND; +} diff --git a/dlls/mciqtz32/mciqtz32.spec b/dlls/mciqtz32/mciqtz32.spec new file mode 100644 index 0000000..ba507d7 --- /dev/null +++ b/dlls/mciqtz32/mciqtz32.spec @@ -0,0 +1 @@ +@ stdcall -private DriverProc(long long long long long) MCIQTZ_DriverProc diff --git a/dlls/mciqtz32/version.rc b/dlls/mciqtz32/version.rc new file mode 100644 index 0000000..94c6078 --- /dev/null +++ b/dlls/mciqtz32/version.rc @@ -0,0 +1,27 @@ +/* + * Copyright (c) 2009 Christian Costa + * + * 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 + */ + +#define WINE_OLESELFREGISTER +#define WINE_FILEDESCRIPTION_STR "Wine DirectShow MCI Driver" +#define WINE_FILENAME_STR "mciqtz32.dll" +#define WINE_FILEVERSION 6,5,1,900 +#define WINE_FILEVERSION_STR "6.5.1.900" +#define WINE_PRODUCTVERSION 6,5,1,900 +#define WINE_PRODUCTVERSION_STR "6.5" + +#include "wine/wine_common_ver.rc"