[NDK]: Not Alex, not 2006, not February (27th, though), not Power Management.
[reactos.git] / reactos / include / dxsdk / dxdiag.h
1 #ifndef _DXDIAG_H_
2 #define _DXDIAG_H_
3
4 #include <ole2.h>
5
6 #define DXDIAG_DX9_SDK_VERSION 111
7
8 #ifdef __cplusplus
9 extern "C" {
10 #endif
11
12
13 DEFINE_GUID(CLSID_DxDiagProvider, 0xA65B8071, 0x3BFE, 0x4213, 0x9A, 0x5B, 0x49, 0x1D, 0xA4, 0x46, 0x1C, 0xA7);
14 DEFINE_GUID(IID_IDxDiagProvider, 0x9C6B4CB0, 0x23F8, 0x49CC, 0xA3, 0xED, 0x45, 0xA5, 0x50, 0x00, 0xA6, 0xD2);
15 DEFINE_GUID(IID_IDxDiagContainer, 0x7D0F462F, 0x4064, 0x4862, 0xBC, 0x7F, 0x93, 0x3E, 0x50, 0x58, 0xC1, 0x0F);
16
17 typedef struct _DXDIAG_INIT_PARAMS
18 {
19 DWORD dwSize;
20 DWORD dwDxDiagHeaderVersion;
21 BOOL bAllowWHQLChecks;
22 VOID* pReserved;
23 } DXDIAG_INIT_PARAMS;
24
25
26
27 typedef struct IDxDiagContainer *LPDXDIAGCONTAINER, *PDXDIAGCONTAINER;
28 #undef INTERFACE
29 #define INTERFACE IDxDiagContainer
30 DECLARE_INTERFACE_(IDxDiagContainer,IUnknown)
31 {
32
33 STDMETHOD(QueryInterface) (THIS_ REFIID riid, LPVOID *ppvObj) PURE;
34 STDMETHOD_(ULONG,AddRef) (THIS) PURE;
35 STDMETHOD_(ULONG,Release) (THIS) PURE;
36 STDMETHOD(GetNumberOfChildContainers) (THIS_ DWORD *pdwCount) PURE;
37 STDMETHOD(EnumChildContainerNames) (THIS_ DWORD dwIndex, LPWSTR pwszContainer, DWORD cchContainer) PURE;
38 STDMETHOD(GetChildContainer) (THIS_ LPCWSTR pwszContainer, IDxDiagContainer **ppInstance) PURE;
39 STDMETHOD(GetNumberOfProps) (THIS_ DWORD *pdwCount) PURE;
40 STDMETHOD(EnumPropNames) (THIS_ DWORD dwIndex, LPWSTR pwszPropName, DWORD cchPropName) PURE;
41 STDMETHOD(GetProp) (THIS_ LPCWSTR pwszPropName, VARIANT *pvarProp) PURE;
42 };
43
44 typedef struct IDxDiagProvider *LPDXDIAGPROVIDER, *PDXDIAGPROVIDER;
45 #undef INTERFACE
46 #define INTERFACE IDxDiagProvider
47 DECLARE_INTERFACE_(IDxDiagProvider,IUnknown)
48 {
49 STDMETHOD(QueryInterface) (THIS_ REFIID riid, LPVOID *ppvObj) PURE;
50 STDMETHOD_(ULONG,AddRef) (THIS) PURE;
51 STDMETHOD_(ULONG,Release) (THIS) PURE;
52 STDMETHOD(Initialize) (THIS_ DXDIAG_INIT_PARAMS* pParams) PURE;
53 STDMETHOD(GetRootContainer) (THIS_ IDxDiagContainer **ppInstance) PURE;
54 };
55
56 #define DXDIAG_E_INSUFFICIENT_BUFFER ((HRESULT)0x8007007AL)
57 #if !defined(__cplusplus) || defined(CINTERFACE)
58 #define IDxDiagProvider_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
59 #define IDxDiagProvider_AddRef(p) (p)->lpVtbl->AddRef(p)
60 #define IDxDiagProvider_Release(p) (p)->lpVtbl->Release(p)
61 #define IDxDiagProvider_Initialize(p,a,b) (p)->lpVtbl->Initialize(p,a,b)
62 #define IDxDiagProvider_GetRootContainer(p,a) (p)->lpVtbl->GetRootContainer(p,a)
63 #define IDxDiagContainer_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
64 #define IDxDiagContainer_AddRef(p) (p)->lpVtbl->AddRef(p)
65 #define IDxDiagContainer_Release(p) (p)->lpVtbl->Release(p)
66 #define IDxDiagContainer_GetNumberOfChildContainers(p,a) (p)->lpVtbl->GetNumberOfChildContainers(p,a)
67 #define IDxDiagContainer_EnumChildContainerNames(p,a,b,c) (p)->lpVtbl->EnumChildContainerNames(p,a,b,c)
68 #define IDxDiagContainer_GetChildContainer(p,a,b) (p)->lpVtbl->GetChildContainer(p,a,b)
69 #define IDxDiagContainer_GetNumberOfProps(p,a) (p)->lpVtbl->GetNumberOfProps(p,a)
70 #define IDxDiagContainer_EnumProps(p,a,b) (p)->lpVtbl->EnumProps(p,a,b,c)
71 #define IDxDiagContainer_GetProp(p,a,b) (p)->lpVtbl->GetProp(p,a,b)
72 #else
73 #define IDxDiagProvider_QueryInterface(p,a,b) (p)->QueryInterface(p,a,b)
74 #define IDxDiagProvider_AddRef(p) (p)->AddRef(p)
75 #define IDxDiagProvider_Release(p) (p)->Release(p)
76 #define IDxDiagProvider_Initialize(p,a,b) (p)->Initialize(p,a,b)
77 #define IDxDiagProvider_GetRootContainer(p,a) (p)->GetRootContainer(p,a)
78 #define IDxDiagContainer_QueryInterface(p,a,b) (p)->QueryInterface(p,a,b)
79 #define IDxDiagContainer_AddRef(p) (p)->AddRef(p)
80 #define IDxDiagContainer_Release(p) (p)->Release(p)
81 #define IDxDiagContainer_GetNumberOfChildContainers(p,a) (p)->GetNumberOfChildContainers(p,a)
82 #define IDxDiagContainer_EnumChildContainerNames(p,a,b,c) (p)->EnumChildContainerNames(p,a,b,c)
83 #define IDxDiagContainer_GetChildContainer(p,a,b) (p)->GetChildContainer(p,a,b)
84 #define IDxDiagContainer_GetNumberOfProps(p,a) (p)->GetNumberOfProps(p,a)
85 #define IDxDiagContainer_EnumProps(p,a,b) (p)->EnumProps(p,a,b,c)
86 #define IDxDiagContainer_GetProp(p,a,b) (p)->GetProp(p,a,b)
87 #endif
88
89 #ifdef __cplusplus
90 }
91 #endif
92
93 #endif