From 53eca0bb471acbc8ccb29d8c969b4da3dc6fdf93 Mon Sep 17 00:00:00 2001 From: Maarten Bosma Date: Sat, 29 Oct 2005 10:33:12 +0000 Subject: [PATCH] Define COM-Interfaces for IDirectDrawKernel and SurfaceKernel and add a little typedef. svn path=/trunk/; revision=18841 --- reactos/w32api/include/ddk/ddkernel.h | 27 +++++++++++++++++++++++++++ reactos/w32api/include/ddk/dvp.h | 1 + 2 files changed, 28 insertions(+) diff --git a/reactos/w32api/include/ddk/ddkernel.h b/reactos/w32api/include/ddk/ddkernel.h index e46e54f31f1..8062ac65451 100644 --- a/reactos/w32api/include/ddk/ddkernel.h +++ b/reactos/w32api/include/ddk/ddkernel.h @@ -51,6 +51,33 @@ typedef struct _DDKERNELCAPS #define DDIRQ_VPORT9_VSYNC 0x00010000 #define DDIRQ_VPORT9_LINE 0x00020000 +#if defined(_WIN32) && !defined(_NO_COM) + +#undef INTERFACE +#define INTERFACE IDirectDrawKernel +DECLARE_INTERFACE_ (IDirectDrawKernel, IUnknown) +{ + STDMETHOD(QueryInterface) (THIS_ REFIID riid, LPVOID* ppvObj) PURE; + STDMETHOD_(ULONG,AddRef) (THIS) PURE; + STDMETHOD_(ULONG,Release) (THIS) PURE; + STDMETHOD(GetKernelHandle) (THIS_ ULONG*) PURE; + STDMETHOD(ReleaseKernelHandle) (THIS) PURE; +}; + +#undef INTERFACE +#define INTERFACE IDirectDrawSurfaceKernel +DECLARE_INTERFACE_ (IDirectDrawSurfaceKernel, IUnknown) +{ + STDMETHOD(QueryInterface) (THIS_ REFIID riid, LPVOID* ppvObj) PURE; + STDMETHOD_(ULONG,AddRef) (THIS) PURE; + STDMETHOD_(ULONG,Release) (THIS) PURE; + STDMETHOD(GetKernelHandle) (THIS_ ULONG*) PURE; + STDMETHOD(ReleaseKernelHandle) (THIS) PURE; +}; + +#undef INTERFACE +#endif // defined(_WIN32) && !defined(_NO_COM) + #ifdef __cplusplus }; #endif diff --git a/reactos/w32api/include/ddk/dvp.h b/reactos/w32api/include/ddk/dvp.h index a729fab9c3e..6c0507ade4f 100644 --- a/reactos/w32api/include/ddk/dvp.h +++ b/reactos/w32api/include/ddk/dvp.h @@ -209,6 +209,7 @@ typedef struct _DDVIDEOPORTNOTIFY *LPDDVIDEOPORTNOTIFY; typedef struct IDirectDrawVideoPort* LPDIRECTDRAWVIDEOPORT; typedef struct IDDVideoPortContainer* LPDDVIDEOPORTCONTAINER; +typedef struct IDirectDrawVideoPortNotify* LPDIRECTDRAWVIDEOPORTNOTIFY; typedef HRESULT (FAR PASCAL * LPDDENUMVIDEOCALLBACK)(LPDDVIDEOPORTCAPS, LPVOID);