[PATCH 1/2] mshtmlmedia: Add dll.

Mohamad Al-Jaf mohamadaljaf at gmail.com
Thu Apr 21 17:33:51 CDT 2022


Chromium-based browsers and CEF will load
this file instead of msmpeg2vdec on Windows
versions 7 and lower.

Signed-off-by: Mohamad Al-Jaf <mohamadaljaf at gmail.com>
---
 configure.ac                      |  1 +
 dlls/mshtmlmedia/Makefile.in      |  7 +++++++
 dlls/mshtmlmedia/main.c           | 32 +++++++++++++++++++++++++++++++
 dlls/mshtmlmedia/mshtmlmedia.spec |  7 +++++++
 dlls/mshtmlmedia/version.rc       | 26 +++++++++++++++++++++++++
 5 files changed, 73 insertions(+)
 create mode 100644 dlls/mshtmlmedia/Makefile.in
 create mode 100644 dlls/mshtmlmedia/main.c
 create mode 100644 dlls/mshtmlmedia/mshtmlmedia.spec
 create mode 100644 dlls/mshtmlmedia/version.rc

diff --git a/configure.ac b/configure.ac
index d2e0127f262..1c20ce7b56a 100644
--- a/configure.ac
+++ b/configure.ac
@@ -2741,6 +2741,7 @@ WINE_CONFIG_MAKEFILE(dlls/msgsm32.acm)
 WINE_CONFIG_MAKEFILE(dlls/mshtml.tlb)
 WINE_CONFIG_MAKEFILE(dlls/mshtml)
 WINE_CONFIG_MAKEFILE(dlls/mshtml/tests)
+WINE_CONFIG_MAKEFILE(dlls/mshtmlmedia)
 WINE_CONFIG_MAKEFILE(dlls/msi)
 WINE_CONFIG_MAKEFILE(dlls/msi/tests)
 WINE_CONFIG_MAKEFILE(dlls/msident)
diff --git a/dlls/mshtmlmedia/Makefile.in b/dlls/mshtmlmedia/Makefile.in
new file mode 100644
index 00000000000..35295737e51
--- /dev/null
+++ b/dlls/mshtmlmedia/Makefile.in
@@ -0,0 +1,7 @@
+MODULE    = mshtmlmedia.dll
+
+C_SRCS = \
+	main.c
+
+RC_SRCS = \
+	version.rc
diff --git a/dlls/mshtmlmedia/main.c b/dlls/mshtmlmedia/main.c
new file mode 100644
index 00000000000..86580f7994e
--- /dev/null
+++ b/dlls/mshtmlmedia/main.c
@@ -0,0 +1,32 @@
+/*
+ * Copyright 2022 Mohamad Al-Jaf
+ *
+ * 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 "wine/debug.h"
+
+WINE_DEFAULT_DEBUG_CHANNEL(mshtmlmedia);
+
+HRESULT WINAPI DllGetClassObject(REFCLSID clsid, REFIID riid, LPVOID *ppv)
+{
+    FIXME("(%s %s %p)\n", debugstr_guid(clsid), debugstr_guid(riid), ppv);
+    return CLASS_E_CLASSNOTAVAILABLE;
+}
diff --git a/dlls/mshtmlmedia/mshtmlmedia.spec b/dlls/mshtmlmedia/mshtmlmedia.spec
new file mode 100644
index 00000000000..8303bf2c0f8
--- /dev/null
+++ b/dlls/mshtmlmedia/mshtmlmedia.spec
@@ -0,0 +1,7 @@
+@ stub DllAllThreadsDetach
+@ stdcall -private DllCanUnloadNow()
+@ stdcall -private DllGetClassObject(ptr ptr ptr)
+@ stub MFCreateDXGIDeviceManager
+@ stub MFCreateMFByteStreamOnStreamEx
+@ stub MFLockDXGIDeviceManager
+@ stub MFUnlockDXGIDeviceManager
diff --git a/dlls/mshtmlmedia/version.rc b/dlls/mshtmlmedia/version.rc
new file mode 100644
index 00000000000..d96c4c20f6e
--- /dev/null
+++ b/dlls/mshtmlmedia/version.rc
@@ -0,0 +1,26 @@
+/*
+ * Copyright 2022 Mohamad Al-Jaf
+ *
+ * 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_FILEDESCRIPTION_STR "Wine mshtmlmedia"
+#define WINE_FILENAME_STR "mshtmlmedia.dll"
+#define WINE_FILEVERSION 11,0,9600,17840
+#define WINE_FILEVERSION_STR "11.0.9600.17840"
+#define WINE_PRODUCTVERSION 11,00,9600,17840
+#define WINE_PRODUCTVERSION_STR "11.00.9600.17840"
+
+#include "wine/wine_common_ver.rc"
-- 
2.36.0




More information about the wine-devel mailing list