ReactOS 0.4.16-dev-91-g764881a
kernel_stubs.c
Go to the documentation of this file.
1/*
2 * COPYRIGHT: See COPYING in the top level directory
3 * PROJECT: ReactOS DirectX
4 * FILE: dll/directx/ddraw/Kernel/kernel_stubs.c
5 * PURPOSE: IDirectDrawKernel and IDirectDrawSurfaceKernel Implementation
6 * PROGRAMMER: Maarten Bosma
7 *
8 */
9
10#include "rosdraw.h"
11
12
13/***** IDirectDrawKernel ****/
14
17{
19
20 DX_STUB;
21}
22
25{
27
28 DX_STUB;
29}
30
34 LPVOID* ppvObj)
35{
37 DX_STUB;
38}
39
43{
45 DX_STUB;
46}
47
50{
52 DX_STUB;
53}
54
55
58{
60
62
63 if (iface!=NULL)
64 {
65 This->dwIntRefCnt++;
66 //This->lpLcl->dwLocalRefCnt++;
67
68 //if (This->lpLcl->lpGbl != NULL)
69 //{
70 // This->lpLcl->lpGbl->dwRefCnt++;
71 //}
72 }
73 return This->dwIntRefCnt;
74}
75
78{
80
82 /* FIXME
83 This is not right exiame how it should be done
84 */
85 DX_STUB_str("FIXME This is not right exiame how it should be done\n");
86 return This->dwIntRefCnt;
87}
88
92 LPVOID* ppvObj)
93{
95 DX_STUB;
96}
97
100 ULONG* handle)
101{
103 DX_STUB;
104}
105
108{
110 DX_STUB;
111}
112
113
114IDirectDrawKernelVtbl DirectDrawKernel_Vtable =
115{
121};
122
123IDirectDrawSurfaceKernelVtbl DirectDrawSurfaceKernel_Vtable =
124{
130};
struct IDirectDrawKernel * LPDIRECTDRAWKERNEL
Definition: ddkernel.h:61
struct IDirectDrawSurfaceKernel * LPDIRECTDRAWSURFACEKERNEL
Definition: ddkernel.h:62
#define NULL
Definition: types.h:112
REFIID riid
Definition: atlbase.h:39
HRESULT WINAPI DDSurfaceKernel_QueryInterface(LPDIRECTDRAWSURFACEKERNEL iface, REFIID riid, LPVOID *ppvObj)
Definition: kernel_stubs.c:90
ULONG WINAPI DirectDrawKernel_Release(LPDIRECTDRAWKERNEL iface)
Definition: kernel_stubs.c:24
HRESULT WINAPI DirectDrawKernel_ReleaseKernelHandle(LPDIRECTDRAWKERNEL iface)
Definition: kernel_stubs.c:49
HRESULT WINAPI DDSurfaceKernel_GetKernelHandle(LPDIRECTDRAWSURFACEKERNEL iface, ULONG *handle)
Definition: kernel_stubs.c:99
ULONG WINAPI DDSurfaceKernel_AddRef(LPDIRECTDRAWSURFACEKERNEL iface)
Definition: kernel_stubs.c:57
ULONG WINAPI DDSurfaceKernel_Release(LPDIRECTDRAWSURFACEKERNEL iface)
Definition: kernel_stubs.c:77
IDirectDrawSurfaceKernelVtbl DirectDrawSurfaceKernel_Vtable
Definition: kernel_stubs.c:123
IDirectDrawKernelVtbl DirectDrawKernel_Vtable
Definition: kernel_stubs.c:114
HRESULT WINAPI DirectDrawKernel_GetKernelHandle(LPDIRECTDRAWKERNEL iface, ULONG *handle)
Definition: kernel_stubs.c:41
ULONG WINAPI DirectDrawKernel_AddRef(LPDIRECTDRAWKERNEL iface)
Definition: kernel_stubs.c:16
HRESULT WINAPI DDSurfaceKernel_ReleaseKernelHandle(LPDIRECTDRAWSURFACEKERNEL iface)
Definition: kernel_stubs.c:107
HRESULT WINAPI DirectDrawKernel_QueryInterface(LPDIRECTDRAWKERNEL iface, REFIID riid, LPVOID *ppvObj)
Definition: kernel_stubs.c:32
#define REFIID
Definition: guiddef.h:118
#define DX_STUB_str(x)
Definition: rosdraw.h:254
#define DX_STUB
Definition: rosdraw.h:224
struct _DDRAWI_DDKERNELSURFACE_INT * LPDDRAWI_DDKERNELSURFACE_INT
#define DX_WINDBG_trace()
Definition: rosdraw.h:262
uint32_t ULONG
Definition: typedefs.h:59
#define WINAPI
Definition: msvc.h:6