mirror of
https://github.com/reactos/reactos.git
synced 2024-12-27 09:34:43 +00:00
Define COM-Interfaces for IDirectDrawKernel and SurfaceKernel and add a little typedef.
svn path=/trunk/; revision=18841
This commit is contained in:
parent
6ea94e6059
commit
53eca0bb47
2 changed files with 28 additions and 0 deletions
|
@ -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
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue