msi: Handle features installed as source in MsiQueryFeatureState.
[wine/multimedia.git] / include / d3drmobj.h
blobca32ec92d0d84785836199ae4d73e1121c7722ad
1 /*
2 * Copyright (C) 2008 Vijay Kiran Kamuju
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.
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.
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
19 #ifndef __D3DRMOBJ_H__
20 #define __D3DRMOBJ_H__
22 #include <objbase.h>
23 #define VIRTUAL
24 #include <d3drmdef.h>
25 #include <d3d.h>
27 #ifdef __cplusplus
28 extern "C" {
29 #endif
31 /*****************************************************************************
32 * Predeclare the interfaces
35 DEFINE_GUID(IID_IDirect3DRMObject, 0xeb16cb00, 0xd271, 0x11ce, 0xac, 0x48, 0x00, 0x00, 0xc0, 0x38, 0x25, 0xa1);
36 DEFINE_GUID(IID_IDirect3DRMVisual, 0xeb16cb04, 0xd271, 0x11ce, 0xac, 0x48, 0x00, 0x00, 0xc0, 0x38, 0x25, 0xa1);
38 typedef struct IDirect3DRMObject *LPDIRECT3DRMOBJECT, **LPLPDIRECT3DRMOBJECT;
39 typedef struct IDirect3DRMVisual *LPDIRECT3DRMVISUAL, **LPLPDIRECT3DRMVISUAL;
41 /* ********************************************************************
42 Types and structures
43 ******************************************************************** */
45 typedef void (__cdecl *D3DRMOBJECTCALLBACK)(LPDIRECT3DRMOBJECT obj, LPVOID arg);
47 typedef struct _D3DRMPICKDESC
49 ULONG ulFaceIdx;
50 LONG lGroupIdx;
51 D3DVECTOR vPosition;
52 } D3DRMPICKDESC, *LPD3DRMPICKDESC;
54 typedef struct _D3DRMPICKDESC2
56 ULONG ulFaceIdx;
57 LONG lGroupIdx;
58 D3DVECTOR vPosition;
59 D3DVALUE tu;
60 D3DVALUE tv;
61 D3DVECTOR dvNormal;
62 D3DCOLOR dcColor;
63 } D3DRMPICKDESC2, *LPD3DRMPICKDESC2;
65 /*****************************************************************************
66 * IDirect3DRMObject interface
68 #define INTERFACE IDirect3DRMObject
69 DECLARE_INTERFACE_(IDirect3DRMObject,IUnknown)
71 /*** IUnknown methods ***/
72 STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE;
73 STDMETHOD_(ULONG,AddRef)(THIS) PURE;
74 STDMETHOD_(ULONG,Release)(THIS) PURE;
75 /*** IDirect3DRMObject methods ***/
76 STDMETHOD(Clone)(THIS_ LPUNKNOWN pUnkOuter, REFIID riid, LPVOID *ppvObj) PURE;
77 STDMETHOD(AddDestroyCallback)(THIS_ D3DRMOBJECTCALLBACK, LPVOID argument) PURE;
78 STDMETHOD(DeleteDestroyCallback)(THIS_ D3DRMOBJECTCALLBACK, LPVOID argument) PURE;
79 STDMETHOD(SetAppData)(THIS_ DWORD data) PURE;
80 STDMETHOD_(DWORD, GetAppData)(THIS) PURE;
81 STDMETHOD(SetName)(THIS_ LPCSTR) PURE;
82 STDMETHOD(GetName)(THIS_ LPDWORD lpdwSize, LPSTR lpName) PURE;
83 STDMETHOD(GetClassName)(THIS_ LPDWORD lpdwSize, LPSTR lpName) PURE;
85 #undef INTERFACE
87 #if !defined(__cplusplus) || defined(CINTERFACE)
88 /*** IUnknown methods ***/
89 #define IDirect3DRMObject_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
90 #define IDirect3DRMObject_AddRef(p) (p)->lpVtbl->AddRef(p)
91 #define IDirect3DRMObject_Release(p) (p)->lpVtbl->Release(p)
92 /*** IDirect3DRMObject methods ***/
93 #define IDirect3DRMObject_Clone(p,a,b,c) (p)->lpVtbl->Clone(p,a,b,c)
94 #define IDirect3DRMObject_AddDestroyCallback(p,a,b) (p)->lpVtbl->AddDestroyCallback(p,a,b)
95 #define IDirect3DRMObject_DeleteDestroyCallback(p,a,b) (p)->lpVtbl->DeleteDestroyCallback(p,a,b)
96 #define IDirect3DRMObject_SetAppData(p,a) (p)->lpVtbl->SetAppData(p,a)
97 #define IDirect3DRMObject_GetAppData(p) (p)->lpVtbl->GetAppData(p)
98 #define IDirect3DRMObject_SetName(p,a) (p)->lpVtbl->SetName(p,a)
99 #define IDirect3DRMObject_GetName(p,a,b) (p)->lpVtbl->GetName(p,a,b)
100 #define IDirect3DRMObject_GetClassName(p,a,b) (p)->lpVtbl->GetClassName(p,a,b)
101 #else
102 /*** IUnknown methods ***/
103 #define IDirect3DRMObject_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
104 #define IDirect3DRMObject_AddRef(p) (p)->AddRef()
105 #define IDirect3DRMObject_Release(p) (p)->Release()
106 /*** IDirect3DRMObject methods ***/
107 #define IDirect3DRMObject_Clone(p,a,b,c) (p)->Clone(a,b,c)
108 #define IDirect3DRMObject_AddDestroyCallback(p,a,b) (p)->AddDestroyCallback(a,b)
109 #define IDirect3DRMObject_DeleteDestroyCallback(p,a,b) (p)->DeleteDestroyCallback(a,b)
110 #define IDirect3DRMObject_SetAppData(p,a) (p)->SetAppData(a)
111 #define IDirect3DRMObject_GetAppData(p) (p)->GetAppData()
112 #define IDirect3DRMObject_SetName(p,a) (p)->SetName(a)
113 #define IDirect3DRMObject_GetName(p,a,b) (p)->GetName(a,b)
114 #define IDirect3DRMObject_GetClassName(p,a,b) (p)->GetClassName(a,b)
115 #endif
117 /*****************************************************************************
118 * IDirect3DRMVisual interface
120 #define INTERFACE IDirect3DRMVisual
121 DECLARE_INTERFACE_(IDirect3DRMVisual,IDirect3DRMObject)
123 /*** IUnknown methods ***/
124 STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE;
125 STDMETHOD_(ULONG,AddRef)(THIS) PURE;
126 STDMETHOD_(ULONG,Release)(THIS) PURE;
127 /*** IDirect3DRMObject methods ***/
128 STDMETHOD(Clone)(THIS_ LPUNKNOWN pUnkOuter, REFIID riid, LPVOID *ppvObj) PURE;
129 STDMETHOD(AddDestroyCallback)(THIS_ D3DRMOBJECTCALLBACK, LPVOID argument) PURE;
130 STDMETHOD(DeleteDestroyCallback)(THIS_ D3DRMOBJECTCALLBACK, LPVOID argument) PURE;
131 STDMETHOD(SetAppData)(THIS_ DWORD data) PURE;
132 STDMETHOD_(DWORD, GetAppData)(THIS) PURE;
133 STDMETHOD(SetName)(THIS_ LPCSTR) PURE;
134 STDMETHOD(GetName)(THIS_ LPDWORD lpdwSize, LPSTR lpName) PURE;
135 STDMETHOD(GetClassName)(THIS_ LPDWORD lpdwSize, LPSTR lpName) PURE;
137 #undef INTERFACE
139 #if !defined(__cplusplus) || defined(CINTERFACE)
140 /*** IUnknown methods ***/
141 #define IDirect3DRMVisual_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
142 #define IDirect3DRMVisual_AddRef(p) (p)->lpVtbl->AddRef(p)
143 #define IDirect3DRMVisual_Release(p) (p)->lpVtbl->Release(p)
144 /*** IDirect3DRMObject methods ***/
145 #define IDirect3DRMVisual_Clone(p,a,b,c) (p)->lpVtbl->Clone(p,a,b,c)
146 #define IDirect3DRMVisual_AddDestroyCallback(p,a,b) (p)->lpVtbl->AddDestroyCallback(p,a,b)
147 #define IDirect3DRMVisual_DeleteDestroyCallback(p,a,b) (p)->lpVtbl->DeleteDestroyCallback(p,a,b)
148 #define IDirect3DRMVisual_SetAppData(p,a) (p)->lpVtbl->SetAppData(p,a)
149 #define IDirect3DRMVisual_GetAppData(p) (p)->lpVtbl->GetAppData(p)
150 #define IDirect3DRMVisual_SetName(p,a) (p)->lpVtbl->SetName(p,a)
151 #define IDirect3DRMVisual_GetName(p,a,b) (p)->lpVtbl->GetName(p,a,b)
152 #define IDirect3DRMVisual_GetClassName(p,a,b) (p)->lpVtbl->GetClassName(p,a,b)
153 #else
154 /*** IUnknown methods ***/
155 #define IDirect3DRMVisual_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
156 #define IDirect3DRMVisual_AddRef(p) (p)->AddRef()
157 #define IDirect3DRMVisual_Release(p) (p)->Release()
158 /*** IDirect3DRMObject methods ***/
159 #define IDirect3DRMVisual_Clone(p,a,b,c) (p)->Clone(a,b,c)
160 #define IDirect3DRMVisual_AddDestroyCallback(p,a,b) (p)->AddDestroyCallback(a,b)
161 #define IDirect3DRMVisual_DeleteDestroyCallback(p,a,b) (p)->DeleteDestroyCallback(a,b)
162 #define IDirect3DRMVisual_SetAppData(p,a) (p)->SetAppData(a)
163 #define IDirect3DRMVisual_GetAppData(p) (p)->GetAppData()
164 #define IDirect3DRMVisual_SetName(p,a) (p)->SetName(a)
165 #define IDirect3DRMVisual_GetName(p,a,b) (p)->GetName(a,b)
166 #define IDirect3DRMVisual_GetClassName(p,a,b) (p)->GetClassName(a,b)
167 #endif
169 #ifdef __cplusplus
171 #endif
173 #endif /* __D3DRMOBJ_H__ */