dnsapi: Use internal name_skip function.
[wine/multimedia.git] / include / d3drmwin.h
blob73b628fc2ed49dbb3aad8ee07642c32649c16fde
1 /*
2 * Copyright (C) 2010 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 __D3DRMWIN_H__
20 #define __D3DRMWIN_H__
22 #include <d3drm.h>
23 #include <ddraw.h>
24 #include <d3d.h>
26 #ifdef __cplusplus
27 extern "C" {
28 #endif
30 /*****************************************************************************
31 * Direct3DRMWinDevice interface GUID
34 DEFINE_GUID(IID_IDirect3DRMWinDevice, 0xc5016cc0, 0xd273, 0x11ce, 0xac, 0x48, 0x00, 0x00, 0xc0, 0x38, 0x25, 0xa1);
36 typedef struct IDirect3DRMWinDevice *LPDIRECT3DRMWINDEVICE, **LPLPDIRECT3DRMWINDEVICE;
38 /*****************************************************************************
39 * IDirect3DRMWinDevice interface
41 #define INTERFACE IDirect3DRMWinDevice
42 DECLARE_INTERFACE_(IDirect3DRMWinDevice,IDirect3DRMObject)
44 /*** IUnknown methods ***/
45 STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE;
46 STDMETHOD_(ULONG,AddRef)(THIS) PURE;
47 STDMETHOD_(ULONG,Release)(THIS) PURE;
48 /*** IDirect3DRMObject methods ***/
49 STDMETHOD(Clone)(THIS_ LPUNKNOWN pUnkOuter, REFIID riid, LPVOID *ppvObj) PURE;
50 STDMETHOD(AddDestroyCallback)(THIS_ D3DRMOBJECTCALLBACK, LPVOID argument) PURE;
51 STDMETHOD(DeleteDestroyCallback)(THIS_ D3DRMOBJECTCALLBACK, LPVOID argument) PURE;
52 STDMETHOD(SetAppData)(THIS_ DWORD data) PURE;
53 STDMETHOD_(DWORD, GetAppData)(THIS) PURE;
54 STDMETHOD(SetName)(THIS_ LPCSTR) PURE;
55 STDMETHOD(GetName)(THIS_ LPDWORD lpdwSize, LPSTR lpName) PURE;
56 STDMETHOD(GetClassName)(THIS_ LPDWORD lpdwSize, LPSTR lpName) PURE;
57 /*** IDirect3DRMWinDevice methods ***/
58 STDMETHOD(HandlePaint)(THIS_ HDC) PURE;
59 STDMETHOD(HandleActivate)(THIS_ WORD) PURE;
61 #undef INTERFACE
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
99 #ifdef __cplusplus
101 #endif
103 #endif /* __D3DRMWIN_H__ */