ReactOS 0.4.15-dev-7788-g1ad9096
dxdiag.h
Go to the documentation of this file.
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
9extern "C" {
10#endif
11
12
13DEFINE_GUID(CLSID_DxDiagProvider, 0xA65B8071, 0x3BFE, 0x4213, 0x9A, 0x5B, 0x49, 0x1D, 0xA4, 0x46, 0x1C, 0xA7);
14DEFINE_GUID(IID_IDxDiagProvider, 0x9C6B4CB0, 0x23F8, 0x49CC, 0xA3, 0xED, 0x45, 0xA5, 0x50, 0x00, 0xA6, 0xD2);
15DEFINE_GUID(IID_IDxDiagContainer, 0x7D0F462F, 0x4064, 0x4862, 0xBC, 0x7F, 0x93, 0x3E, 0x50, 0x58, 0xC1, 0x0F);
16
17typedef struct _DXDIAG_INIT_PARAMS
18{
24
25
26
27typedef struct IDxDiagContainer *LPDXDIAGCONTAINER, *PDXDIAGCONTAINER;
28#undef INTERFACE
29#define INTERFACE IDxDiagContainer
31{
32
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
48{
53 STDMETHOD(GetRootContainer) (THIS_ IDxDiagContainer **ppInstance) PURE;
54};
55#undef INTERFACE
56
57#define DXDIAG_E_INSUFFICIENT_BUFFER ((HRESULT)0x8007007AL)
58#if !defined(__cplusplus) || defined(CINTERFACE)
59 #define IDxDiagProvider_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
60 #define IDxDiagProvider_AddRef(p) (p)->lpVtbl->AddRef(p)
61 #define IDxDiagProvider_Release(p) (p)->lpVtbl->Release(p)
62 #define IDxDiagProvider_Initialize(p,a,b) (p)->lpVtbl->Initialize(p,a,b)
63 #define IDxDiagProvider_GetRootContainer(p,a) (p)->lpVtbl->GetRootContainer(p,a)
64 #define IDxDiagContainer_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
65 #define IDxDiagContainer_AddRef(p) (p)->lpVtbl->AddRef(p)
66 #define IDxDiagContainer_Release(p) (p)->lpVtbl->Release(p)
67 #define IDxDiagContainer_GetNumberOfChildContainers(p,a) (p)->lpVtbl->GetNumberOfChildContainers(p,a)
68 #define IDxDiagContainer_EnumChildContainerNames(p,a,b,c) (p)->lpVtbl->EnumChildContainerNames(p,a,b,c)
69 #define IDxDiagContainer_GetChildContainer(p,a,b) (p)->lpVtbl->GetChildContainer(p,a,b)
70 #define IDxDiagContainer_GetNumberOfProps(p,a) (p)->lpVtbl->GetNumberOfProps(p,a)
71 #define IDxDiagContainer_EnumProps(p,a,b) (p)->lpVtbl->EnumProps(p,a,b,c)
72 #define IDxDiagContainer_GetProp(p,a,b) (p)->lpVtbl->GetProp(p,a,b)
73#else
74 #define IDxDiagProvider_QueryInterface(p,a,b) (p)->QueryInterface(p,a,b)
75 #define IDxDiagProvider_AddRef(p) (p)->AddRef(p)
76 #define IDxDiagProvider_Release(p) (p)->Release(p)
77 #define IDxDiagProvider_Initialize(p,a,b) (p)->Initialize(p,a,b)
78 #define IDxDiagProvider_GetRootContainer(p,a) (p)->GetRootContainer(p,a)
79 #define IDxDiagContainer_QueryInterface(p,a,b) (p)->QueryInterface(p,a,b)
80 #define IDxDiagContainer_AddRef(p) (p)->AddRef(p)
81 #define IDxDiagContainer_Release(p) (p)->Release(p)
82 #define IDxDiagContainer_GetNumberOfChildContainers(p,a) (p)->GetNumberOfChildContainers(p,a)
83 #define IDxDiagContainer_EnumChildContainerNames(p,a,b,c) (p)->EnumChildContainerNames(p,a,b,c)
84 #define IDxDiagContainer_GetChildContainer(p,a,b) (p)->GetChildContainer(p,a,b)
85 #define IDxDiagContainer_GetNumberOfProps(p,a) (p)->GetNumberOfProps(p,a)
86 #define IDxDiagContainer_EnumProps(p,a,b) (p)->EnumProps(p,a,b,c)
87 #define IDxDiagContainer_GetProp(p,a,b) (p)->GetProp(p,a,b)
88#endif
89
90#ifdef __cplusplus
91}
92#endif
93
94#endif
#define DECLARE_INTERFACE_(i, b)
Definition: basetyps.h:78
#define PURE
Definition: basetyps.h:64
#define THIS_
Definition: basetyps.h:65
#define THIS
Definition: basetyps.h:66
#define STDMETHOD_(t, m)
Definition: basetyps.h:63
#define STDMETHOD(m)
Definition: basetyps.h:62
_In_ BOOLEAN Release
Definition: cdrom.h:920
struct _DXDIAG_INIT_PARAMS DXDIAG_INIT_PARAMS
struct IDxDiagProvider * PDXDIAGPROVIDER
Definition: dxdiag.h:44
struct IDxDiagContainer * LPDXDIAGCONTAINER
Definition: dxdiag.h:27
struct IDxDiagContainer * PDXDIAGCONTAINER
Definition: dxdiag.h:27
struct IDxDiagProvider * LPDXDIAGPROVIDER
Definition: dxdiag.h:44
unsigned int BOOL
Definition: ntddk_ex.h:94
unsigned long DWORD
Definition: ntddk_ex.h:95
REFIID riid
Definition: atlbase.h:39
static HRESULT QueryInterface(REFIID, void **)
Definition: events.c:2587
static ULONG WINAPI AddRef(IStream *iface)
Definition: clist.c:90
#define DEFINE_GUID(name, l, w1, w2, b1, b2, b3, b4, b5, b6, b7, b8)
Definition: guiddef.h:68
#define REFIID
Definition: guiddef.h:118
DWORD dwDxDiagHeaderVersion
Definition: dxdiag.h:20
VOID * pReserved
Definition: dxdiag.h:22
BOOL bAllowWHQLChecks
Definition: dxdiag.h:21
uint32_t ULONG
Definition: typedefs.h:59
#define GetProp
Definition: winuser.h:5792
static void Initialize()
Definition: xlate.c:212
WCHAR * LPWSTR
Definition: xmlstorage.h:184
const WCHAR * LPCWSTR
Definition: xmlstorage.h:185