Stub IDirectDrawKernel and IDirectDrawSurfaceKernel. This where the last two; now we got Stub for every COM-Interface in ddraw.dll.

svn path=/trunk/; revision=18844
This commit is contained in:
Maarten Bosma 2005-10-29 11:05:23 +00:00
parent d33a9b8143
commit 6612001198
2 changed files with 87 additions and 0 deletions

View file

@ -30,6 +30,7 @@
<file>gamma.c</file> <file>gamma.c</file>
<file>palette.c</file> <file>palette.c</file>
<file>videoport.c</file> <file>videoport.c</file>
<file>kernel.c</file>
</directory> </directory>
<directory name="soft"> <directory name="soft">

View file

@ -0,0 +1,86 @@
/* $Id$
*
* COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS
* FILE: lib/ddraw/main/kernel.c
* PURPOSE: IDirectDrawKernel and IDirectDrawSurfaceKernel Implementation
* PROGRAMMER: Maarten Bosma
*
*/
#include "rosdraw.h"
/***** IDirectDrawKernel ****/
ULONG WINAPI Main_DirectDrawKernel_AddRef (LPDIRECTDRAWKERNEL iface)
{
return 1;
}
ULONG WINAPI Main_DirectDrawKernel_Release (LPDIRECTDRAWKERNEL iface)
{
return 0;
}
HRESULT WINAPI Main_DirectDrawKernel_QueryInterface (LPDIRECTDRAWKERNEL iface, REFIID riid, LPVOID* ppvObj)
{
return E_NOINTERFACE;
}
HRESULT WINAPI Main_DirectDrawKernel_GetKernelHandle (LPDIRECTDRAWKERNEL iface, ULONG* handle)
{
DX_STUB;
}
HRESULT WINAPI Main_DirectDrawKernel_ReleaseKernelHandle (LPDIRECTDRAWKERNEL iface)
{
DX_STUB;
}
/***** IDirectDrawSurfaceKernel ****/
ULONG WINAPI Main_DDSurfaceKernel_AddRef (LPDIRECTDRAWSURFACEKERNEL iface)
{
return 1;
}
ULONG WINAPI Main_DDSurfaceKernel_Release (LPDIRECTDRAWSURFACEKERNEL iface)
{
return 0;
}
HRESULT WINAPI Main_DDSurfaceKernel_QueryInterface (LPDIRECTDRAWSURFACEKERNEL iface, REFIID riid, LPVOID* ppvObj)
{
return E_NOINTERFACE;
}
HRESULT WINAPI Main_DDSurfaceKernel_GetKernelHandle (LPDIRECTDRAWSURFACEKERNEL iface, ULONG* handle)
{
DX_STUB;
}
HRESULT WINAPI Main_DDSurfaceKernel_ReleaseKernelHandle (LPDIRECTDRAWSURFACEKERNEL iface)
{
DX_STUB;
}
IDirectDrawKernelVtbl DirectDrawKernel_Vtable =
{
Main_DirectDrawKernel_QueryInterface,
Main_DirectDrawKernel_AddRef,
Main_DirectDrawKernel_Release,
Main_DirectDrawKernel_GetKernelHandle,
Main_DirectDrawKernel_ReleaseKernelHandle
};
IDirectDrawSurfaceKernelVtbl DirectDrawSurfaceKernel_Vtable =
{
Main_DDSurfaceKernel_QueryInterface,
Main_DDSurfaceKernel_AddRef,
Main_DDSurfaceKernel_Release,
Main_DDSurfaceKernel_GetKernelHandle,
Main_DDSurfaceKernel_ReleaseKernelHandle
};