Author: akhaldi
Date: Sun Oct 25 10:07:44 2015
New Revision: 69685
URL:
http://svn.reactos.org/svn/reactos?rev=69685&view=rev
Log:
[WMVCORE] Import from Wine Staging 1.7.47. CORE-10400
Added:
trunk/reactos/dll/win32/wmvcore/ (with props)
trunk/reactos/dll/win32/wmvcore/CMakeLists.txt (with props)
trunk/reactos/dll/win32/wmvcore/wmvcore.h (with props)
trunk/reactos/dll/win32/wmvcore/wmvcore.spec (with props)
trunk/reactos/dll/win32/wmvcore/wmvcore_main.c (with props)
trunk/reactos/dll/win32/wmvcore/writer.c (with props)
Modified:
trunk/reactos/dll/win32/CMakeLists.txt
trunk/reactos/media/doc/README.WINE
Modified: trunk/reactos/dll/win32/CMakeLists.txt
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/CMakeLists.txt?r…
==============================================================================
--- trunk/reactos/dll/win32/CMakeLists.txt [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/CMakeLists.txt [iso-8859-1] Sun Oct 25 10:07:44 2015
@@ -241,6 +241,7 @@
add_subdirectory(wldap32)
add_subdirectory(wmi)
add_subdirectory(wmiutils)
+add_subdirectory(wmvcore)
add_subdirectory(ws2_32)
add_subdirectory(ws2_32_new)
add_subdirectory(ws2help)
Propchange: trunk/reactos/dll/win32/wmvcore/
------------------------------------------------------------------------------
--- bugtraq:logregex (added)
+++ bugtraq:logregex Sun Oct 25 10:07:44 2015
@@ -0,0 +1 @@
+((CORE|ROSTESTS|ROSAPPS)-\d+)(,? ?((CORE|ROSTESTS|ROSAPPS)-\d+))*(,? ?(and |or
)?((CORE|ROSTESTS|ROSAPPS)-\d+))?
Propchange: trunk/reactos/dll/win32/wmvcore/
------------------------------------------------------------------------------
bugtraq:message = See issue %BUGID% for more details.
Propchange: trunk/reactos/dll/win32/wmvcore/
------------------------------------------------------------------------------
bugtraq:url =
https://jira.reactos.org/browse/%BUGID%
Propchange: trunk/reactos/dll/win32/wmvcore/
------------------------------------------------------------------------------
tsvn:logminsize = 10
Added: trunk/reactos/dll/win32/wmvcore/CMakeLists.txt
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/wmvcore/CMakeLis…
==============================================================================
--- trunk/reactos/dll/win32/wmvcore/CMakeLists.txt (added)
+++ trunk/reactos/dll/win32/wmvcore/CMakeLists.txt [iso-8859-1] Sun Oct 25 10:07:44 2015
@@ -0,0 +1,16 @@
+
+add_definitions(-D__WINESRC__)
+include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
+spec2def(wmvcore.dll wmvcore.spec)
+
+list(APPEND SOURCE
+ wmvcore_main.c
+ writer.c
+ ${CMAKE_CURRENT_BINARY_DIR}/wmvcore_stubs.c
+ ${CMAKE_CURRENT_BINARY_DIR}/wmvcore.def)
+
+add_library(wmvcore SHARED ${SOURCE})
+set_module_type(wmvcore win32dll)
+target_link_libraries(wmvcore wine)
+add_importlibs(wmvcore msvcrt kernel32 ntdll)
+add_cd_file(TARGET wmvcore DESTINATION reactos/system32/wbem FOR all)
Propchange: trunk/reactos/dll/win32/wmvcore/CMakeLists.txt
------------------------------------------------------------------------------
svn:eol-style = native
Added: trunk/reactos/dll/win32/wmvcore/wmvcore.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/wmvcore/wmvcore.…
==============================================================================
--- trunk/reactos/dll/win32/wmvcore/wmvcore.h (added)
+++ trunk/reactos/dll/win32/wmvcore/wmvcore.h [iso-8859-1] Sun Oct 25 10:07:44 2015
@@ -0,0 +1,36 @@
+/*
+ * Copyright 2015 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 <stdarg.h>
+
+#define COBJMACROS
+
+#define EXTERN_GUID DEFINE_GUID
+
+#include "windef.h"
+#include "winbase.h"
+
+static inline void *heap_alloc(size_t len)
+{
+ return HeapAlloc(GetProcessHeap(), 0, len);
+}
+
+static inline BOOL heap_free(void *mem)
+{
+ return HeapFree(GetProcessHeap(), 0, mem);
+}
Propchange: trunk/reactos/dll/win32/wmvcore/wmvcore.h
------------------------------------------------------------------------------
svn:eol-style = native
Added: trunk/reactos/dll/win32/wmvcore/wmvcore.spec
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/wmvcore/wmvcore.…
==============================================================================
--- trunk/reactos/dll/win32/wmvcore/wmvcore.spec (added)
+++ trunk/reactos/dll/win32/wmvcore/wmvcore.spec [iso-8859-1] Sun Oct 25 10:07:44 2015
@@ -0,0 +1,20 @@
+@ stub WMCheckURLExtension
+@ stub WMCheckURLScheme
+@ stub WMCreateBackupRestorerPrivate
+@ stub WMCreateSyncReaderPriv
+@ stub WMIsAvailableOffline
+@ stub WMValidateData
+@ stdcall -private DllRegisterServer()
+@ stub WMCreateBackupRestorer
+@ stdcall WMCreateEditor(ptr)
+@ stub WMCreateIndexer
+@ stdcall WMCreateProfileManager(ptr)
+@ stdcall WMCreateReader(ptr long ptr)
+@ stub WMCreateReaderPriv
+@ stdcall WMCreateSyncReader(ptr long ptr)
+@ stdcall WMCreateWriter(ptr ptr)
+@ stub WMCreateWriterFileSink
+@ stub WMCreateWriterNetworkSink
+@ stub WMCreateWriterPriv
+@ stub WMCreateWriterPushSink
+@ stub WMIsContentProtected
Propchange: trunk/reactos/dll/win32/wmvcore/wmvcore.spec
------------------------------------------------------------------------------
svn:eol-style = native
Added: trunk/reactos/dll/win32/wmvcore/wmvcore_main.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/wmvcore/wmvcore_…
==============================================================================
--- trunk/reactos/dll/win32/wmvcore/wmvcore_main.c (added)
+++ trunk/reactos/dll/win32/wmvcore/wmvcore_main.c [iso-8859-1] Sun Oct 25 10:07:44 2015
@@ -0,0 +1,800 @@
+/*
+ * Copyright 2012 Austin English
+ *
+ * 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 "wmvcore.h"
+
+#include "initguid.h"
+#include "wmsdkidl.h"
+#include "wine/debug.h"
+
+WINE_DEFAULT_DEBUG_CHANNEL(wmvcore);
+
+BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
+{
+ TRACE("(0x%p, %d, %p)\n", hinstDLL, fdwReason, lpvReserved);
+
+ switch (fdwReason)
+ {
+ case DLL_WINE_PREATTACH:
+ return FALSE; /* prefer native version */
+ case DLL_PROCESS_ATTACH:
+ DisableThreadLibraryCalls(hinstDLL);
+ break;
+ }
+
+ return TRUE;
+}
+
+HRESULT WINAPI DllRegisterServer(void)
+{
+ FIXME("(): stub\n");
+
+ return S_OK;
+}
+
+HRESULT WINAPI WMCreateEditor(IWMMetadataEditor **editor)
+{
+ FIXME("(%p): stub\n", editor);
+
+ *editor = NULL;
+
+ return E_NOTIMPL;
+}
+
+typedef struct {
+ IWMReader IWMReader_iface;
+ IWMReaderAdvanced6 IWMReaderAdvanced6_iface;
+ LONG ref;
+} WMReader;
+
+static inline WMReader *impl_from_IWMReader(IWMReader *iface)
+{
+ return CONTAINING_RECORD(iface, WMReader, IWMReader_iface);
+}
+
+static HRESULT WINAPI WMReader_QueryInterface(IWMReader *iface, REFIID riid, void **ppv)
+{
+ WMReader *This = impl_from_IWMReader(iface);
+
+ if(IsEqualGUID(riid, &IID_IUnknown)) {
+ TRACE("(%p)->(IID_IUnknown %p)\n", This, ppv);
+ *ppv = &This->IWMReader_iface;
+ }else if(IsEqualGUID(riid, &IID_IWMReader)) {
+ TRACE("(%p)->(IID_IWMReader %p)\n", This, ppv);
+ *ppv = &This->IWMReader_iface;
+ }else if(IsEqualGUID(riid, &IID_IWMReaderAdvanced)) {
+ TRACE("(%p)->(IID_IWMReaderAdvanced %p)\n", This, ppv);
+ *ppv = &This->IWMReaderAdvanced6_iface;
+ }else if(IsEqualGUID(riid, &IID_IWMReaderAdvanced2)) {
+ TRACE("(%p)->(IID_IWMReaderAdvanced2 %p)\n", This, ppv);
+ *ppv = &This->IWMReaderAdvanced6_iface;
+ }else if(IsEqualGUID(riid, &IID_IWMReaderAdvanced3)) {
+ TRACE("(%p)->(IID_IWMReaderAdvanced3 %p)\n", This, ppv);
+ *ppv = &This->IWMReaderAdvanced6_iface;
+ }else if(IsEqualGUID(riid, &IID_IWMReaderAdvanced4)) {
+ TRACE("(%p)->(IID_IWMReaderAdvanced4 %p)\n", This, ppv);
+ *ppv = &This->IWMReaderAdvanced6_iface;
+ }else if(IsEqualGUID(riid, &IID_IWMReaderAdvanced5)) {
+ TRACE("(%p)->(IID_IWMReaderAdvanced5 %p)\n", This, ppv);
+ *ppv = &This->IWMReaderAdvanced6_iface;
+ }else if(IsEqualGUID(riid, &IID_IWMReaderAdvanced6)) {
+ TRACE("(%p)->(IID_IWMReaderAdvanced6 %p)\n", This, ppv);
+ *ppv = &This->IWMReaderAdvanced6_iface;
+ }else {
+ *ppv = NULL;
+ FIXME("(%p)->(%s %p)\n", This, debugstr_guid(riid), ppv);
+ return E_NOINTERFACE;
+ }
+
+ IUnknown_AddRef((IUnknown*)*ppv);
+ return S_OK;
+}
+
+static ULONG WINAPI WMReader_AddRef(IWMReader *iface)
+{
+ WMReader *This = impl_from_IWMReader(iface);
+ LONG ref = InterlockedIncrement(&This->ref);
+
+ TRACE("(%p) ref=%d\n", This, ref);
+
+ return ref;
+}
+
+static ULONG WINAPI WMReader_Release(IWMReader *iface)
+{
+ WMReader *This = impl_from_IWMReader(iface);
+ LONG ref = InterlockedDecrement(&This->ref);
+
+ TRACE("(%p) ref=%d\n", This, ref);
+
+ if(!ref)
+ heap_free(This);
+
+ return ref;
+}
+
+static HRESULT WINAPI WMReader_Open(IWMReader *iface, const WCHAR *url, IWMReaderCallback
*callback, void *context)
+{
+ WMReader *This = impl_from_IWMReader(iface);
+ FIXME("(%p)->(%s %p %p)\n", This, debugstr_w(url), callback, context);
+ return E_NOTIMPL;
+}
+
+static HRESULT WINAPI WMReader_Close(IWMReader *iface)
+{
+ WMReader *This = impl_from_IWMReader(iface);
+ FIXME("(%p)\n", This);
+ return E_NOTIMPL;
+}
+
+static HRESULT WINAPI WMReader_GetOutputCount(IWMReader *iface, DWORD *outputs)
+{
+ WMReader *This = impl_from_IWMReader(iface);
+ FIXME("(%p)->(%p)\n", This, outputs);
+ return E_NOTIMPL;
+}
+
+static HRESULT WINAPI WMReader_GetOutputProps(IWMReader *iface, DWORD output_num,
IWMOutputMediaProps **output)
+{
+ WMReader *This = impl_from_IWMReader(iface);
+ FIXME("(%p)->(%u %p)\n", This, output_num, output);
+ return E_NOTIMPL;
+}
+
+static HRESULT WINAPI WMReader_SetOutputProps(IWMReader *iface, DWORD output_num,
IWMOutputMediaProps *output)
+{
+ WMReader *This = impl_from_IWMReader(iface);
+ FIXME("(%p)->(%u %p)\n", This, output_num, output);
+ return E_NOTIMPL;
+}
+
+static HRESULT WINAPI WMReader_GetOutputFormatCount(IWMReader *iface, DWORD output_num,
DWORD *formats)
+{
+ WMReader *This = impl_from_IWMReader(iface);
+ FIXME("(%p)->(%u %p)\n", This, output_num, formats);
+ return E_NOTIMPL;
+}
+
+static HRESULT WINAPI WMReader_GetOutputFormat(IWMReader *iface, DWORD output_num, DWORD
format_num, IWMOutputMediaProps **props)
+{
+ WMReader *This = impl_from_IWMReader(iface);
+ FIXME("(%p)->(%u %u %p)\n", This, output_num, format_num, props);
+ return E_NOTIMPL;
+}
+
+static HRESULT WINAPI WMReader_Start(IWMReader *iface, QWORD start, QWORD duration, float
rate, void *context)
+{
+ WMReader *This = impl_from_IWMReader(iface);
+ FIXME("(%p)->(%s %s %f %p)\n", This, wine_dbgstr_longlong(start),
wine_dbgstr_longlong(duration), rate, context);
+ return E_NOTIMPL;
+}
+
+static HRESULT WINAPI WMReader_Stop(IWMReader *iface)
+{
+ WMReader *This = impl_from_IWMReader(iface);
+ FIXME("(%p)\n", This);
+ return E_NOTIMPL;
+}
+
+static HRESULT WINAPI WMReader_Pause(IWMReader *iface)
+{
+ WMReader *This = impl_from_IWMReader(iface);
+ FIXME("(%p)\n", This);
+ return E_NOTIMPL;
+}
+
+static HRESULT WINAPI WMReader_Resume(IWMReader *iface)
+{
+ WMReader *This = impl_from_IWMReader(iface);
+ FIXME("(%p)\n", This);
+ return E_NOTIMPL;
+}
+
+static const IWMReaderVtbl WMReaderVtbl = {
+ WMReader_QueryInterface,
+ WMReader_AddRef,
+ WMReader_Release,
+ WMReader_Open,
+ WMReader_Close,
+ WMReader_GetOutputCount,
+ WMReader_GetOutputProps,
+ WMReader_SetOutputProps,
+ WMReader_GetOutputFormatCount,
+ WMReader_GetOutputFormat,
+ WMReader_Start,
+ WMReader_Stop,
+ WMReader_Pause,
+ WMReader_Resume
+};
+
+static inline WMReader *impl_from_IWMReaderAdvanced6(IWMReaderAdvanced6 *iface)
+{
+ return CONTAINING_RECORD(iface, WMReader, IWMReaderAdvanced6_iface);
+}
+
+static HRESULT WINAPI WMReaderAdvanced_QueryInterface(IWMReaderAdvanced6 *iface, REFIID
riid, void **ppv)
+{
+ WMReader *This = impl_from_IWMReaderAdvanced6(iface);
+ return IWMReader_QueryInterface(&This->IWMReader_iface, riid, ppv);
+}
+
+static ULONG WINAPI WMReaderAdvanced_AddRef(IWMReaderAdvanced6 *iface)
+{
+ WMReader *This = impl_from_IWMReaderAdvanced6(iface);
+ return IWMReader_AddRef(&This->IWMReader_iface);
+}
+
+static ULONG WINAPI WMReaderAdvanced_Release(IWMReaderAdvanced6 *iface)
+{
+ WMReader *This = impl_from_IWMReaderAdvanced6(iface);
+ return IWMReader_Release(&This->IWMReader_iface);
+}
+
+static HRESULT WINAPI WMReaderAdvanced_SetUserProvidedClock(IWMReaderAdvanced6 *iface,
BOOL user_clock)
+{
+ WMReader *This = impl_from_IWMReaderAdvanced6(iface);
+ FIXME("(%p)->(%x)\n", This, user_clock);
+ return E_NOTIMPL;
+}
+
+static HRESULT WINAPI WMReaderAdvanced_GetUserProvidedClock(IWMReaderAdvanced6 *iface,
BOOL *user_clock)
+{
+ WMReader *This = impl_from_IWMReaderAdvanced6(iface);
+ FIXME("(%p)->(%p)\n", This, user_clock);
+ return E_NOTIMPL;
+}
+
+static HRESULT WINAPI WMReaderAdvanced_DeliverTime(IWMReaderAdvanced6 *iface, QWORD
time)
+{
+ WMReader *This = impl_from_IWMReaderAdvanced6(iface);
+ FIXME("(%p)->(%s)\n", This, wine_dbgstr_longlong(time));
+ return E_NOTIMPL;
+}
+
+static HRESULT WINAPI WMReaderAdvanced_SetManualStreamSelection(IWMReaderAdvanced6
*iface, BOOL selection)
+{
+ WMReader *This = impl_from_IWMReaderAdvanced6(iface);
+ FIXME("(%p)->(%x)\n", This, selection);
+ return E_NOTIMPL;
+}
+
+static HRESULT WINAPI WMReaderAdvanced_GetManualStreamSelection(IWMReaderAdvanced6
*iface, BOOL *selection)
+{
+ WMReader *This = impl_from_IWMReaderAdvanced6(iface);
+ FIXME("(%p)->(%p)\n", This, selection);
+ return E_NOTIMPL;
+}
+
+static HRESULT WINAPI WMReaderAdvanced_SetStreamsSelected(IWMReaderAdvanced6 *iface, WORD
stream_count,
+ WORD *stream_numbers, WMT_STREAM_SELECTION *selections)
+{
+ WMReader *This = impl_from_IWMReaderAdvanced6(iface);
+ FIXME("(%p)->(%d %p %p)\n", This, stream_count, stream_numbers,
selections);
+ return E_NOTIMPL;
+}
+
+static HRESULT WINAPI WMReaderAdvanced_GetStreamSelected(IWMReaderAdvanced6 *iface, WORD
stream_num,
+ WMT_STREAM_SELECTION *selection)
+{
+ WMReader *This = impl_from_IWMReaderAdvanced6(iface);
+ FIXME("(%p)->(%d %p)\n", This, stream_num, selection);
+ return E_NOTIMPL;
+}
+
+static HRESULT WINAPI WMReaderAdvanced_SetReceiveSelectionCallbacks(IWMReaderAdvanced6
*iface, BOOL get_callbacks)
+{
+ WMReader *This = impl_from_IWMReaderAdvanced6(iface);
+ FIXME("(%p)->(%x)\n", This, get_callbacks);
+ return E_NOTIMPL;
+}
+
+static HRESULT WINAPI WMReaderAdvanced_GetReceiveSelectionCallbacks(IWMReaderAdvanced6
*iface, BOOL *get_callbacks)
+{
+ WMReader *This = impl_from_IWMReaderAdvanced6(iface);
+ FIXME("(%p)->(%p)\n", This, get_callbacks);
+ return E_NOTIMPL;
+}
+
+static HRESULT WINAPI WMReaderAdvanced_SetReceiveStreamSamples(IWMReaderAdvanced6 *iface,
WORD stream_num,
+ BOOL receive_stream_samples)
+{
+ WMReader *This = impl_from_IWMReaderAdvanced6(iface);
+ FIXME("(%p)->(%d %x)\n", This, stream_num, receive_stream_samples);
+ return E_NOTIMPL;
+}
+
+static HRESULT WINAPI WMReaderAdvanced_GetReceiveStreamSamples(IWMReaderAdvanced6 *iface,
WORD stream_num,
+ BOOL *receive_stream_samples)
+{
+ WMReader *This = impl_from_IWMReaderAdvanced6(iface);
+ FIXME("(%p)->(%d %p)\n", This, stream_num, receive_stream_samples);
+ return E_NOTIMPL;
+}
+
+static HRESULT WINAPI WMReaderAdvanced_SetAllocateForOutput(IWMReaderAdvanced6 *iface,
DWORD output_num, BOOL allocate)
+{
+ WMReader *This = impl_from_IWMReaderAdvanced6(iface);
+ FIXME("(%p)->(%d %x)\n", This, output_num, allocate);
+ return E_NOTIMPL;
+}
+
+static HRESULT WINAPI WMReaderAdvanced_GetAllocateForOutput(IWMReaderAdvanced6 *iface,
DWORD output_num, BOOL *allocate)
+{
+ WMReader *This = impl_from_IWMReaderAdvanced6(iface);
+ FIXME("(%p)->(%d %p)\n", This, output_num, allocate);
+ return E_NOTIMPL;
+}
+
+static HRESULT WINAPI WMReaderAdvanced_SetAllocateForStream(IWMReaderAdvanced6 *iface,
WORD output_num, BOOL allocate)
+{
+ WMReader *This = impl_from_IWMReaderAdvanced6(iface);
+ FIXME("(%p)->(%d %x)\n", This, output_num, allocate);
+ return E_NOTIMPL;
+}
+
+static HRESULT WINAPI WMReaderAdvanced_GetAllocateForStream(IWMReaderAdvanced6 *iface,
WORD output_num, BOOL *allocate)
+{
+ WMReader *This = impl_from_IWMReaderAdvanced6(iface);
+ FIXME("(%p)->(%d %p)\n", This, output_num, allocate);
+ return E_NOTIMPL;
+}
+
+static HRESULT WINAPI WMReaderAdvanced_GetStatistics(IWMReaderAdvanced6 *iface,
WM_READER_STATISTICS *statistics)
+{
+ WMReader *This = impl_from_IWMReaderAdvanced6(iface);
+ FIXME("(%p)->(%p)\n", This, statistics);
+ return E_NOTIMPL;
+}
+
+static HRESULT WINAPI WMReaderAdvanced_SetClientInfo(IWMReaderAdvanced6 *iface,
WM_READER_CLIENTINFO *client_info)
+{
+ WMReader *This = impl_from_IWMReaderAdvanced6(iface);
+ FIXME("(%p)->(%p)\n", This, client_info);
+ return E_NOTIMPL;
+}
+
+static HRESULT WINAPI WMReaderAdvanced_GetMaxOutputSampleSize(IWMReaderAdvanced6 *iface,
DWORD output, DWORD *max)
+{
+ WMReader *This = impl_from_IWMReaderAdvanced6(iface);
+ FIXME("(%p)->(%d %p)\n", This, output, max);
+ return E_NOTIMPL;
+}
+
+static HRESULT WINAPI WMReaderAdvanced_GetMaxStreamSampleSize(IWMReaderAdvanced6 *iface,
WORD stream, DWORD *max)
+{
+ WMReader *This = impl_from_IWMReaderAdvanced6(iface);
+ FIXME("(%p)->(%d %p)\n", This, stream, max);
+ return E_NOTIMPL;
+}
+
+static HRESULT WINAPI WMReaderAdvanced_NotifyLateDelivery(IWMReaderAdvanced6 *iface,
QWORD lateness)
+{
+ WMReader *This = impl_from_IWMReaderAdvanced6(iface);
+ FIXME("(%p)->(%s)\n", This, wine_dbgstr_longlong(lateness));
+ return E_NOTIMPL;
+}
+
+static HRESULT WINAPI WMReaderAdvanced2_SetPlayMode(IWMReaderAdvanced6 *iface,
WMT_PLAY_MODE mode)
+{
+ WMReader *This = impl_from_IWMReaderAdvanced6(iface);
+ FIXME("(%p)->(%d)\n", This, mode);
+ return E_NOTIMPL;
+}
+
+static HRESULT WINAPI WMReaderAdvanced2_GetPlayMode(IWMReaderAdvanced6 *iface,
WMT_PLAY_MODE *mode)
+{
+ WMReader *This = impl_from_IWMReaderAdvanced6(iface);
+ FIXME("(%p)->(%p)\n", This, mode);
+ return E_NOTIMPL;
+}
+
+static HRESULT WINAPI WMReaderAdvanced2_GetBufferProgress(IWMReaderAdvanced6 *iface,
DWORD *percent, QWORD *buffering)
+{
+ WMReader *This = impl_from_IWMReaderAdvanced6(iface);
+ FIXME("(%p)->(%p %p)\n", This, percent, buffering);
+ return E_NOTIMPL;
+}
+
+static HRESULT WINAPI WMReaderAdvanced2_GetDownloadProgress(IWMReaderAdvanced6 *iface,
DWORD *percent,
+ QWORD *bytes_downloaded, QWORD *download)
+{
+ WMReader *This = impl_from_IWMReaderAdvanced6(iface);
+ FIXME("(%p)->(%p %p %p)\n", This, percent, bytes_downloaded, download);
+ return E_NOTIMPL;
+}
+
+static HRESULT WINAPI WMReaderAdvanced2_GetSaveAsProgress(IWMReaderAdvanced6 *iface,
DWORD *percent)
+{
+ WMReader *This = impl_from_IWMReaderAdvanced6(iface);
+ FIXME("(%p)->(%p)\n", This, percent);
+ return E_NOTIMPL;
+}
+
+static HRESULT WINAPI WMReaderAdvanced2_SaveFileAs(IWMReaderAdvanced6 *iface, const WCHAR
*filename)
+{
+ WMReader *This = impl_from_IWMReaderAdvanced6(iface);
+ FIXME("(%p)->(%s)\n", This, debugstr_w(filename));
+ return E_NOTIMPL;
+}
+
+static HRESULT WINAPI WMReaderAdvanced2_GetProtocolName(IWMReaderAdvanced6 *iface, WCHAR
*protocol, DWORD *protocol_len)
+{
+ WMReader *This = impl_from_IWMReaderAdvanced6(iface);
+ FIXME("(%p)->(%p %p)\n", This, protocol, protocol_len);
+ return E_NOTIMPL;
+}
+
+static HRESULT WINAPI WMReaderAdvanced2_StartAtMarker(IWMReaderAdvanced6 *iface, WORD
marker_index,
+ QWORD duration, float rate, void *context)
+{
+ WMReader *This = impl_from_IWMReaderAdvanced6(iface);
+ FIXME("(%p)->(%d %s %f %p)\n", This, marker_index,
wine_dbgstr_longlong(duration), rate, context);
+ return E_NOTIMPL;
+}
+
+static HRESULT WINAPI WMReaderAdvanced2_GetOutputSetting(IWMReaderAdvanced6 *iface, DWORD
output_num,
+ const WCHAR *name, WMT_ATTR_DATATYPE *type, BYTE *value, WORD *length)
+{
+ WMReader *This = impl_from_IWMReaderAdvanced6(iface);
+ FIXME("(%p)->(%d %s %p %p %p)\n", This, output_num, debugstr_w(name),
type, value, length);
+ return E_NOTIMPL;
+}
+
+static HRESULT WINAPI WMReaderAdvanced2_SetOutputSetting(IWMReaderAdvanced6 *iface, DWORD
output_num,
+ const WCHAR *name, WMT_ATTR_DATATYPE type, const BYTE *value, WORD length)
+{
+ WMReader *This = impl_from_IWMReaderAdvanced6(iface);
+ FIXME("(%p)->(%d %s %d %p %d)\n", This, output_num, debugstr_w(name),
type, value, length);
+ return E_NOTIMPL;
+}
+
+static HRESULT WINAPI WMReaderAdvanced2_Preroll(IWMReaderAdvanced6 *iface, QWORD start,
QWORD duration, float rate)
+{
+ WMReader *This = impl_from_IWMReaderAdvanced6(iface);
+ FIXME("(%p)->(%s %s %f)\n", This, wine_dbgstr_longlong(start),
wine_dbgstr_longlong(duration), rate);
+ return E_NOTIMPL;
+}
+
+static HRESULT WINAPI WMReaderAdvanced2_SetLogClientID(IWMReaderAdvanced6 *iface, BOOL
log_client_id)
+{
+ WMReader *This = impl_from_IWMReaderAdvanced6(iface);
+ FIXME("(%p)->(%x)\n", This, log_client_id);
+ return E_NOTIMPL;
+}
+
+static HRESULT WINAPI WMReaderAdvanced2_GetLogClientID(IWMReaderAdvanced6 *iface, BOOL
*log_client_id)
+{
+ WMReader *This = impl_from_IWMReaderAdvanced6(iface);
+ FIXME("(%p)->(%p)\n", This, log_client_id);
+ return E_NOTIMPL;
+}
+
+static HRESULT WINAPI WMReaderAdvanced2_StopBuffering(IWMReaderAdvanced6 *iface)
+{
+ WMReader *This = impl_from_IWMReaderAdvanced6(iface);
+ FIXME("(%p)\n", This);
+ return E_NOTIMPL;
+}
+
+static HRESULT WINAPI WMReaderAdvanced2_OpenStream(IWMReaderAdvanced6 *iface, IStream
*stream,
+ IWMReaderCallback *callback, void *context)
+{
+ WMReader *This = impl_from_IWMReaderAdvanced6(iface);
+ FIXME("(%p)->(%p %p %p)\n", This, stream, callback, context);
+ return E_NOTIMPL;
+}
+
+static HRESULT WINAPI WMReaderAdvanced3_StopNetStreaming(IWMReaderAdvanced6 *iface)
+{
+ WMReader *This = impl_from_IWMReaderAdvanced6(iface);
+ FIXME("(%p)\n", This);
+ return E_NOTIMPL;
+}
+
+static HRESULT WINAPI WMReaderAdvanced3_StartAtPosition(IWMReaderAdvanced6 *iface, WORD
stream_num,
+ void *offset_start, void *duration, WMT_OFFSET_FORMAT format, float rate, void
*context)
+{
+ WMReader *This = impl_from_IWMReaderAdvanced6(iface);
+ FIXME("(%p)->(%d %p %p %d %f %p)\n", This, stream_num, offset_start,
duration, format, rate, context);
+ return E_NOTIMPL;
+}
+
+static HRESULT WINAPI WMReaderAdvanced4_GetLanguageCount(IWMReaderAdvanced6 *iface, DWORD
output_num, WORD *language_count)
+{
+ WMReader *This = impl_from_IWMReaderAdvanced6(iface);
+ FIXME("(%p)->(%d %p)\n", This, output_num, language_count);
+ return E_NOTIMPL;
+}
+
+static HRESULT WINAPI WMReaderAdvanced4_GetLanguage(IWMReaderAdvanced6 *iface, DWORD
output_num,
+ WORD language, WCHAR *language_string, WORD *language_string_len)
+{
+ WMReader *This = impl_from_IWMReaderAdvanced6(iface);
+ FIXME("(%p)->(%d %x %p %p)\n", This, output_num, language,
language_string, language_string_len);
+ return E_NOTIMPL;
+}
+
+static HRESULT WINAPI WMReaderAdvanced4_GetMaxSpeedFactor(IWMReaderAdvanced6 *iface,
double *factor)
+{
+ WMReader *This = impl_from_IWMReaderAdvanced6(iface);
+ FIXME("(%p)->(%p)\n", This, factor);
+ return E_NOTIMPL;
+}
+
+static HRESULT WINAPI WMReaderAdvanced4_IsUsingFastCache(IWMReaderAdvanced6 *iface, BOOL
*using_fast_cache)
+{
+ WMReader *This = impl_from_IWMReaderAdvanced6(iface);
+ FIXME("(%p)->(%p)\n", This, using_fast_cache);
+ return E_NOTIMPL;
+}
+
+static HRESULT WINAPI WMReaderAdvanced4_AddLogParam(IWMReaderAdvanced6 *iface, const
WCHAR *namespace,
+ const WCHAR *name, const WCHAR *value)
+{
+ WMReader *This = impl_from_IWMReaderAdvanced6(iface);
+ FIXME("(%p)->(%s %s %s)\n", This, debugstr_w(namespace),
debugstr_w(name), debugstr_w(value));
+ return E_NOTIMPL;
+}
+
+static HRESULT WINAPI WMReaderAdvanced4_SendLogParams(IWMReaderAdvanced6 *iface)
+{
+ WMReader *This = impl_from_IWMReaderAdvanced6(iface);
+ FIXME("(%p)\n", This);
+ return E_NOTIMPL;
+}
+
+static HRESULT WINAPI WMReaderAdvanced4_CanSaveFileAs(IWMReaderAdvanced6 *iface, BOOL
*can_save)
+{
+ WMReader *This = impl_from_IWMReaderAdvanced6(iface);
+ FIXME("(%p)->(%p)\n", This, can_save);
+ return E_NOTIMPL;
+}
+
+static HRESULT WINAPI WMReaderAdvanced4_CancelSaveFileAs(IWMReaderAdvanced6 *iface)
+{
+ WMReader *This = impl_from_IWMReaderAdvanced6(iface);
+ FIXME("(%p)\n", This);
+ return E_NOTIMPL;
+}
+
+static HRESULT WINAPI WMReaderAdvanced4_GetURL(IWMReaderAdvanced6 *iface, WCHAR *url,
DWORD *url_len)
+{
+ WMReader *This = impl_from_IWMReaderAdvanced6(iface);
+ FIXME("(%p)->(%p %p)\n", This, url, url_len);
+ return E_NOTIMPL;
+}
+
+static HRESULT WINAPI WMReaderAdvanced5_SetPlayerHook(IWMReaderAdvanced6 *iface, DWORD
output_num, IWMPlayerHook *hook)
+{
+ WMReader *This = impl_from_IWMReaderAdvanced6(iface);
+ FIXME("(%p)->(%d %p)\n", This, output_num, hook);
+ return E_NOTIMPL;
+}
+
+static HRESULT WINAPI WMReaderAdvanced6_SetProtextStreamSamples(IWMReaderAdvanced6
*iface, BYTE *cert,
+ DWORD cert_size, DWORD cert_type, DWORD flags, BYTE *initialization_vector, DWORD
*initialization_vector_size)
+{
+ WMReader *This = impl_from_IWMReaderAdvanced6(iface);
+ FIXME("(%p)->(%p %d %d %x %p %p)\n", This, cert, cert_size, cert_type,
flags, initialization_vector,
+ initialization_vector_size);
+ return E_NOTIMPL;
+}
+
+static const IWMReaderAdvanced6Vtbl WMReaderAdvanced6Vtbl = {
+ WMReaderAdvanced_QueryInterface,
+ WMReaderAdvanced_AddRef,
+ WMReaderAdvanced_Release,
+ WMReaderAdvanced_SetUserProvidedClock,
+ WMReaderAdvanced_GetUserProvidedClock,
+ WMReaderAdvanced_DeliverTime,
+ WMReaderAdvanced_SetManualStreamSelection,
+ WMReaderAdvanced_GetManualStreamSelection,
+ WMReaderAdvanced_SetStreamsSelected,
+ WMReaderAdvanced_GetStreamSelected,
+ WMReaderAdvanced_SetReceiveSelectionCallbacks,
+ WMReaderAdvanced_GetReceiveSelectionCallbacks,
+ WMReaderAdvanced_SetReceiveStreamSamples,
+ WMReaderAdvanced_GetReceiveStreamSamples,
+ WMReaderAdvanced_SetAllocateForOutput,
+ WMReaderAdvanced_GetAllocateForOutput,
+ WMReaderAdvanced_SetAllocateForStream,
+ WMReaderAdvanced_GetAllocateForStream,
+ WMReaderAdvanced_GetStatistics,
+ WMReaderAdvanced_SetClientInfo,
+ WMReaderAdvanced_GetMaxOutputSampleSize,
+ WMReaderAdvanced_GetMaxStreamSampleSize,
+ WMReaderAdvanced_NotifyLateDelivery,
+ WMReaderAdvanced2_SetPlayMode,
+ WMReaderAdvanced2_GetPlayMode,
+ WMReaderAdvanced2_GetBufferProgress,
+ WMReaderAdvanced2_GetDownloadProgress,
+ WMReaderAdvanced2_GetSaveAsProgress,
+ WMReaderAdvanced2_SaveFileAs,
+ WMReaderAdvanced2_GetProtocolName,
+ WMReaderAdvanced2_StartAtMarker,
+ WMReaderAdvanced2_GetOutputSetting,
+ WMReaderAdvanced2_SetOutputSetting,
+ WMReaderAdvanced2_Preroll,
+ WMReaderAdvanced2_SetLogClientID,
+ WMReaderAdvanced2_GetLogClientID,
+ WMReaderAdvanced2_StopBuffering,
+ WMReaderAdvanced2_OpenStream,
+ WMReaderAdvanced3_StopNetStreaming,
+ WMReaderAdvanced3_StartAtPosition,
+ WMReaderAdvanced4_GetLanguageCount,
+ WMReaderAdvanced4_GetLanguage,
+ WMReaderAdvanced4_GetMaxSpeedFactor,
+ WMReaderAdvanced4_IsUsingFastCache,
+ WMReaderAdvanced4_AddLogParam,
+ WMReaderAdvanced4_SendLogParams,
+ WMReaderAdvanced4_CanSaveFileAs,
+ WMReaderAdvanced4_CancelSaveFileAs,
+ WMReaderAdvanced4_GetURL,
+ WMReaderAdvanced5_SetPlayerHook,
+ WMReaderAdvanced6_SetProtextStreamSamples
+};
+
+HRESULT WINAPI WMCreateReader(IUnknown *reserved, DWORD rights, IWMReader **ret_reader)
+{
+ WMReader *reader;
+
+ TRACE("(%p, %x, %p)\n", reserved, rights, ret_reader);
+
+ reader = heap_alloc(sizeof(*reader));
+ if(!reader)
+ return E_OUTOFMEMORY;
+
+ reader->IWMReader_iface.lpVtbl = &WMReaderVtbl;
+ reader->IWMReaderAdvanced6_iface.lpVtbl = &WMReaderAdvanced6Vtbl;
+ reader->ref = 1;
+
+ *ret_reader = &reader->IWMReader_iface;
+ return S_OK;
+}
+
+HRESULT WINAPI WMCreateSyncReader(IUnknown *pcert, DWORD rights, IWMSyncReader
**syncreader)
+{
+ FIXME("(%p, %x, %p): stub\n", pcert, rights, syncreader);
+
+ *syncreader = NULL;
+
+ return E_NOTIMPL;
+}
+
+typedef struct {
+ IWMProfileManager IWMProfileManager_iface;
+ LONG ref;
+} WMProfileManager;
+
+static inline WMProfileManager *impl_from_IWMProfileManager(IWMProfileManager *iface)
+{
+ return CONTAINING_RECORD(iface, WMProfileManager, IWMProfileManager_iface);
+}
+
+static HRESULT WINAPI WMProfileManager_QueryInterface(IWMProfileManager *iface, REFIID
riid, void **ppv)
+{
+ WMProfileManager *This = impl_from_IWMProfileManager(iface);
+
+ if(IsEqualGUID(&IID_IUnknown, riid)) {
+ TRACE("(%p)->(IID_IUnknown %p)\n", This, ppv);
+ *ppv = &This->IWMProfileManager_iface;
+ }else if(IsEqualGUID(&IID_IWMProfileManager, riid)) {
+ TRACE("(%p)->(IID_IWMProfileManager %p)\n", This, ppv);
+ *ppv = &This->IWMProfileManager_iface;
+ }else {
+ *ppv = NULL;
+ return E_NOINTERFACE;
+ }
+
+ IUnknown_AddRef((IUnknown*)*ppv);
+ return S_OK;
+}
+
+static ULONG WINAPI WMProfileManager_AddRef(IWMProfileManager *iface)
+{
+ WMProfileManager *This = impl_from_IWMProfileManager(iface);
+ LONG ref = InterlockedIncrement(&This->ref);
+
+ TRACE("(%p) ref=%d\n", This, ref);
+
+ return ref;
+}
+
+static ULONG WINAPI WMProfileManager_Release(IWMProfileManager *iface)
+{
+ WMProfileManager *This = impl_from_IWMProfileManager(iface);
+ LONG ref = InterlockedDecrement(&This->ref);
+
+ TRACE("(%p) ref=%d\n", This, ref);
+
+ if(!ref)
+ heap_free(This);
+
+ return ref;
+}
+
+static HRESULT WINAPI WMProfileManager_CreateEmptyProfile(IWMProfileManager *iface,
WMT_VERSION version, IWMProfile **ret)
+{
+ WMProfileManager *This = impl_from_IWMProfileManager(iface);
+ FIXME("(%p)->(%x %p)\n", This, version, ret);
+ return E_NOTIMPL;
+}
+
+static HRESULT WINAPI WMProfileManager_LoadProfileByID(IWMProfileManager *iface, REFGUID
guid, IWMProfile **ret)
+{
+ WMProfileManager *This = impl_from_IWMProfileManager(iface);
+ FIXME("(%p)->(%s %p)\n", This, debugstr_guid(guid), ret);
+ return E_NOTIMPL;
+}
+
+static HRESULT WINAPI WMProfileManager_LoadProfileByData(IWMProfileManager *iface, const
WCHAR *profile, IWMProfile **ret)
+{
+ WMProfileManager *This = impl_from_IWMProfileManager(iface);
+ FIXME("(%p)->(%s %p)\n", This, debugstr_w(profile), ret);
+ return E_NOTIMPL;
+}
+
+static HRESULT WINAPI WMProfileManager_SaveProfile(IWMProfileManager *iface, IWMProfile
*profile, WCHAR *profile_str, DWORD *len)
+{
+ WMProfileManager *This = impl_from_IWMProfileManager(iface);
+ FIXME("(%p)->(%p %p %p)\n", This, profile, profile_str, len);
+ return E_NOTIMPL;
+}
+
+static HRESULT WINAPI WMProfileManager_GetSystemProfileCount(IWMProfileManager *iface,
DWORD *ret)
+{
+ WMProfileManager *This = impl_from_IWMProfileManager(iface);
+ FIXME("(%p)->(%p)\n", This, ret);
+ return E_NOTIMPL;
+}
+
+static HRESULT WINAPI WMProfileManager_LoadSystemProfile(IWMProfileManager *iface, DWORD
index, IWMProfile **ret)
+{
+ WMProfileManager *This = impl_from_IWMProfileManager(iface);
+ FIXME("(%p)->(%d %p)\n", This, index, ret);
+ return E_NOTIMPL;
+}
+
+static const IWMProfileManagerVtbl WMProfileManagerVtbl = {
+ WMProfileManager_QueryInterface,
+ WMProfileManager_AddRef,
+ WMProfileManager_Release,
+ WMProfileManager_CreateEmptyProfile,
+ WMProfileManager_LoadProfileByID,
+ WMProfileManager_LoadProfileByData,
+ WMProfileManager_SaveProfile,
+ WMProfileManager_GetSystemProfileCount,
+ WMProfileManager_LoadSystemProfile
+};
+
+HRESULT WINAPI WMCreateProfileManager(IWMProfileManager **ret)
+{
+ WMProfileManager *profile_mgr;
+
+ TRACE("(%p)\n", ret);
+
+ profile_mgr = heap_alloc(sizeof(*profile_mgr));
+ if(!profile_mgr)
+ return E_OUTOFMEMORY;
+
+ profile_mgr->IWMProfileManager_iface.lpVtbl = &WMProfileManagerVtbl;
+ profile_mgr->ref = 1;
+
+ *ret = &profile_mgr->IWMProfileManager_iface;
+ return S_OK;
+}
Propchange: trunk/reactos/dll/win32/wmvcore/wmvcore_main.c
------------------------------------------------------------------------------
svn:eol-style = native
Added: trunk/reactos/dll/win32/wmvcore/writer.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/wmvcore/writer.c…
==============================================================================
--- trunk/reactos/dll/win32/wmvcore/writer.c (added)
+++ trunk/reactos/dll/win32/wmvcore/writer.c [iso-8859-1] Sun Oct 25 10:07:44 2015
@@ -0,0 +1,371 @@
+/*
+ * Copyright 2015 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 "wmvcore.h"
+#include "wmsdkidl.h"
+
+#include "wine/debug.h"
+
+WINE_DEFAULT_DEBUG_CHANNEL(wmvcore);
+
+typedef struct {
+ IWMWriter IWMWriter_iface;
+ IWMWriterAdvanced3 IWMWriterAdvanced3_iface;
+ LONG ref;
+} WMWriter;
+
+static inline WMWriter *impl_from_IWMWriter(IWMWriter *iface)
+{
+ return CONTAINING_RECORD(iface, WMWriter, IWMWriter_iface);
+}
+
+static HRESULT WINAPI WMWriter_QueryInterface(IWMWriter *iface, REFIID riid, void **ppv)
+{
+ WMWriter *This = impl_from_IWMWriter(iface);
+
+ if(IsEqualGUID(&IID_IUnknown, riid)) {
+ TRACE("(%p)->(IID_IUnknown %p)\n", This, ppv);
+ *ppv = &This->IWMWriter_iface;
+ }else if(IsEqualGUID(&IID_IWMWriter, riid)) {
+ TRACE("(%p)->(IID_IWMWriter %p)\n", This, ppv);
+ *ppv = &This->IWMWriter_iface;
+ }else if(IsEqualGUID(&IID_IWMWriterAdvanced, riid)) {
+ TRACE("(%p)->(IID_IWMWriterAdvanced %p)\n", This, ppv);
+ *ppv = &This->IWMWriterAdvanced3_iface;
+ }else if(IsEqualGUID(&IID_IWMWriterAdvanced2, riid)) {
+ TRACE("(%p)->(IID_IWMWriterAdvanced2 %p)\n", This, ppv);
+ *ppv = &This->IWMWriterAdvanced3_iface;
+ }else if(IsEqualGUID(&IID_IWMWriterAdvanced3, riid)) {
+ TRACE("(%p)->(IID_IWMWriterAdvanced3 %p)\n", This, ppv);
+ *ppv = &This->IWMWriterAdvanced3_iface;
+ }else {
+ FIXME("Unsupported iface %s\n", debugstr_guid(riid));
+ *ppv = NULL;
+ return E_NOINTERFACE;
+ }
+
+ IUnknown_AddRef((IUnknown*)*ppv);
+ return S_OK;
+}
+
+static ULONG WINAPI WMWriter_AddRef(IWMWriter *iface)
+{
+ WMWriter *This = impl_from_IWMWriter(iface);
+ LONG ref = InterlockedIncrement(&This->ref);
+
+ TRACE("(%p) ref=%d\n", This, ref);
+
+ return ref;
+}
+
+static ULONG WINAPI WMWriter_Release(IWMWriter *iface)
+{
+ WMWriter *This = impl_from_IWMWriter(iface);
+ LONG ref = InterlockedDecrement(&This->ref);
+
+ TRACE("(%p) ref=%d\n", This, ref);
+
+ if(!ref)
+ heap_free(This);
+
+ return ref;
+}
+
+static HRESULT WINAPI WMWriter_SetProfileByID(IWMWriter *iface, REFGUID guidProfile)
+{
+ WMWriter *This = impl_from_IWMWriter(iface);
+ FIXME("(%p)->(%s)\n", This, debugstr_guid(guidProfile));
+ return E_NOTIMPL;
+}
+
+static HRESULT WINAPI WMWriter_SetProfile(IWMWriter *iface, IWMProfile *profile)
+{
+ WMWriter *This = impl_from_IWMWriter(iface);
+ FIXME("(%p)->(%p)\n", This, profile);
+ return E_NOTIMPL;
+}
+
+static HRESULT WINAPI WMWriter_SetOutputFilename(IWMWriter *iface, const WCHAR
*filename)
+{
+ WMWriter *This = impl_from_IWMWriter(iface);
+ FIXME("(%p)->(%s)\n", This, debugstr_w(filename));
+ return E_NOTIMPL;
+}
+
+static HRESULT WINAPI WMWriter_GetInputCount(IWMWriter *iface, DWORD *pcInputs)
+{
+ WMWriter *This = impl_from_IWMWriter(iface);
+ FIXME("(%p)->(%p)\n", This, pcInputs);
+ return E_NOTIMPL;
+}
+
+static HRESULT WINAPI WMWriter_GetInputProps(IWMWriter *iface, DWORD dwInputNum,
IWMInputMediaProps **input)
+{
+ WMWriter *This = impl_from_IWMWriter(iface);
+ FIXME("(%p)->(%d %p)\n", This, dwInputNum, input);
+ return E_NOTIMPL;
+}
+
+static HRESULT WINAPI WMWriter_SetInputProps(IWMWriter *iface, DWORD dwInputNum,
IWMInputMediaProps *input)
+{
+ WMWriter *This = impl_from_IWMWriter(iface);
+ FIXME("(%p)->(%d %p)\n", This, dwInputNum, input);
+ return E_NOTIMPL;
+}
+
+static HRESULT WINAPI WMWriter_GetInputFormatCount(IWMWriter *iface, DWORD dwInputNumber,
DWORD *pcFormat)
+{
+ WMWriter *This = impl_from_IWMWriter(iface);
+ FIXME("(%p)->(%d %p)\n", This, dwInputNumber, pcFormat);
+ return E_NOTIMPL;
+}
+
+static HRESULT WINAPI WMWriter_GetInputFormat(IWMWriter *iface, DWORD dwInputNumber,
DWORD dwFormatNumber,
+ IWMInputMediaProps **props)
+{
+ WMWriter *This = impl_from_IWMWriter(iface);
+ FIXME("(%p)->(%d %d %p)\n", This, dwInputNumber, dwFormatNumber,
props);
+ return E_NOTIMPL;
+}
+
+static HRESULT WINAPI WMWriter_BeginWriting(IWMWriter *iface)
+{
+ WMWriter *This = impl_from_IWMWriter(iface);
+ FIXME("(%p)\n", This);
+ return E_NOTIMPL;
+}
+
+static HRESULT WINAPI WMWriter_EndWriting(IWMWriter *iface)
+{
+ WMWriter *This = impl_from_IWMWriter(iface);
+ FIXME("(%p)\n", This);
+ return E_NOTIMPL;
+}
+
+static HRESULT WINAPI WMWriter_AllocateSample(IWMWriter *iface, DWORD size, INSSBuffer
**sample)
+{
+ WMWriter *This = impl_from_IWMWriter(iface);
+ FIXME("(%p)->(%d %p)\n", This, size, sample);
+ return E_NOTIMPL;
+}
+
+static HRESULT WINAPI WMWriter_WriteSample(IWMWriter *iface, DWORD dwInputNum, QWORD
cnsSampleTime,
+ DWORD flags, INSSBuffer *sample)
+{
+ WMWriter *This = impl_from_IWMWriter(iface);
+ FIXME("(%p)->(%d %s %x %p)\n", This, dwInputNum,
wine_dbgstr_longlong(cnsSampleTime), flags, sample);
+ return E_NOTIMPL;
+}
+
+static HRESULT WINAPI WMWriter_Flush(IWMWriter *iface)
+{
+ WMWriter *This = impl_from_IWMWriter(iface);
+ FIXME("(%p)\n", This);
+ return E_NOTIMPL;
+}
+
+static const IWMWriterVtbl WMWriterVtbl = {
+ WMWriter_QueryInterface,
+ WMWriter_AddRef,
+ WMWriter_Release,
+ WMWriter_SetProfileByID,
+ WMWriter_SetProfile,
+ WMWriter_SetOutputFilename,
+ WMWriter_GetInputCount,
+ WMWriter_GetInputProps,
+ WMWriter_SetInputProps,
+ WMWriter_GetInputFormatCount,
+ WMWriter_GetInputFormat,
+ WMWriter_BeginWriting,
+ WMWriter_EndWriting,
+ WMWriter_AllocateSample,
+ WMWriter_WriteSample,
+ WMWriter_Flush
+};
+
+static inline WMWriter *impl_from_IWMWriterAdvanced3(IWMWriterAdvanced3 *iface)
+{
+ return CONTAINING_RECORD(iface, WMWriter, IWMWriterAdvanced3_iface);
+}
+
+static HRESULT WINAPI WMWriterAdvanced_QueryInterface(IWMWriterAdvanced3 *iface, REFIID
riid, void **ppv)
+{
+ WMWriter *This = impl_from_IWMWriterAdvanced3(iface);
+ return IWMWriter_QueryInterface(&This->IWMWriter_iface, riid, ppv);
+}
+
+static ULONG WINAPI WMWriterAdvanced_AddRef(IWMWriterAdvanced3 *iface)
+{
+ WMWriter *This = impl_from_IWMWriterAdvanced3(iface);
+ return IWMWriter_AddRef(&This->IWMWriter_iface);
+}
+
+static ULONG WINAPI WMWriterAdvanced_Release(IWMWriterAdvanced3 *iface)
+{
+ WMWriter *This = impl_from_IWMWriterAdvanced3(iface);
+ return IWMWriter_Release(&This->IWMWriter_iface);
+}
+
+static HRESULT WINAPI WMWriterAdvanced_GetSinkCount(IWMWriterAdvanced3 *iface, DWORD
*sinks)
+{
+ WMWriter *This = impl_from_IWMWriterAdvanced3(iface);
+ FIXME("(%p)->(%p)\n", This, sinks);
+ return E_NOTIMPL;
+}
+
+static HRESULT WINAPI WMWriterAdvanced_GetSink(IWMWriterAdvanced3 *iface, DWORD sink_num,
IWMWriterSink **sink)
+{
+ WMWriter *This = impl_from_IWMWriterAdvanced3(iface);
+ FIXME("(%p)->(%u %p)\n", This, sink_num, sink);
+ return E_NOTIMPL;
+}
+
+static HRESULT WINAPI WMWriterAdvanced_AddSink(IWMWriterAdvanced3 *iface, IWMWriterSink
*sink)
+{
+ WMWriter *This = impl_from_IWMWriterAdvanced3(iface);
+ FIXME("(%p)->(%p)\n", This, sink);
+ return E_NOTIMPL;
+}
+
+static HRESULT WINAPI WMWriterAdvanced_RemoveSink(IWMWriterAdvanced3 *iface,
IWMWriterSink *sink)
+{
+ WMWriter *This = impl_from_IWMWriterAdvanced3(iface);
+ FIXME("(%p)->(%p)\n", This, sink);
+ return E_NOTIMPL;
+}
+
+static HRESULT WINAPI WMWriterAdvanced_WriteStreamSample(IWMWriterAdvanced3 *iface, WORD
stream_num,
+ QWORD sample_time, DWORD sample_send_time, QWORD sample_duration, DWORD flags,
INSSBuffer *sample)
+{
+ WMWriter *This = impl_from_IWMWriterAdvanced3(iface);
+ FIXME("(%p)->(%u %s %u %s %x %p)\n", This, stream_num,
wine_dbgstr_longlong(sample_time),
+ sample_send_time, wine_dbgstr_longlong(sample_duration), flags, sample);
+ return E_NOTIMPL;
+}
+
+static HRESULT WINAPI WMWriterAdvanced_SetLiveSource(IWMWriterAdvanced3 *iface, BOOL
is_live_source)
+{
+ WMWriter *This = impl_from_IWMWriterAdvanced3(iface);
+ FIXME("(%p)->(%x)\n", This, is_live_source);
+ return E_NOTIMPL;
+}
+
+static HRESULT WINAPI WMWriterAdvanced_IsRealTime(IWMWriterAdvanced3 *iface, BOOL
*real_time)
+{
+ WMWriter *This = impl_from_IWMWriterAdvanced3(iface);
+ FIXME("(%p)->(%p)\n", This, real_time);
+ return E_NOTIMPL;
+}
+
+static HRESULT WINAPI WMWriterAdvanced_GetWriterTime(IWMWriterAdvanced3 *iface, QWORD
*current_time)
+{
+ WMWriter *This = impl_from_IWMWriterAdvanced3(iface);
+ FIXME("(%p)->(%p)\n", This, current_time);
+ return E_NOTIMPL;
+}
+
+static HRESULT WINAPI WMWriterAdvanced_GetStatistics(IWMWriterAdvanced3 *iface, WORD
stream_num, WM_WRITER_STATISTICS *stats)
+{
+ WMWriter *This = impl_from_IWMWriterAdvanced3(iface);
+ FIXME("(%p)->(%u %p)\n", This, stream_num, stats);
+ return E_NOTIMPL;
+}
+
+static HRESULT WINAPI WMWriterAdvanced_SetSyncTolerance(IWMWriterAdvanced3 *iface, DWORD
window)
+{
+ WMWriter *This = impl_from_IWMWriterAdvanced3(iface);
+ FIXME("(%p)->(%u)\n", This, window);
+ return E_NOTIMPL;
+}
+
+static HRESULT WINAPI WMWriterAdvanced_GetSyncTolerance(IWMWriterAdvanced3 *iface, DWORD
*window)
+{
+ WMWriter *This = impl_from_IWMWriterAdvanced3(iface);
+ FIXME("(%p)->(%p)\n", This, window);
+ return E_NOTIMPL;
+}
+
+static HRESULT WINAPI WMWriterAdvanced2_GetInputSetting(IWMWriterAdvanced3 *iface, DWORD
input_num,
+ const WCHAR *name, WMT_ATTR_DATATYPE *time, BYTE *value, WORD *length)
+{
+ WMWriter *This = impl_from_IWMWriterAdvanced3(iface);
+ FIXME("(%p)->(%u %s %p %p %p)\n", This, input_num, debugstr_w(name),
time, value, length);
+ return E_NOTIMPL;
+}
+
+static HRESULT WINAPI WMWriterAdvanced2_SetInputSetting(IWMWriterAdvanced3 *iface, DWORD
input_num,
+ const WCHAR *name, WMT_ATTR_DATATYPE type, const BYTE *value, WORD length)
+{
+ WMWriter *This = impl_from_IWMWriterAdvanced3(iface);
+ FIXME("(%p)->(%u %s %d %p %u)\n", This, input_num, debugstr_w(name),
type, value, length);
+ return E_NOTIMPL;
+}
+
+static HRESULT WINAPI WMWriterAdvanced3_GetStatisticsEx(IWMWriterAdvanced3 *iface, WORD
stream_num,
+ WM_WRITER_STATISTICS_EX *stats)
+{
+ WMWriter *This = impl_from_IWMWriterAdvanced3(iface);
+ FIXME("(%p)->(%u %p)\n", This, stream_num, stats);
+ return E_NOTIMPL;
+}
+
+static HRESULT WINAPI WMWriterAdvanced3_SetNonBlocking(IWMWriterAdvanced3 *iface)
+{
+ WMWriter *This = impl_from_IWMWriterAdvanced3(iface);
+ FIXME("(%p)\n", This);
+ return E_NOTIMPL;
+}
+
+static const IWMWriterAdvanced3Vtbl WMWriterAdvanced3Vtbl = {
+ WMWriterAdvanced_QueryInterface,
+ WMWriterAdvanced_AddRef,
+ WMWriterAdvanced_Release,
+ WMWriterAdvanced_GetSinkCount,
+ WMWriterAdvanced_GetSink,
+ WMWriterAdvanced_AddSink,
+ WMWriterAdvanced_RemoveSink,
+ WMWriterAdvanced_WriteStreamSample,
+ WMWriterAdvanced_SetLiveSource,
+ WMWriterAdvanced_IsRealTime,
+ WMWriterAdvanced_GetWriterTime,
+ WMWriterAdvanced_GetStatistics,
+ WMWriterAdvanced_SetSyncTolerance,
+ WMWriterAdvanced_GetSyncTolerance,
+ WMWriterAdvanced2_GetInputSetting,
+ WMWriterAdvanced2_SetInputSetting,
+ WMWriterAdvanced3_GetStatisticsEx,
+ WMWriterAdvanced3_SetNonBlocking
+};
+
+HRESULT WINAPI WMCreateWriter(IUnknown *reserved, IWMWriter **writer)
+{
+ WMWriter *ret;
+
+ TRACE("(%p %p)\n", reserved, writer);
+
+ ret = heap_alloc(sizeof(*ret));
+ if(!ret)
+ return E_OUTOFMEMORY;
+
+ ret->IWMWriter_iface.lpVtbl = &WMWriterVtbl;
+ ret->IWMWriterAdvanced3_iface.lpVtbl = &WMWriterAdvanced3Vtbl;
+ ret->ref = 1;
+
+ *writer = &ret->IWMWriter_iface;
+ return S_OK;
+}
Propchange: trunk/reactos/dll/win32/wmvcore/writer.c
------------------------------------------------------------------------------
svn:eol-style = native
Modified: trunk/reactos/media/doc/README.WINE
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/media/doc/README.WINE?rev=…
==============================================================================
--- trunk/reactos/media/doc/README.WINE [iso-8859-1] (original)
+++ trunk/reactos/media/doc/README.WINE [iso-8859-1] Sun Oct 25 10:07:44 2015
@@ -216,6 +216,7 @@
reactos/dll/win32/wldap32 # Synced to WineStaging-1.7.47
reactos/dll/win32/wmi # Synced to WineStaging-1.7.47
reactos/dll/win32/wmiutils # Synced to WineStaging-1.7.47
+reactos/dll/win32/wmvcore # Synced to WineStaging-1.7.47
reactos/dll/win32/wshom.ocx # Synced to WineStaging-1.7.47
reactos/dll/win32/wtsapi32 # Synced to WineStaging-1.7.47
reactos/dll/win32/wuapi # Synced to WineStaging-1.7.47