ReactOS 0.4.15-dev-7958-gcd0bb1a
d3drmwin.h
Go to the documentation of this file.
1/*
2 * Copyright (C) 2010 Vijay Kiran Kamuju
3 *
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2.1 of the License, or (at your option) any later version.
8 *
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
13 *
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library; if not, write to the Free Software
16 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
17 */
18
19#ifndef __D3DRMWIN_H__
20#define __D3DRMWIN_H__
21
22#include <d3drm.h>
23#include <ddraw.h>
24#include <d3d.h>
25
26#ifdef __cplusplus
27extern "C" {
28#endif
29
30/*****************************************************************************
31 * Direct3DRMWinDevice interface GUID
32 */
33
34DEFINE_GUID(IID_IDirect3DRMWinDevice, 0xc5016cc0, 0xd273, 0x11ce, 0xac, 0x48, 0x00, 0x00, 0xc0, 0x38, 0x25, 0xa1);
35
36typedef struct IDirect3DRMWinDevice *LPDIRECT3DRMWINDEVICE, **LPLPDIRECT3DRMWINDEVICE;
37
38/*****************************************************************************
39 * IDirect3DRMWinDevice interface
40 */
41#define INTERFACE IDirect3DRMWinDevice
42DECLARE_INTERFACE_(IDirect3DRMWinDevice,IDirect3DRMObject)
43{
44 /*** IUnknown methods ***/
48 /*** IDirect3DRMObject methods ***/
49 STDMETHOD(Clone)(THIS_ IUnknown *outer, REFIID iid, void **out) PURE;
50 STDMETHOD(AddDestroyCallback)(THIS_ D3DRMOBJECTCALLBACK cb, void *ctx) PURE;
51 STDMETHOD(DeleteDestroyCallback)(THIS_ D3DRMOBJECTCALLBACK cb, void *ctx) PURE;
52 STDMETHOD(SetAppData)(THIS_ DWORD data) PURE;
53 STDMETHOD_(DWORD, GetAppData)(THIS) PURE;
54 STDMETHOD(SetName)(THIS_ const char *name) PURE;
57 /*** IDirect3DRMWinDevice methods ***/
58 STDMETHOD(HandlePaint)(THIS_ HDC) PURE;
59 STDMETHOD(HandleActivate)(THIS_ WORD) PURE;
60};
61#undef INTERFACE
62
63#if !defined(__cplusplus) || defined(CINTERFACE)
64/*** IUnknown methods ***/
65#define IDirect3DRMWinDevice_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
66#define IDirect3DRMWinDevice_AddRef(p) (p)->lpVtbl->AddRef(p)
67#define IDirect3DRMWinDevice_Release(p) (p)->lpVtbl->Release(p)
68/*** IDirect3DRMObject methods ***/
69#define IDirect3DRMWinDevice_Clone(p,a,b,c) (p)->lpVtbl->Clone(p,a,b,c)
70#define IDirect3DRMWinDevice_AddDestroyCallback(p,a,b) (p)->lpVtbl->AddDestroyCallback(p,a,b)
71#define IDirect3DRMWinDevice_DeleteDestroyCallback(p,a,b) (p)->lpVtbl->DeleteDestroyCallback(p,a,b)
72#define IDirect3DRMWinDevice_SetAppData(p,a) (p)->lpVtbl->SetAppData(p,a)
73#define IDirect3DRMWinDevice_GetAppData(p) (p)->lpVtbl->GetAppData(p)
74#define IDirect3DRMWinDevice_SetName(p,a) (p)->lpVtbl->SetName(p,a)
75#define IDirect3DRMWinDevice_GetName(p,a,b) (p)->lpVtbl->GetName(p,a,b)
76#define IDirect3DRMWinDevice_GetClassName(p,a,b) (p)->lpVtbl->GetClassName(p,a,b)
77/*** IDirect3DRMWinDevice methods ***/
78#define IDirect3DRMWinDevice_HandlePaint(p,a) (p)->lpVtbl->HandlePaint(p,a)
79#define IDirect3DRMWinDevice_HandleActivate(p,a) (p)->lpVtbl->HandleActivate(p,a)
80#else
81/*** IUnknown methods ***/
82#define IDirect3DRMWinDevice_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
83#define IDirect3DRMWinDevice_AddRef(p) (p)->AddRef()
84#define IDirect3DRMwinDevice_Release(p) (p)->Release()
85/*** IDirect3DRMObject methods ***/
86#define IDirect3DRMWinDevice_Clone(p,a,b,c) (p)->Clone(a,b,c)
87#define IDirect3DRMWinDevice_AddDestroyCallback(p,a,b) (p)->AddDestroyCallback(a,b)
88#define IDirect3DRMWinDevice_DeleteDestroyCallback(p,a,b) (p)->DeleteDestroyCallback(a,b)
89#define IDirect3DRMWinDevice_SetAppData(p,a) (p)->SetAppData(a)
90#define IDirect3DRMWinDevice_GetAppData(p) (p)->GetAppData()
91#define IDirect3DRMWinDevice_SetName(p,a) (p)->SetName(a)
92#define IDirect3DRMWinDevice_GetName(p,a,b) (p)->GetName(a,b)
93#define IDirect3DRMWinDevice_GetClassName(p,a,b) (p)->GetClassName(a,b)
94/*** IDirect3DRMWinDevice methods ***/
95#define IDirect3DRMWinDevice_HandlePaint(p,a) (p)->HandlePaint(a)
96#define IDirect3DRMWinDevice_HandleActivate(p,a) (p)->HandleActivate(a)
97#endif
98
99#ifdef __cplusplus
100}
101#endif
102
103#endif /* __D3DRMWIN_H__ */
#define DECLARE_INTERFACE_(i, b)
Definition: basetyps.h:78
#define PURE
Definition: basetyps.h:64
#define THIS_
Definition: basetyps.h:65
#define THIS
Definition: basetyps.h:66
#define STDMETHOD_(t, m)
Definition: basetyps.h:63
#define STDMETHOD(m)
Definition: basetyps.h:62
_In_ BOOLEAN Release
Definition: cdrom.h:920
void(__cdecl * D3DRMOBJECTCALLBACK)(struct IDirect3DRMObject *obj, void *arg)
Definition: d3drmobj.h:157
struct IDirect3DRMWinDevice ** LPLPDIRECT3DRMWINDEVICE
Definition: d3drmwin.h:36
struct IDirect3DRMWinDevice * LPDIRECT3DRMWINDEVICE
Definition: d3drmwin.h:36
static HRESULT GetName(LPSHELLFOLDER lpsf, LPITEMIDLIST pidl, DWORD dwFlags, LPWSTR lpstrFileName)
Definition: filedlg.c:4527
unsigned long DWORD
Definition: ntddk_ex.h:95
unsigned short WORD
Definition: ntddk_ex.h:93
GLint GLenum GLsizei GLsizei GLsizei GLint GLsizei const GLvoid * data
Definition: gl.h:1950
GLsizeiptr size
Definition: glext.h:5919
REFIID riid
Definition: atlbase.h:39
static HDC
Definition: imagelist.c:92
static HMODULE MODULEINFO DWORD cb
Definition: module.c:33
static HRESULT QueryInterface(REFIID, void **)
Definition: events.c:2587
static ULONG WINAPI AddRef(IStream *iface)
Definition: clist.c:90
#define DEFINE_GUID(name, l, w1, w2, b1, b2, b3, b4, b5, b6, b7, b8)
Definition: guiddef.h:68
#define REFIID
Definition: guiddef.h:118
static FILE * out
Definition: regtests2xml.c:44
Definition: name.c:39
uint32_t ULONG
Definition: typedefs.h:59
_In_ void _In_ PCCERT_CONTEXT _In_opt_ LPFILETIME _In_ DWORD _In_ DWORD _Outptr_opt_ void ** ppvObject
Definition: wincrypt.h:6082
#define GetClassName
Definition: winuser.h:5783