Remove hwnd and hdc, so it being store to right struct.
[reactos.git] / reactos / lib / ddraw / main / kernel_main.c
1 /* $Id$
2 *
3 * COPYRIGHT: See COPYING in the top level directory
4 * PROJECT: ReactOS
5 * FILE: lib/ddraw/main/kernel.c
6 * PURPOSE: IDirectDrawKernel and IDirectDrawSurfaceKernel Implementation
7 * PROGRAMMER: Maarten Bosma
8 *
9 */
10
11 #include "rosdraw.h"
12
13
14 /***** IDirectDrawKernel ****/
15
16 ULONG WINAPI Main_DirectDrawKernel_AddRef (LPDIRECTDRAWKERNEL iface)
17 {
18 return 1;
19 }
20
21 ULONG WINAPI Main_DirectDrawKernel_Release (LPDIRECTDRAWKERNEL iface)
22 {
23 return 0;
24 }
25
26 HRESULT WINAPI Main_DirectDrawKernel_QueryInterface (LPDIRECTDRAWKERNEL iface, REFIID riid, LPVOID* ppvObj)
27 {
28 return E_NOINTERFACE;
29 }
30
31 HRESULT WINAPI Main_DirectDrawKernel_GetKernelHandle (LPDIRECTDRAWKERNEL iface, ULONG* handle)
32 {
33 DX_STUB;
34 }
35
36 HRESULT WINAPI Main_DirectDrawKernel_ReleaseKernelHandle (LPDIRECTDRAWKERNEL iface)
37 {
38 DX_STUB;
39 }
40
41
42 /***** IDirectDrawSurfaceKernel ****/
43
44 ULONG WINAPI Main_DDSurfaceKernel_AddRef (LPDIRECTDRAWSURFACEKERNEL iface)
45 {
46 return 1;
47 }
48
49 ULONG WINAPI Main_DDSurfaceKernel_Release (LPDIRECTDRAWSURFACEKERNEL iface)
50 {
51 return 0;
52 }
53
54 HRESULT WINAPI Main_DDSurfaceKernel_QueryInterface (LPDIRECTDRAWSURFACEKERNEL iface, REFIID riid, LPVOID* ppvObj)
55 {
56 return E_NOINTERFACE;
57 }
58
59 HRESULT WINAPI Main_DDSurfaceKernel_GetKernelHandle (LPDIRECTDRAWSURFACEKERNEL iface, ULONG* handle)
60 {
61 DX_STUB;
62 }
63
64 HRESULT WINAPI Main_DDSurfaceKernel_ReleaseKernelHandle (LPDIRECTDRAWSURFACEKERNEL iface)
65 {
66 DX_STUB;
67 }
68
69
70 IDirectDrawKernelVtbl DirectDrawKernel_Vtable =
71 {
72 Main_DirectDrawKernel_QueryInterface,
73 Main_DirectDrawKernel_AddRef,
74 Main_DirectDrawKernel_Release,
75 Main_DirectDrawKernel_GetKernelHandle,
76 Main_DirectDrawKernel_ReleaseKernelHandle
77 };
78
79 IDirectDrawSurfaceKernelVtbl DirectDrawSurfaceKernel_Vtable =
80 {
81 Main_DDSurfaceKernel_QueryInterface,
82 Main_DDSurfaceKernel_AddRef,
83 Main_DDSurfaceKernel_Release,
84 Main_DDSurfaceKernel_GetKernelHandle,
85 Main_DDSurfaceKernel_ReleaseKernelHandle
86 };