Something went wrong. Try again.
Reactos
Something went wrong. Try again.
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131/* * COPYRIGHT: See COPYING in the top level directory * PROJECT: ReactOS DirectX * FILE: dll/directx/ddraw/Kernel/kernel_stubs.c * PURPOSE: IDirectDrawKernel and IDirectDrawSurfaceKernel Implementation * PROGRAMMER: Maarten Bosma * */
#include "rosdraw.h"
/***** IDirectDrawKernel ****/
ULONG WINAPIDirectDrawKernel_AddRef ( LPDIRECTDRAWKERNEL iface){ DX_WINDBG_trace();
DX_STUB;}
ULONG WINAPIDirectDrawKernel_Release ( LPDIRECTDRAWKERNEL iface){ DX_WINDBG_trace();
DX_STUB;}
HRESULT WINAPIDirectDrawKernel_QueryInterface ( LPDIRECTDRAWKERNEL iface, REFIID riid, LPVOID* ppvObj){ DX_WINDBG_trace(); DX_STUB;}
HRESULT WINAPIDirectDrawKernel_GetKernelHandle ( LPDIRECTDRAWKERNEL iface, ULONG* handle){ DX_WINDBG_trace(); DX_STUB;}
HRESULT WINAPIDirectDrawKernel_ReleaseKernelHandle ( LPDIRECTDRAWKERNEL iface){ DX_WINDBG_trace(); DX_STUB;}
ULONG WINAPIDDSurfaceKernel_AddRef ( LPDIRECTDRAWSURFACEKERNEL iface){ LPDDRAWI_DDKERNELSURFACE_INT This = (LPDDRAWI_DDKERNELSURFACE_INT)iface;
DX_WINDBG_trace();
if (iface!=NULL) { This->dwIntRefCnt++; //This->lpLcl->dwLocalRefCnt++;
//if (This->lpLcl->lpGbl != NULL) //{ // This->lpLcl->lpGbl->dwRefCnt++; //} } return This->dwIntRefCnt;}
ULONG WINAPIDDSurfaceKernel_Release ( LPDIRECTDRAWSURFACEKERNEL iface){ LPDDRAWI_DDKERNELSURFACE_INT This = (LPDDRAWI_DDKERNELSURFACE_INT)iface;
DX_WINDBG_trace(); /* FIXME This is not right exiame how it should be done */ DX_STUB_str("FIXME This is not right exiame how it should be done\n"); return This->dwIntRefCnt;}
HRESULT WINAPIDDSurfaceKernel_QueryInterface ( LPDIRECTDRAWSURFACEKERNEL iface, REFIID riid, LPVOID* ppvObj){ DX_WINDBG_trace(); DX_STUB;}
HRESULT WINAPIDDSurfaceKernel_GetKernelHandle ( LPDIRECTDRAWSURFACEKERNEL iface, ULONG* handle){ DX_WINDBG_trace(); DX_STUB;}
HRESULT WINAPIDDSurfaceKernel_ReleaseKernelHandle ( LPDIRECTDRAWSURFACEKERNEL iface){ DX_WINDBG_trace(); DX_STUB;}
IDirectDrawKernelVtbl DirectDrawKernel_Vtable ={ DirectDrawKernel_QueryInterface, DirectDrawKernel_AddRef, DirectDrawKernel_Release, DirectDrawKernel_GetKernelHandle, DirectDrawKernel_ReleaseKernelHandle};
IDirectDrawSurfaceKernelVtbl DirectDrawSurfaceKernel_Vtable ={ DDSurfaceKernel_QueryInterface, DDSurfaceKernel_AddRef, DDSurfaceKernel_Release, DDSurfaceKernel_GetKernelHandle, DDSurfaceKernel_ReleaseKernelHandle};