2004-04-16 02:26:14 +02:00
|
|
|
/*
|
|
|
|
* DXDiag private include file
|
|
|
|
*
|
|
|
|
* Copyright 2004 Raphael Junqueira
|
|
|
|
*
|
|
|
|
* This library is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
|
|
* License as published by the Free Software Foundation; either
|
|
|
|
* version 2.1 of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This library is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
* Lesser General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
|
|
* License along with this library; if not, write to the Free Software
|
|
|
|
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __WINE_DXDIAG_PRIVATE_H
|
|
|
|
#define __WINE_DXDIAG_PRIVATE_H
|
|
|
|
|
|
|
|
#include <stdarg.h>
|
|
|
|
|
|
|
|
#include "windef.h"
|
|
|
|
#include "winbase.h"
|
|
|
|
#include "wingdi.h"
|
|
|
|
#include "winuser.h"
|
2004-08-22 23:38:46 +02:00
|
|
|
#include "objbase.h"
|
2004-04-16 02:26:14 +02:00
|
|
|
#include "oleauto.h"
|
|
|
|
|
|
|
|
#include "dxdiag.h"
|
|
|
|
|
|
|
|
/* DXDiag Interfaces: */
|
|
|
|
typedef struct IDxDiagProviderImpl IDxDiagProviderImpl;
|
|
|
|
typedef struct IDxDiagContainerImpl IDxDiagContainerImpl;
|
|
|
|
|
|
|
|
/* ---------------- */
|
|
|
|
/* IDxDiagProvider */
|
|
|
|
/* ---------------- */
|
|
|
|
|
|
|
|
/*****************************************************************************
|
|
|
|
* Predeclare the interface implementation structures
|
|
|
|
*/
|
2004-08-13 01:00:51 +02:00
|
|
|
extern IDxDiagProviderVtbl DxDiagProvider_Vtbl;
|
2004-04-16 02:26:14 +02:00
|
|
|
|
|
|
|
/*****************************************************************************
|
|
|
|
* IDxDiagProvider implementation structure
|
|
|
|
*/
|
2004-04-19 04:57:09 +02:00
|
|
|
struct IDxDiagProviderImpl {
|
2004-04-16 02:26:14 +02:00
|
|
|
/* IUnknown fields */
|
2004-08-12 21:52:49 +02:00
|
|
|
IDxDiagProviderVtbl *lpVtbl;
|
2004-04-16 02:26:14 +02:00
|
|
|
DWORD ref;
|
|
|
|
/* IDxDiagProvider fields */
|
2004-04-19 04:57:09 +02:00
|
|
|
BOOL init;
|
|
|
|
DXDIAG_INIT_PARAMS params;
|
|
|
|
IDxDiagContainer* pRootContainer;
|
2004-04-16 02:26:14 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
/* IUnknown: */
|
|
|
|
extern HRESULT WINAPI IDxDiagProviderImpl_QueryInterface(PDXDIAGPROVIDER iface, REFIID riid, LPVOID *ppobj);
|
|
|
|
extern ULONG WINAPI IDxDiagProviderImpl_AddRef(PDXDIAGPROVIDER iface);
|
|
|
|
extern ULONG WINAPI IDxDiagProviderImpl_Release(PDXDIAGPROVIDER iface);
|
|
|
|
|
|
|
|
/* IDxDiagProvider: */
|
|
|
|
extern HRESULT WINAPI IDxDiagProviderImpl_Initialize(PDXDIAGPROVIDER iface, DXDIAG_INIT_PARAMS* pParams);
|
|
|
|
extern HRESULT WINAPI IDxDiagProviderImpl_GetRootContainer(PDXDIAGPROVIDER iface, IDxDiagContainer** ppInstance);
|
|
|
|
|
2004-04-19 04:57:09 +02:00
|
|
|
/* ---------------- */
|
|
|
|
/* IDxDiagContainer */
|
|
|
|
/* ---------------- */
|
|
|
|
|
|
|
|
typedef struct IDxDiagContainerImpl_SubContainer {
|
|
|
|
IDxDiagContainer* pCont;
|
|
|
|
WCHAR* contName;
|
|
|
|
struct IDxDiagContainerImpl_SubContainer* next;
|
|
|
|
} IDxDiagContainerImpl_SubContainer;
|
|
|
|
|
2005-01-27 11:42:00 +01:00
|
|
|
typedef struct IDxDiagContainerImpl_Property {
|
|
|
|
LPWSTR vName;
|
|
|
|
VARIANT v;
|
|
|
|
struct IDxDiagContainerImpl_Property* next;
|
|
|
|
} IDxDiagContainerImpl_Property;
|
|
|
|
|
|
|
|
|
2004-04-19 04:57:09 +02:00
|
|
|
/*****************************************************************************
|
|
|
|
* Predeclare the interface implementation structures
|
|
|
|
*/
|
2004-08-13 01:00:51 +02:00
|
|
|
extern IDxDiagContainerVtbl DxDiagContainer_Vtbl;
|
2004-04-19 04:57:09 +02:00
|
|
|
|
|
|
|
/*****************************************************************************
|
|
|
|
* IDxDiagContainer implementation structure
|
|
|
|
*/
|
|
|
|
struct IDxDiagContainerImpl {
|
|
|
|
/* IUnknown fields */
|
2004-08-12 21:52:49 +02:00
|
|
|
IDxDiagContainerVtbl *lpVtbl;
|
2004-04-19 04:57:09 +02:00
|
|
|
DWORD ref;
|
|
|
|
/* IDxDiagContainer fields */
|
2005-01-27 11:42:00 +01:00
|
|
|
IDxDiagContainerImpl_Property* properties;
|
2004-04-19 04:57:09 +02:00
|
|
|
IDxDiagContainerImpl_SubContainer* subContainers;
|
2005-01-27 11:42:00 +01:00
|
|
|
DWORD nProperties;
|
2004-04-19 04:57:09 +02:00
|
|
|
DWORD nSubContainers;
|
|
|
|
};
|
|
|
|
|
|
|
|
/* IUnknown: */
|
|
|
|
extern HRESULT WINAPI IDxDiagContainerImpl_QueryInterface(PDXDIAGCONTAINER iface, REFIID riid, LPVOID *ppobj);
|
|
|
|
extern ULONG WINAPI IDxDiagContainerImpl_AddRef(PDXDIAGCONTAINER iface);
|
|
|
|
extern ULONG WINAPI IDxDiagContainerImpl_Release(PDXDIAGCONTAINER iface);
|
|
|
|
|
|
|
|
/* IDxDiagContainer: */
|
|
|
|
extern HRESULT WINAPI IDxDiagContainerImpl_GetNumberOfChildContainers(PDXDIAGCONTAINER iface, DWORD* pdwCount);
|
|
|
|
extern HRESULT WINAPI IDxDiagContainerImpl_EnumChildContainerNames(PDXDIAGCONTAINER iface, DWORD dwIndex, LPWSTR pwszContainer, DWORD cchContainer);
|
|
|
|
extern HRESULT WINAPI IDxDiagContainerImpl_GetChildContainer(PDXDIAGCONTAINER iface, LPCWSTR pwszContainer, IDxDiagContainer** ppInstance);
|
|
|
|
extern HRESULT WINAPI IDxDiagContainerImpl_GetNumberOfProps(PDXDIAGCONTAINER iface, DWORD* pdwCount);
|
|
|
|
extern HRESULT WINAPI IDxDiagContainerImpl_EnumPropNames(PDXDIAGCONTAINER iface, DWORD dwIndex, LPWSTR pwszPropName, DWORD cchPropName);
|
|
|
|
extern HRESULT WINAPI IDxDiagContainerImpl_GetProp(PDXDIAGCONTAINER iface, LPCWSTR pwszPropName, VARIANT* pvarProp);
|
|
|
|
|
2005-01-27 11:42:00 +01:00
|
|
|
/** Internal */
|
|
|
|
extern HRESULT WINAPI IDxDiagContainerImpl_AddProp(PDXDIAGCONTAINER iface, LPCWSTR pwszPropName, VARIANT* pVarProp);
|
|
|
|
extern HRESULT WINAPI IDxDiagContainerImpl_AddChildContainer(PDXDIAGCONTAINER iface, LPCWSTR pszContName, PDXDIAGCONTAINER pSubCont);
|
|
|
|
|
2004-04-16 02:26:14 +02:00
|
|
|
/**
|
|
|
|
* factories
|
|
|
|
*/
|
|
|
|
extern HRESULT DXDiag_CreateDXDiagProvider(LPCLASSFACTORY iface, LPUNKNOWN punkOuter, REFIID riid, LPVOID *ppobj);
|
|
|
|
|
2004-04-19 04:57:09 +02:00
|
|
|
/** internal factory */
|
|
|
|
extern HRESULT DXDiag_CreateDXDiagContainer(REFIID riid, LPVOID *ppobj);
|
2005-01-27 11:42:00 +01:00
|
|
|
extern HRESULT DXDiag_InitRootDXDiagContainer(IDxDiagContainer* pRootCont);
|
2004-04-19 04:57:09 +02:00
|
|
|
|
2005-02-01 15:21:37 +01:00
|
|
|
/**********************************************************************
|
|
|
|
* Dll lifetime tracking declaration for dxdiagn.dll
|
|
|
|
*/
|
|
|
|
extern LONG DXDIAGN_refCount;
|
|
|
|
static inline void DXDIAGN_LockModule() { InterlockedIncrement( &DXDIAGN_refCount ); }
|
|
|
|
static inline void DXDIAGN_UnlockModule() { InterlockedDecrement( &DXDIAGN_refCount ); }
|
2004-04-16 02:26:14 +02:00
|
|
|
|
|
|
|
#endif
|