1 | /*
|
---|
2 | * Copyright (C) 2004 Raphael Junqueira
|
---|
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 | /*
|
---|
20 | * Sun LGPL Disclaimer: For the avoidance of doubt, except that if any license choice
|
---|
21 | * other than GPL or LGPL is available it will apply instead, Sun elects to use only
|
---|
22 | * the Lesser General Public License version 2.1 (LGPLv2) at this time for any software where
|
---|
23 | * a choice of LGPL license versions is made available with the language indicating
|
---|
24 | * that LGPLv2 or any later version may be used, or where a choice of which version
|
---|
25 | * of the LGPL is applied is otherwise unspecified.
|
---|
26 | */
|
---|
27 |
|
---|
28 | #ifndef __WINE_DXDIAG_H
|
---|
29 | #define __WINE_DXDIAG_H
|
---|
30 |
|
---|
31 | #include <ole2.h>
|
---|
32 |
|
---|
33 | #ifdef __cplusplus
|
---|
34 | extern "C" {
|
---|
35 | #endif /* defined(__cplusplus) */
|
---|
36 |
|
---|
37 | /*****************************************************************************
|
---|
38 | * #defines and error codes
|
---|
39 | */
|
---|
40 | #define DXDIAG_DX9_SDK_VERSION 111
|
---|
41 |
|
---|
42 | #define _FACDXDIAG 0x007
|
---|
43 | #define MAKE_DXDIAGHRESULT( code ) MAKE_HRESULT( 1, _FACDXDIAG, code )
|
---|
44 |
|
---|
45 | /*
|
---|
46 | * DXDiag Errors
|
---|
47 | */
|
---|
48 | #define DXDIAG_E_INSUFFICIENT_BUFFER MAKE_DXDIAGHRESULT(0x007A)
|
---|
49 |
|
---|
50 |
|
---|
51 | /*****************************************************************************
|
---|
52 | * DXDiag structures Typedefs
|
---|
53 | */
|
---|
54 | typedef struct _DXDIAG_INIT_PARAMS {
|
---|
55 | DWORD dwSize;
|
---|
56 | DWORD dwDxDiagHeaderVersion;
|
---|
57 | BOOL bAllowWHQLChecks;
|
---|
58 | VOID* pReserved;
|
---|
59 | } DXDIAG_INIT_PARAMS;
|
---|
60 |
|
---|
61 |
|
---|
62 | /*****************************************************************************
|
---|
63 | * Predeclare the interfaces
|
---|
64 | */
|
---|
65 | /* CLSIDs */
|
---|
66 | DEFINE_GUID(CLSID_DxDiagProvider, 0xA65B8071, 0x3BFE, 0x4213, 0x9A, 0x5B, 0x49, 0x1D, 0xA4, 0x46, 0x1C, 0xA7);
|
---|
67 |
|
---|
68 | /* IIDs */
|
---|
69 | DEFINE_GUID(IID_IDxDiagProvider, 0x9C6B4CB0, 0x23F8, 0x49CC, 0xA3, 0xED, 0x45, 0xA5, 0x50, 0x00, 0xA6, 0xD2);
|
---|
70 | DEFINE_GUID(IID_IDxDiagContainer, 0x7D0F462F, 0x4064, 0x4862, 0xBC, 0x7F, 0x93, 0x3E, 0x50, 0x58, 0xC1, 0x0F);
|
---|
71 |
|
---|
72 | /* typedef definitions */
|
---|
73 | typedef struct IDxDiagProvider *LPDXDIAGPROVIDER, *PDXDIAGPROVIDER;
|
---|
74 | typedef struct IDxDiagContainer *LPDXDIAGCONTAINER, *PDXDIAGCONTAINER;
|
---|
75 |
|
---|
76 | /*****************************************************************************
|
---|
77 | * IDxDiagContainer interface
|
---|
78 | */
|
---|
79 | #ifdef WINE_NO_UNICODE_MACROS
|
---|
80 | #undef GetProp
|
---|
81 | #endif
|
---|
82 |
|
---|
83 | #define INTERFACE IDxDiagContainer
|
---|
84 | DECLARE_INTERFACE_(IDxDiagContainer,IUnknown)
|
---|
85 | {
|
---|
86 | /*** IUnknown methods ***/
|
---|
87 | STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE;
|
---|
88 | STDMETHOD_(ULONG,AddRef)(THIS) PURE;
|
---|
89 | STDMETHOD_(ULONG,Release)(THIS) PURE;
|
---|
90 | /*** IDxDiagContainer methods ***/
|
---|
91 | STDMETHOD(GetNumberOfChildContainers)(THIS_ DWORD* pdwCount) PURE;
|
---|
92 | STDMETHOD(EnumChildContainerNames)(THIS_ DWORD dwIndex, LPWSTR pwszContainer, DWORD cchContainer) PURE;
|
---|
93 | STDMETHOD(GetChildContainer)(THIS_ LPCWSTR pwszContainer, IDxDiagContainer** ppInstance) PURE;
|
---|
94 | STDMETHOD(GetNumberOfProps)(THIS_ DWORD* pdwCount) PURE;
|
---|
95 | STDMETHOD(EnumPropNames)(THIS_ DWORD dwIndex, LPWSTR pwszPropName, DWORD cchPropName) PURE;
|
---|
96 | STDMETHOD(GetProp)(THIS_ LPCWSTR pwszPropName, VARIANT* pvarProp) PURE;
|
---|
97 | };
|
---|
98 | #undef INTERFACE
|
---|
99 |
|
---|
100 | #if !defined(__cplusplus) || defined(CINTERFACE)
|
---|
101 | /*** IUnknown methods ***/
|
---|
102 | #define IDxDiagContainer_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
|
---|
103 | #define IDxDiagContainer_AddRef(p) (p)->lpVtbl->AddRef(p)
|
---|
104 | #define IDxDiagContainer_Release(p) (p)->lpVtbl->Release(p)
|
---|
105 | /*** IDxDiagContainer methods ***/
|
---|
106 | #define IDxDiagContainer_GetNumberOfChildContainers(p,a) (p)->lpVtbl->GetNumberOfChildContainers(p,a)
|
---|
107 | #define IDxDiagContainer_EnumChildContainerNames(p,a,b,c) (p)->lpVtbl->EnumChildContainerNames(p,a,b,c)
|
---|
108 | #define IDxDiagContainer_GetChildContainer(p,a,b) (p)->lpVtbl->GetChildContainer(p,a,b)
|
---|
109 | #define IDxDiagContainer_GetNumberOfProps(p,a) (p)->lpVtbl->GetNumberOfProps(p,a)
|
---|
110 | #define IDxDiagContainer_EnumPropNames(p,a,b,c) (p)->lpVtbl->EnumPropNames(p,a,b,c)
|
---|
111 | #define IDxDiagContainer_GetProp(p,a,b) (p)->lpVtbl->GetProp(p,a,b)
|
---|
112 | #else
|
---|
113 | /*** IUnknown methods ***/
|
---|
114 | #define IDxDiagContainer_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
|
---|
115 | #define IDxDiagContainer_AddRef(p) (p)->AddRef()
|
---|
116 | #define IDxDiagContainer_Release(p) (p)->Release()
|
---|
117 | /*** IDxDiagContainer methods ***/
|
---|
118 | #define IDxDiagContainer_GetNumberOfChildContainers(p,a) (p)->GetNumberOfChildContainers(a)
|
---|
119 | #define IDxDiagContainer_EnumChildContainerNames(p,a,b,c) (p)->EnumChildContainerNames(a,b,c)
|
---|
120 | #define IDxDiagContainer_GetChildContainer(p,a,b) (p)->GetChildContainer(a,b)
|
---|
121 | #define IDxDiagContainer_GetNumberOfProps(p,a) (p)->GetNumberOfProps(a)
|
---|
122 | #define IDxDiagContainer_EnumPropNames(p,a,b,c) (p)->EnumPropNames(a,b,c)
|
---|
123 | #define IDxDiagContainer_GetProp(p,a,b) (p)->GetProp(a,b)
|
---|
124 | #endif
|
---|
125 |
|
---|
126 | /*****************************************************************************
|
---|
127 | * IDxDiagProvider interface
|
---|
128 | */
|
---|
129 | #define INTERFACE IDxDiagProvider
|
---|
130 | DECLARE_INTERFACE_(IDxDiagProvider,IUnknown)
|
---|
131 | {
|
---|
132 | /*** IUnknown methods ***/
|
---|
133 | STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE;
|
---|
134 | STDMETHOD_(ULONG,AddRef)(THIS) PURE;
|
---|
135 | STDMETHOD_(ULONG,Release)(THIS) PURE;
|
---|
136 | /*** IDxDiagProvider methods ***/
|
---|
137 | STDMETHOD(Initialize)(THIS_ DXDIAG_INIT_PARAMS* pParams) PURE;
|
---|
138 | STDMETHOD(GetRootContainer)(THIS_ IDxDiagContainer** ppInstance) PURE;
|
---|
139 | };
|
---|
140 | #undef INTERFACE
|
---|
141 |
|
---|
142 | #if !defined(__cplusplus) || defined(CINTERFACE)
|
---|
143 | /*** IUnknown methods ***/
|
---|
144 | #define IDxDiagProvider_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
|
---|
145 | #define IDxDiagProvider_AddRef(p) (p)->lpVtbl->AddRef(p)
|
---|
146 | #define IDxDiagProvider_Release(p) (p)->lpVtbl->Release(p)
|
---|
147 | /*** IDxDiagProvider methods ***/
|
---|
148 | #define IDxDiagProvider_Initialize(p,a) (p)->lpVtbl->Initialize(p,a)
|
---|
149 | #define IDxDiagProvider_GetRootContainer(p,a) (p)->lpVtbl->GetRootContainer(p,a)
|
---|
150 | #else
|
---|
151 | /*** IUnknown methods ***/
|
---|
152 | #define IDxDiagProvider_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
|
---|
153 | #define IDxDiagProvider_AddRef(p) (p)->AddRef()
|
---|
154 | #define IDxDiagProvider_Release(p) (p)->Release()
|
---|
155 | /*** IDxDiagProvider methods ***/
|
---|
156 | #define IDxDiagProvider_Initialize(p,a) (p)->Initialize(a)
|
---|
157 | #define IDxDiagProvider_GetRootContainer(p,a) (p)->GetRootContainer(a)
|
---|
158 | #endif
|
---|
159 |
|
---|
160 | #ifdef __cplusplus
|
---|
161 | }
|
---|
162 | #endif
|
---|
163 |
|
---|
164 | #endif
|
---|