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
|
2006-05-18 14:49:52 +02:00
|
|
|
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
2004-04-16 02:26:14 +02:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __WINE_DXDIAG_PRIVATE_H
|
|
|
|
#define __WINE_DXDIAG_PRIVATE_H
|
|
|
|
|
|
|
|
#include <stdarg.h>
|
|
|
|
|
|
|
|
#include "windef.h"
|
|
|
|
#include "winbase.h"
|
|
|
|
#include "wingdi.h"
|
|
|
|
|
2011-02-01 11:32:05 +01:00
|
|
|
#include "wine/list.h"
|
2004-04-16 02:26:14 +02:00
|
|
|
#include "dxdiag.h"
|
2011-04-04 03:55:32 +02:00
|
|
|
#include "resource.h"
|
2004-04-16 02:26:14 +02:00
|
|
|
|
|
|
|
/* DXDiag Interfaces: */
|
|
|
|
typedef struct IDxDiagProviderImpl IDxDiagProviderImpl;
|
|
|
|
typedef struct IDxDiagContainerImpl IDxDiagContainerImpl;
|
2011-02-15 08:17:16 +01:00
|
|
|
typedef struct IDxDiagContainerImpl_Container IDxDiagContainerImpl_Container;
|
2011-02-15 08:14:09 +01:00
|
|
|
|
2004-04-19 04:57:09 +02:00
|
|
|
/* ---------------- */
|
|
|
|
/* IDxDiagContainer */
|
|
|
|
/* ---------------- */
|
|
|
|
|
2011-02-15 08:17:16 +01:00
|
|
|
struct IDxDiagContainerImpl_Container {
|
2011-02-01 11:32:05 +01:00
|
|
|
struct list entry;
|
|
|
|
WCHAR *contName;
|
2011-02-15 08:17:16 +01:00
|
|
|
|
|
|
|
struct list subContainers;
|
|
|
|
DWORD nSubContainers;
|
|
|
|
struct list properties;
|
|
|
|
DWORD nProperties;
|
|
|
|
};
|
2004-04-19 04:57:09 +02:00
|
|
|
|
2005-01-27 11:42:00 +01:00
|
|
|
typedef struct IDxDiagContainerImpl_Property {
|
2011-02-01 11:32:15 +01:00
|
|
|
struct list entry;
|
|
|
|
WCHAR *propName;
|
|
|
|
VARIANT vProp;
|
2005-01-27 11:42:00 +01:00
|
|
|
} IDxDiagContainerImpl_Property;
|
|
|
|
|
|
|
|
|
2004-04-19 04:57:09 +02:00
|
|
|
/*****************************************************************************
|
|
|
|
* IDxDiagContainer implementation structure
|
|
|
|
*/
|
|
|
|
struct IDxDiagContainerImpl {
|
2011-08-10 23:59:30 +02:00
|
|
|
IDxDiagContainer IDxDiagContainer_iface;
|
|
|
|
LONG ref;
|
2011-02-15 08:17:16 +01:00
|
|
|
IDxDiagContainerImpl_Container *cont;
|
2011-02-15 08:13:22 +01:00
|
|
|
IDxDiagProvider *pProv;
|
2004-04-19 04:57:09 +02:00
|
|
|
};
|
|
|
|
|
2004-04-16 02:26:14 +02:00
|
|
|
/**
|
|
|
|
* factories
|
|
|
|
*/
|
2011-05-13 17:07:11 +02:00
|
|
|
extern HRESULT DXDiag_CreateDXDiagProvider(LPCLASSFACTORY iface, LPUNKNOWN punkOuter, REFIID riid, LPVOID *ppobj) DECLSPEC_HIDDEN;
|
2004-04-16 02:26:14 +02:00
|
|
|
|
2004-04-19 04:57:09 +02:00
|
|
|
/** internal factory */
|
2011-05-13 17:07:11 +02:00
|
|
|
extern HRESULT DXDiag_CreateDXDiagContainer(REFIID riid, IDxDiagContainerImpl_Container *cont, IDxDiagProvider *pProv, LPVOID *ppobj) DECLSPEC_HIDDEN;
|
2004-04-19 04:57:09 +02:00
|
|
|
|
2005-02-01 15:21:37 +01:00
|
|
|
/**********************************************************************
|
|
|
|
* Dll lifetime tracking declaration for dxdiagn.dll
|
|
|
|
*/
|
2011-05-13 17:07:11 +02:00
|
|
|
extern LONG DXDIAGN_refCount DECLSPEC_HIDDEN;
|
2005-06-20 16:18:03 +02:00
|
|
|
static inline void DXDIAGN_LockModule(void) { InterlockedIncrement( &DXDIAGN_refCount ); }
|
|
|
|
static inline void DXDIAGN_UnlockModule(void) { InterlockedDecrement( &DXDIAGN_refCount ); }
|
2004-04-16 02:26:14 +02:00
|
|
|
|
2011-05-13 17:07:11 +02:00
|
|
|
extern HINSTANCE dxdiagn_instance DECLSPEC_HIDDEN;
|
2011-04-04 03:55:26 +02:00
|
|
|
|
2004-04-16 02:26:14 +02:00
|
|
|
#endif
|