dxdiag_private.h 2.61 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
/*
 * 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
18
 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
19 20 21 22 23 24 25 26 27 28 29
 */

#ifndef __WINE_DXDIAG_PRIVATE_H
#define __WINE_DXDIAG_PRIVATE_H

#include <stdarg.h>

#include "windef.h"
#include "winbase.h"
#include "wingdi.h"

30
#include "wine/list.h"
31
#include "dxdiag.h"
32
#include "resource.h"
33 34 35 36

/* DXDiag Interfaces: */
typedef struct IDxDiagProviderImpl  IDxDiagProviderImpl;
typedef struct IDxDiagContainerImpl IDxDiagContainerImpl;
37
typedef struct IDxDiagContainerImpl_Container IDxDiagContainerImpl_Container;
38

39 40 41 42
/* ---------------- */
/* IDxDiagContainer  */
/* ---------------- */

43
struct IDxDiagContainerImpl_Container {
44 45
  struct list entry;
  WCHAR *contName;
46 47 48 49 50 51

  struct list subContainers;
  DWORD nSubContainers;
  struct list properties;
  DWORD nProperties;
};
52

53
typedef struct IDxDiagContainerImpl_Property {
54 55 56
  struct list entry;
  WCHAR *propName;
  VARIANT vProp;
57 58 59
} IDxDiagContainerImpl_Property;


60 61 62 63
/*****************************************************************************
 * IDxDiagContainer implementation structure
 */
struct IDxDiagContainerImpl {
64 65
  IDxDiagContainer IDxDiagContainer_iface;
  LONG ref;
66
  IDxDiagContainerImpl_Container *cont;
67
  IDxDiagProvider *pProv;
68 69
};

70 71 72
/**
 * factories
 */
73
extern HRESULT DXDiag_CreateDXDiagProvider(LPCLASSFACTORY iface, LPUNKNOWN punkOuter, REFIID riid, LPVOID *ppobj) DECLSPEC_HIDDEN;
74

75
/** internal factory */
76
extern HRESULT DXDiag_CreateDXDiagContainer(REFIID riid, IDxDiagContainerImpl_Container *cont, IDxDiagProvider *pProv, LPVOID *ppobj) DECLSPEC_HIDDEN;
77

78 79 80
/**********************************************************************
 * Dll lifetime tracking declaration for dxdiagn.dll
 */
81
extern LONG DXDIAGN_refCount DECLSPEC_HIDDEN;
82 83
static inline void DXDIAGN_LockModule(void) { InterlockedIncrement( &DXDIAGN_refCount ); }
static inline void DXDIAGN_UnlockModule(void) { InterlockedDecrement( &DXDIAGN_refCount ); }
84

85
extern HINSTANCE dxdiagn_instance DECLSPEC_HIDDEN;
86

87
#endif