ReactOS  0.4.14-dev-358-gbef841c
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 
33  REFIID riid,
34  LPVOID* ppvObj)
35 {
37  DX_STUB;
38 }
39 
42  ULONG* handle)
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 
91  REFIID riid,
92  LPVOID* ppvObj)
93 {
95  DX_STUB;
96 }
97 
100  ULONG* handle)
101 {
102  DX_WINDBG_trace();
103  DX_STUB;
104 }
105 
108 {
109  DX_WINDBG_trace();
110  DX_STUB;
111 }
112 
113 
114 IDirectDrawKernelVtbl DirectDrawKernel_Vtable =
115 {
121 };
122 
123 IDirectDrawSurfaceKernelVtbl DirectDrawSurfaceKernel_Vtable =
124 {
130 };
#define DX_WINDBG_trace()
Definition: rosdraw.h:262
HRESULT WINAPI DDSurfaceKernel_QueryInterface(LPDIRECTDRAWSURFACEKERNEL iface, REFIID riid, LPVOID *ppvObj)
Definition: kernel_stubs.c:90
struct _DDRAWI_DDKERNELSURFACE_INT * LPDDRAWI_DDKERNELSURFACE_INT
#define REFIID
Definition: guiddef.h:118
ULONG WINAPI DDSurfaceKernel_AddRef(LPDIRECTDRAWSURFACEKERNEL iface)
Definition: kernel_stubs.c:57
REFIID riid
Definition: precomp.h:44
#define DX_STUB_str(x)
Definition: rosdraw.h:254
HRESULT WINAPI DirectDrawKernel_QueryInterface(LPDIRECTDRAWKERNEL iface, REFIID riid, LPVOID *ppvObj)
Definition: kernel_stubs.c:32
ULONG WINAPI DirectDrawKernel_Release(LPDIRECTDRAWKERNEL iface)
Definition: kernel_stubs.c:24
IDirectDrawSurfaceKernelVtbl DirectDrawSurfaceKernel_Vtable
Definition: kernel_stubs.c:123
IDirectDrawKernelVtbl DirectDrawKernel_Vtable
Definition: kernel_stubs.c:114
HRESULT WINAPI DDSurfaceKernel_GetKernelHandle(LPDIRECTDRAWSURFACEKERNEL iface, ULONG *handle)
Definition: kernel_stubs.c:99
smooth NULL
Definition: ftsmooth.c:416
LONG HRESULT
Definition: typedefs.h:77
struct IDirectDrawKernel * LPDIRECTDRAWKERNEL
Definition: ddkernel.h:61
#define WINAPI
Definition: msvc.h:8
#define DX_STUB
Definition: rosdraw.h:224
HRESULT WINAPI DirectDrawKernel_GetKernelHandle(LPDIRECTDRAWKERNEL iface, ULONG *handle)
Definition: kernel_stubs.c:41
HRESULT WINAPI DDSurfaceKernel_ReleaseKernelHandle(LPDIRECTDRAWSURFACEKERNEL iface)
Definition: kernel_stubs.c:107
unsigned int ULONG
Definition: retypes.h:1
struct IDirectDrawSurfaceKernel * LPDIRECTDRAWSURFACEKERNEL
Definition: ddkernel.h:62
ULONG WINAPI DirectDrawKernel_AddRef(LPDIRECTDRAWKERNEL iface)
Definition: kernel_stubs.c:16
ULONG WINAPI DDSurfaceKernel_Release(LPDIRECTDRAWSURFACEKERNEL iface)
Definition: kernel_stubs.c:77
HRESULT WINAPI DirectDrawKernel_ReleaseKernelHandle(LPDIRECTDRAWKERNEL iface)
Definition: kernel_stubs.c:49