2004-04-16 00:26:14 +00: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
|
2006-05-18 12:49:52 +00:00
|
|
|
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
2004-04-16 00:26:14 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __WINE_DXDIAG_PRIVATE_H
|
|
|
|
#define __WINE_DXDIAG_PRIVATE_H
|
|
|
|
|
|
|
|
#include <stdarg.h>
|
|
|
|
|
|
|
|
#include "windef.h"
|
|
|
|
#include "winbase.h"
|
|
|
|
#include "wingdi.h"
|
|
|
|
|
|
|
|
#include "dxdiag.h"
|
|
|
|
|
|
|
|
/* DXDiag Interfaces: */
|
|
|
|
typedef struct IDxDiagProviderImpl IDxDiagProviderImpl;
|
|
|
|
typedef struct IDxDiagContainerImpl IDxDiagContainerImpl;
|
|
|
|
|
|
|
|
/* ---------------- */
|
|
|
|
/* IDxDiagProvider */
|
|
|
|
/* ---------------- */
|
|
|
|
|
|
|
|
/*****************************************************************************
|
|
|
|
* IDxDiagProvider implementation structure
|
|
|
|
*/
|
2004-04-19 02:57:09 +00:00
|
|
|
struct IDxDiagProviderImpl {
|
2004-04-16 00:26:14 +00:00
|
|
|
/* IUnknown fields */
|
2005-06-01 19:57:42 +00:00
|
|
|
const IDxDiagProviderVtbl *lpVtbl;
|
2005-08-03 11:03:05 +00:00
|
|
|
LONG ref;
|
2004-04-16 00:26:14 +00:00
|
|
|
/* IDxDiagProvider fields */
|
2004-04-19 02:57:09 +00:00
|
|
|
BOOL init;
|
|
|
|
DXDIAG_INIT_PARAMS params;
|
|
|
|
IDxDiagContainer* pRootContainer;
|
2004-04-16 00:26:14 +00:00
|
|
|
};
|
|
|
|
|
2004-04-19 02:57:09 +00:00
|
|
|
/* ---------------- */
|
|
|
|
/* IDxDiagContainer */
|
|
|
|
/* ---------------- */
|
|
|
|
|
|
|
|
typedef struct IDxDiagContainerImpl_SubContainer {
|
|
|
|
IDxDiagContainer* pCont;
|
|
|
|
WCHAR* contName;
|
|
|
|
struct IDxDiagContainerImpl_SubContainer* next;
|
|
|
|
} IDxDiagContainerImpl_SubContainer;
|
|
|
|
|
2005-01-27 10:42:00 +00:00
|
|
|
typedef struct IDxDiagContainerImpl_Property {
|
|
|
|
LPWSTR vName;
|
|
|
|
VARIANT v;
|
|
|
|
struct IDxDiagContainerImpl_Property* next;
|
|
|
|
} IDxDiagContainerImpl_Property;
|
|
|
|
|
|
|
|
|
2004-04-19 02:57:09 +00:00
|
|
|
/*****************************************************************************
|
|
|
|
* IDxDiagContainer implementation structure
|
|
|
|
*/
|
|
|
|
struct IDxDiagContainerImpl {
|
|
|
|
/* IUnknown fields */
|
2005-06-01 19:57:42 +00:00
|
|
|
const IDxDiagContainerVtbl *lpVtbl;
|
2005-08-03 11:03:05 +00:00
|
|
|
LONG ref;
|
2004-04-19 02:57:09 +00:00
|
|
|
/* IDxDiagContainer fields */
|
2005-01-27 10:42:00 +00:00
|
|
|
IDxDiagContainerImpl_Property* properties;
|
2004-04-19 02:57:09 +00:00
|
|
|
IDxDiagContainerImpl_SubContainer* subContainers;
|
2005-01-27 10:42:00 +00:00
|
|
|
DWORD nProperties;
|
2004-04-19 02:57:09 +00:00
|
|
|
DWORD nSubContainers;
|
|
|
|
};
|
|
|
|
|
|
|
|
/* IUnknown: */
|
|
|
|
extern HRESULT WINAPI IDxDiagContainerImpl_QueryInterface(PDXDIAGCONTAINER iface, REFIID riid, LPVOID *ppobj);
|
2005-01-27 10:42:00 +00: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 00:26:14 +00:00
|
|
|
/**
|
|
|
|
* factories
|
|
|
|
*/
|
|
|
|
extern HRESULT DXDiag_CreateDXDiagProvider(LPCLASSFACTORY iface, LPUNKNOWN punkOuter, REFIID riid, LPVOID *ppobj);
|
|
|
|
|
2004-04-19 02:57:09 +00:00
|
|
|
/** internal factory */
|
|
|
|
extern HRESULT DXDiag_CreateDXDiagContainer(REFIID riid, LPVOID *ppobj);
|
|
|
|
|
2005-02-01 14:21:37 +00:00
|
|
|
/**********************************************************************
|
|
|
|
* Dll lifetime tracking declaration for dxdiagn.dll
|
|
|
|
*/
|
|
|
|
extern LONG DXDIAGN_refCount;
|
2005-06-20 14:18:03 +00:00
|
|
|
static inline void DXDIAGN_LockModule(void) { InterlockedIncrement( &DXDIAGN_refCount ); }
|
|
|
|
static inline void DXDIAGN_UnlockModule(void) { InterlockedDecrement( &DXDIAGN_refCount ); }
|
2004-04-16 00:26:14 +00:00
|
|
|
|
|
|
|
#endif
|