From b3f32d9686ceb7ad10247eea119a9b393c99a09d Mon Sep 17 00:00:00 2001 From: Raphael Junqueira Date: Thu, 15 Apr 2004 23:59:25 +0000 Subject: [PATCH] Fixed some bugs. --- include/dxdiag.h | 52 ++++++++++++++++++++++++++---------------------- 1 file changed, 28 insertions(+), 24 deletions(-) diff --git a/include/dxdiag.h b/include/dxdiag.h index 379185cc683..caa21f20124 100644 --- a/include/dxdiag.h +++ b/include/dxdiag.h @@ -19,7 +19,7 @@ #ifndef __WINE_DXDIAG_H #define __WINE_DXDIAG_H -#include +#include #ifdef __cplusplus extern "C" { @@ -67,13 +67,13 @@ typedef struct IDxDiagContainer IDxDiagContainer, *LPDXDIAGCONTAINER, *PDX /***************************************************************************** * IDxDiagProvider interface */ -#define ICOM_INTERFACE IDxDiagProvider +#define INTERFACE IDxDiagProvider #define IDxDiagProvider_METHODS \ IUnknown_METHODS \ - STDMETHOD(Initialize)(THIS_ DXDIAG_INIT_PARAMS* pParams) \ - STDMETHOD(GetRootContainer)(THIS_ IDxDiagContainer** ppInstance) + STDMETHOD(Initialize)(THIS_ DXDIAG_INIT_PARAMS* pParams) PURE; \ + STDMETHOD(GetRootContainer)(THIS_ IDxDiagContainer** ppInstance) PURE; ICOM_DEFINE(IDxDiagProvider,IUnknown) -#undef ICOM_INTERFACE +#undef INTERFACE #ifdef COBJMACROS /*** IUnknown methods ***/ @@ -81,37 +81,41 @@ ICOM_DEFINE(IDxDiagProvider,IUnknown) #define IDxDiagProvider_AddRef(p) (p)->lpVtbl->AddRef(p) #define IDxDiagProvider_Release(p) (p)->lpVtbl->Release(p) /*** IDxDiagProvider methods ***/ -#define IDxDiagProvider_Initialize(p,a,b) (p)->lpVtbl->Initialize(p,a,b) -#define IDxDiagProvider_GetRootContainer(p,a) (p)->lpVtbl->GetRootContainer(p,a) +#define IDxDiagProvider_Initialize(p,a,b) (p)->lpVtbl->Initialize(p,a,b) +#define IDxDiagProvider_GetRootContainer(p,a) (p)->lpVtbl->GetRootContainer(p,a) #endif /***************************************************************************** * IDxDiagContainer interface */ -#define ICOM_INTERFACE IDxDiagContainer +#ifdef __WINESRC__ +#undef GetProp +#endif + +#define INTERFACE IDxDiagContainer #define IDxDiagContainer_METHODS \ IUnknown_METHODS \ - STDMETHOD(GetNumberOfChildContainers)(THIS_ DWORD* pdwCount) \ - STDMETHOD(EnumChildContainerNames)(THIS_ DWORD dwIndex, LPWSTR pwszContainer, DWORD cchContainer) \ - STDMETHOD(GetChildContainer)(THIS_ LPCWSTR pwszContainer, IDxDiagContainer** ppInstance) \ - STDMETHOD(GetNumberOfProps)(THIS_ DWORD* pdwCount) \ - STDMETHOD(EnumPropNames)(THIS_ DWORD dwIndex, LPWSTR pwszPropName, DWORD cchPropName) \ - STDMETHOD(GetProp)(THIS_ LPCWSTR pwszPropName, VARIANT* pvarProp) + STDMETHOD(GetNumberOfChildContainers)(THIS_ DWORD* pdwCount) PURE; \ + STDMETHOD(EnumChildContainerNames)(THIS_ DWORD dwIndex, LPWSTR pwszContainer, DWORD cchContainer) PURE; \ + STDMETHOD(GetChildContainer)(THIS_ LPCWSTR pwszContainer, IDxDiagContainer** ppInstance) PURE; \ + STDMETHOD(GetNumberOfProps)(THIS_ DWORD* pdwCount) PURE; \ + STDMETHOD(EnumPropNames)(THIS_ DWORD dwIndex, LPWSTR pwszPropName, DWORD cchPropName) PURE; \ + STDMETHOD(GetProp)(THIS_ LPCWSTR pwszPropName, VARIANT* pvarProp) PURE; ICOM_DEFINE(IDxDiagContainer,IUnknown) -#undef ICOM_INTERFACE +#undef INTERFACE #ifdef COBJMACROS /*** IUnknown methods ***/ -#define IDxDiagContainer_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) -#define IDxDiagContainer_AddRef(p) (p)->lpVtbl->AddRef(p) -#define IDxDiagContainer_Release(p) (p)->lpVtbl->Release(p) +#define IDxDiagContainer_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) +#define IDxDiagContainer_AddRef(p) (p)->lpVtbl->AddRef(p) +#define IDxDiagContainer_Release(p) (p)->lpVtbl->Release(p) /*** IDxDiagContainer methods ***/ -#define IDxDiagContainer_GetNumberOfChildContainers(p,a) (p)->lpVtbl->GetNumberOfChildContainers(p,a) -#define IDxDiagContainer_EnumChildContainerNames(p,a,b,c) (p)->lpVtbl->EnumChildContainerNames(p,a,b,c) -#define IDxDiagContainer_GetChildContainer(p,a,b) (p)->lpVtbl->GetChildContainer(p,a,b) -#define IDxDiagContainer_GetNumberOfProps(p,a) (p)->lpVtbl->GetNumberOfProps(p,a) -#define IDxDiagContainer_EnumProps(p,a,b) (p)->lpVtbl->EnumProps(p,a,b,c) -#define IDxDiagContainer_GetProp(p,a,b) (p)->lpVtbl->GetProp(p,a,b) +#define IDxDiagContainer_GetNumberOfChildContainers(p,a) (p)->lpVtbl->GetNumberOfChildContainers(p,a) +#define IDxDiagContainer_EnumChildContainerNames(p,a,b,c) (p)->lpVtbl->EnumChildContainerNames(p,a,b,c) +#define IDxDiagContainer_GetChildContainer(p,a,b) (p)->lpVtbl->GetChildContainer(p,a,b) +#define IDxDiagContainer_GetNumberOfProps(p,a) (p)->lpVtbl->GetNumberOfProps(p,a) +#define IDxDiagContainer_EnumProps(p,a,b) (p)->lpVtbl->EnumProps(p,a,b,c) +#define IDxDiagContainer_GetProp(p,a,b) (p)->lpVtbl->GetProp(p,a,b) #endif #ifdef __cplusplus