dcomp: Add DCompositionCreateDevice2().

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=50357
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Nikolay Sivov 2021-01-14 22:45:04 +03:00 committed by Alexandre Julliard
parent c55dbcdb9a
commit c9a0006e4f
3 changed files with 34 additions and 1 deletions

View File

@ -3,6 +3,7 @@ MODULE = dcomp.dll
EXTRADLLFLAGS = -mno-cygwin EXTRADLLFLAGS = -mno-cygwin
C_SRCS = \ C_SRCS = \
device.c \
main.c main.c
RC_SRCS = version.rc RC_SRCS = version.rc

View File

@ -13,7 +13,7 @@
@ stub CreateEffectDescription @ stub CreateEffectDescription
@ stub DCompositionAttachMouseDragToHwnd @ stub DCompositionAttachMouseDragToHwnd
@ stub DCompositionAttachMouseWheelToHwnd @ stub DCompositionAttachMouseWheelToHwnd
@ stub DCompositionCreateDevice2 @ stdcall DCompositionCreateDevice2(ptr ptr ptr)
@ stub DCompositionCreateDevice3 @ stub DCompositionCreateDevice3
@ stub DCompositionCreateDevice @ stub DCompositionCreateDevice
@ stub DCompositionCreateSurfaceHandle @ stub DCompositionCreateSurfaceHandle

32
dlls/dcomp/device.c Normal file
View File

@ -0,0 +1,32 @@
/*
* Copyright 2020 Nikolay Sivov 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>
#include "windef.h"
#include "winbase.h"
#include "objidl.h"
#include "wine/debug.h"
WINE_DEFAULT_DEBUG_CHANNEL(dcomp);
HRESULT WINAPI DCompositionCreateDevice2(IUnknown *rendering_device, REFIID iid, void **device)
{
FIXME("%p, %s, %p.\n", rendering_device, debugstr_guid(iid), device);
return E_NOTIMPL;
}