Implmenet IDxDiagContainerImpl_GetNumberOfProps, IDxDiagContainerImpl_EnumPropNames...
[reactos.git] / reactos / lib / dxdiagn / dxdiag_private.h
1 /*
2 * DXDiag private include file
3 *
4 * Copyright 2004 Raphael Junqueira
5 *
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.
10 *
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.
15 *
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
19 */
20
21 #ifndef __WINE_DXDIAG_PRIVATE_H
22 #define __WINE_DXDIAG_PRIVATE_H
23
24 #include <stdarg.h>
25
26 #include "windef.h"
27 #include "winbase.h"
28 #include "wingdi.h"
29 #include "winuser.h"
30 #include "objbase.h"
31 #include "oleauto.h"
32
33 #include "dxdiag.h"
34
35 /* DXDiag Interfaces: */
36 typedef struct IDxDiagProviderImpl IDxDiagProviderImpl;
37 typedef struct IDxDiagContainerImpl IDxDiagContainerImpl;
38
39 /* ---------------- */
40 /* IDxDiagProvider */
41 /* ---------------- */
42
43 /*****************************************************************************
44 * Predeclare the interface implementation structures
45 */
46 extern IDxDiagProviderVtbl DxDiagProvider_Vtbl;
47
48 /*****************************************************************************
49 * IDxDiagProvider implementation structure
50 */
51 typedef struct Contain_Property
52 {
53 WCHAR *pwszPropName;
54 VARIANT pvarProp;
55 } Contain_Property;
56
57 struct IDxDiagProviderImpl {
58 /* IUnknown fields */
59 IDxDiagProviderVtbl *lpVtbl;
60 DWORD ref;
61 /* IDxDiagProvider fields */
62 BOOL init;
63 DXDIAG_INIT_PARAMS params;
64 IDxDiagContainer* pRootContainer;
65 };
66
67 /* IUnknown: */
68 extern HRESULT WINAPI IDxDiagProviderImpl_QueryInterface(PDXDIAGPROVIDER iface, REFIID riid, LPVOID *ppobj);
69 extern ULONG WINAPI IDxDiagProviderImpl_AddRef(PDXDIAGPROVIDER iface);
70 extern ULONG WINAPI IDxDiagProviderImpl_Release(PDXDIAGPROVIDER iface);
71
72 /* IDxDiagProvider: */
73 extern HRESULT WINAPI IDxDiagProviderImpl_Initialize(PDXDIAGPROVIDER iface, DXDIAG_INIT_PARAMS* pParams);
74 extern HRESULT WINAPI IDxDiagProviderImpl_GetRootContainer(PDXDIAGPROVIDER iface, IDxDiagContainer** ppInstance);
75
76 /* ---------------- */
77 /* IDxDiagContainer */
78 /* ---------------- */
79
80 typedef struct IDxDiagContainerImpl_SubContainer {
81 IDxDiagContainer* pCont;
82 WCHAR* contName;
83 struct IDxDiagContainerImpl_SubContainer* next;
84 } IDxDiagContainerImpl_SubContainer;
85
86 /*****************************************************************************
87 * Predeclare the interface implementation structures
88 */
89 extern IDxDiagContainerVtbl DxDiagContainer_Vtbl;
90
91 /*****************************************************************************
92 * IDxDiagContainer implementation structure
93 */
94 struct IDxDiagContainerImpl {
95 /* IUnknown fields */
96 IDxDiagContainerVtbl *lpVtbl;
97 DWORD ref;
98 /* IDxDiagContainer fields */
99 IDxDiagContainerImpl_SubContainer* subContainers;
100 DWORD nSubContainers;
101 Contain_Property* pProperty;
102 DWORD nSubpProperty;
103 };
104
105 /* IUnknown: */
106 extern HRESULT WINAPI IDxDiagContainerImpl_QueryInterface(PDXDIAGCONTAINER iface, REFIID riid, LPVOID *ppobj);
107 extern ULONG WINAPI IDxDiagContainerImpl_AddRef(PDXDIAGCONTAINER iface);
108 extern ULONG WINAPI IDxDiagContainerImpl_Release(PDXDIAGCONTAINER iface);
109
110 /* IDxDiagContainer: */
111 extern HRESULT WINAPI IDxDiagContainerImpl_GetNumberOfChildContainers(PDXDIAGCONTAINER iface, DWORD* pdwCount);
112 extern HRESULT WINAPI IDxDiagContainerImpl_EnumChildContainerNames(PDXDIAGCONTAINER iface, DWORD dwIndex, LPWSTR pwszContainer, DWORD cchContainer);
113 extern HRESULT WINAPI IDxDiagContainerImpl_GetChildContainer(PDXDIAGCONTAINER iface, LPCWSTR pwszContainer, IDxDiagContainer** ppInstance);
114 extern HRESULT WINAPI IDxDiagContainerImpl_GetNumberOfProps(PDXDIAGCONTAINER iface, DWORD* pdwCount);
115 extern HRESULT WINAPI IDxDiagContainerImpl_EnumPropNames(PDXDIAGCONTAINER iface, DWORD dwIndex, LPWSTR pwszPropName, DWORD cchPropName);
116 extern HRESULT WINAPI IDxDiagContainerImpl_GetProp(PDXDIAGCONTAINER iface, LPCWSTR pwszPropName, VARIANT* pvarProp);
117
118 /**
119 * factories
120 */
121 extern HRESULT DXDiag_CreateDXDiagProvider(LPCLASSFACTORY iface, LPUNKNOWN punkOuter, REFIID riid, LPVOID *ppobj);
122
123 /** internal factory */
124 extern HRESULT DXDiag_CreateDXDiagContainer(REFIID riid, LPVOID *ppobj);
125
126
127
128 #endif