Added tests for CryptEnumProviders.
[wine.git] / dlls / dxdiagn / dxdiag_private.h
bloba8531c317c4277b221bd4f18d0cd414f92a81c9f
1 /*
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
24 #include <stdarg.h>
26 #include "windef.h"
27 #include "winbase.h"
28 #include "wingdi.h"
29 #include "winuser.h"
30 #include "oleauto.h"
32 #include "dxdiag.h"
34 /* DXDiag Interfaces: */
35 typedef struct IDxDiagProviderImpl IDxDiagProviderImpl;
36 typedef struct IDxDiagContainerImpl IDxDiagContainerImpl;
38 /* ---------------- */
39 /* IDxDiagProvider */
40 /* ---------------- */
42 /*****************************************************************************
43 * Predeclare the interface implementation structures
45 extern ICOM_VTABLE(IDxDiagProvider) DxDiagProvider_Vtbl;
47 /*****************************************************************************
48 * IDxDiagProvider implementation structure
50 struct IDxDiagProviderImpl {
51 /* IUnknown fields */
52 ICOM_VFIELD(IDxDiagProvider);
53 DWORD ref;
54 /* IDxDiagProvider fields */
55 BOOL init;
56 DXDIAG_INIT_PARAMS params;
57 IDxDiagContainer* pRootContainer;
60 /* IUnknown: */
61 extern HRESULT WINAPI IDxDiagProviderImpl_QueryInterface(PDXDIAGPROVIDER iface, REFIID riid, LPVOID *ppobj);
62 extern ULONG WINAPI IDxDiagProviderImpl_AddRef(PDXDIAGPROVIDER iface);
63 extern ULONG WINAPI IDxDiagProviderImpl_Release(PDXDIAGPROVIDER iface);
65 /* IDxDiagProvider: */
66 extern HRESULT WINAPI IDxDiagProviderImpl_Initialize(PDXDIAGPROVIDER iface, DXDIAG_INIT_PARAMS* pParams);
67 extern HRESULT WINAPI IDxDiagProviderImpl_GetRootContainer(PDXDIAGPROVIDER iface, IDxDiagContainer** ppInstance);
69 /* ---------------- */
70 /* IDxDiagContainer */
71 /* ---------------- */
73 typedef struct IDxDiagContainerImpl_SubContainer {
74 IDxDiagContainer* pCont;
75 WCHAR* contName;
76 struct IDxDiagContainerImpl_SubContainer* next;
77 } IDxDiagContainerImpl_SubContainer;
79 /*****************************************************************************
80 * Predeclare the interface implementation structures
82 extern ICOM_VTABLE(IDxDiagContainer) DxDiagContainer_Vtbl;
84 /*****************************************************************************
85 * IDxDiagContainer implementation structure
87 struct IDxDiagContainerImpl {
88 /* IUnknown fields */
89 ICOM_VFIELD(IDxDiagContainer);
90 DWORD ref;
91 /* IDxDiagContainer fields */
92 IDxDiagContainerImpl_SubContainer* subContainers;
93 DWORD nSubContainers;
96 /* IUnknown: */
97 extern HRESULT WINAPI IDxDiagContainerImpl_QueryInterface(PDXDIAGCONTAINER iface, REFIID riid, LPVOID *ppobj);
98 extern ULONG WINAPI IDxDiagContainerImpl_AddRef(PDXDIAGCONTAINER iface);
99 extern ULONG WINAPI IDxDiagContainerImpl_Release(PDXDIAGCONTAINER iface);
101 /* IDxDiagContainer: */
102 extern HRESULT WINAPI IDxDiagContainerImpl_GetNumberOfChildContainers(PDXDIAGCONTAINER iface, DWORD* pdwCount);
103 extern HRESULT WINAPI IDxDiagContainerImpl_EnumChildContainerNames(PDXDIAGCONTAINER iface, DWORD dwIndex, LPWSTR pwszContainer, DWORD cchContainer);
104 extern HRESULT WINAPI IDxDiagContainerImpl_GetChildContainer(PDXDIAGCONTAINER iface, LPCWSTR pwszContainer, IDxDiagContainer** ppInstance);
105 extern HRESULT WINAPI IDxDiagContainerImpl_GetNumberOfProps(PDXDIAGCONTAINER iface, DWORD* pdwCount);
106 extern HRESULT WINAPI IDxDiagContainerImpl_EnumPropNames(PDXDIAGCONTAINER iface, DWORD dwIndex, LPWSTR pwszPropName, DWORD cchPropName);
107 extern HRESULT WINAPI IDxDiagContainerImpl_GetProp(PDXDIAGCONTAINER iface, LPCWSTR pwszPropName, VARIANT* pvarProp);
110 * factories
112 extern HRESULT DXDiag_CreateDXDiagProvider(LPCLASSFACTORY iface, LPUNKNOWN punkOuter, REFIID riid, LPVOID *ppobj);
114 /** internal factory */
115 extern HRESULT DXDiag_CreateDXDiagContainer(REFIID riid, LPVOID *ppobj);
119 #endif