2 * DXDiag private include file
4 * Copyright 2004 Raphael Junqueira
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public
8 * License as published by the Free Software Foundation; either
9 * version 2.1 of the License, or (at your option) any later version.
11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Lesser General Public License for more details.
16 * You should have received a copy of the GNU Lesser General Public
17 * License along with this library; if not, write to the Free Software
18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
21 #ifndef __WINE_DXDIAG_PRIVATE_H
22 #define __WINE_DXDIAG_PRIVATE_H
35 /* DXDiag Interfaces: */
36 typedef struct IDxDiagProviderImpl IDxDiagProviderImpl
;
37 typedef struct IDxDiagContainerImpl IDxDiagContainerImpl
;
39 /* ---------------- */
41 /* ---------------- */
43 /*****************************************************************************
44 * Predeclare the interface implementation structures
46 extern IDxDiagProviderVtbl DxDiagProvider_Vtbl
;
48 /*****************************************************************************
49 * IDxDiagProvider implementation structure
51 struct IDxDiagProviderImpl
{
53 IDxDiagProviderVtbl
*lpVtbl
;
55 /* IDxDiagProvider fields */
57 DXDIAG_INIT_PARAMS params
;
58 IDxDiagContainer
* pRootContainer
;
62 extern HRESULT WINAPI
IDxDiagProviderImpl_QueryInterface(PDXDIAGPROVIDER iface
, REFIID riid
, LPVOID
*ppobj
);
63 extern ULONG WINAPI
IDxDiagProviderImpl_AddRef(PDXDIAGPROVIDER iface
);
64 extern ULONG WINAPI
IDxDiagProviderImpl_Release(PDXDIAGPROVIDER iface
);
66 /* IDxDiagProvider: */
67 extern HRESULT WINAPI
IDxDiagProviderImpl_Initialize(PDXDIAGPROVIDER iface
, DXDIAG_INIT_PARAMS
* pParams
);
68 extern HRESULT WINAPI
IDxDiagProviderImpl_GetRootContainer(PDXDIAGPROVIDER iface
, IDxDiagContainer
** ppInstance
);
70 /* ---------------- */
71 /* IDxDiagContainer */
72 /* ---------------- */
74 typedef struct IDxDiagContainerImpl_SubContainer
{
75 IDxDiagContainer
* pCont
;
77 struct IDxDiagContainerImpl_SubContainer
* next
;
78 } IDxDiagContainerImpl_SubContainer
;
80 /*****************************************************************************
81 * Predeclare the interface implementation structures
83 extern IDxDiagContainerVtbl DxDiagContainer_Vtbl
;
85 /*****************************************************************************
86 * IDxDiagContainer implementation structure
88 struct IDxDiagContainerImpl
{
90 IDxDiagContainerVtbl
*lpVtbl
;
92 /* IDxDiagContainer fields */
93 IDxDiagContainerImpl_SubContainer
* subContainers
;
98 extern HRESULT WINAPI
IDxDiagContainerImpl_QueryInterface(PDXDIAGCONTAINER iface
, REFIID riid
, LPVOID
*ppobj
);
99 extern ULONG WINAPI
IDxDiagContainerImpl_AddRef(PDXDIAGCONTAINER iface
);
100 extern ULONG WINAPI
IDxDiagContainerImpl_Release(PDXDIAGCONTAINER iface
);
102 /* IDxDiagContainer: */
103 extern HRESULT WINAPI
IDxDiagContainerImpl_GetNumberOfChildContainers(PDXDIAGCONTAINER iface
, DWORD
* pdwCount
);
104 extern HRESULT WINAPI
IDxDiagContainerImpl_EnumChildContainerNames(PDXDIAGCONTAINER iface
, DWORD dwIndex
, LPWSTR pwszContainer
, DWORD cchContainer
);
105 extern HRESULT WINAPI
IDxDiagContainerImpl_GetChildContainer(PDXDIAGCONTAINER iface
, LPCWSTR pwszContainer
, IDxDiagContainer
** ppInstance
);
106 extern HRESULT WINAPI
IDxDiagContainerImpl_GetNumberOfProps(PDXDIAGCONTAINER iface
, DWORD
* pdwCount
);
107 extern HRESULT WINAPI
IDxDiagContainerImpl_EnumPropNames(PDXDIAGCONTAINER iface
, DWORD dwIndex
, LPWSTR pwszPropName
, DWORD cchPropName
);
108 extern HRESULT WINAPI
IDxDiagContainerImpl_GetProp(PDXDIAGCONTAINER iface
, LPCWSTR pwszPropName
, VARIANT
* pvarProp
);
113 extern HRESULT
DXDiag_CreateDXDiagProvider(LPCLASSFACTORY iface
, LPUNKNOWN punkOuter
, REFIID riid
, LPVOID
*ppobj
);
115 /** internal factory */
116 extern HRESULT
DXDiag_CreateDXDiagContainer(REFIID riid
, LPVOID
*ppobj
);