mirror of
https://github.com/reactos/reactos.git
synced 2024-11-20 06:15:26 +00:00
87 lines
2.6 KiB
C
87 lines
2.6 KiB
C
/*
|
|
* 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., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
|
*/
|
|
|
|
#ifndef __WINE_DXDIAG_PRIVATE_H
|
|
#define __WINE_DXDIAG_PRIVATE_H
|
|
|
|
#include <stdarg.h>
|
|
|
|
#include "windef.h"
|
|
#include "winbase.h"
|
|
#include "wingdi.h"
|
|
|
|
#include "wine/list.h"
|
|
#include "dxdiag.h"
|
|
#include "resource.h"
|
|
|
|
/* DXDiag Interfaces: */
|
|
typedef struct IDxDiagProviderImpl IDxDiagProviderImpl;
|
|
typedef struct IDxDiagContainerImpl IDxDiagContainerImpl;
|
|
typedef struct IDxDiagContainerImpl_Container IDxDiagContainerImpl_Container;
|
|
|
|
/* ---------------- */
|
|
/* IDxDiagContainer */
|
|
/* ---------------- */
|
|
|
|
struct IDxDiagContainerImpl_Container {
|
|
struct list entry;
|
|
WCHAR *contName;
|
|
|
|
struct list subContainers;
|
|
DWORD nSubContainers;
|
|
struct list properties;
|
|
DWORD nProperties;
|
|
};
|
|
|
|
typedef struct IDxDiagContainerImpl_Property {
|
|
struct list entry;
|
|
WCHAR *propName;
|
|
VARIANT vProp;
|
|
} IDxDiagContainerImpl_Property;
|
|
|
|
|
|
/*****************************************************************************
|
|
* IDxDiagContainer implementation structure
|
|
*/
|
|
struct IDxDiagContainerImpl {
|
|
IDxDiagContainer IDxDiagContainer_iface;
|
|
LONG ref;
|
|
IDxDiagContainerImpl_Container *cont;
|
|
IDxDiagProvider *pProv;
|
|
};
|
|
|
|
/**
|
|
* factories
|
|
*/
|
|
extern HRESULT DXDiag_CreateDXDiagProvider(LPCLASSFACTORY iface, LPUNKNOWN punkOuter, REFIID riid, LPVOID *ppobj) DECLSPEC_HIDDEN;
|
|
|
|
/** internal factory */
|
|
extern HRESULT DXDiag_CreateDXDiagContainer(REFIID riid, IDxDiagContainerImpl_Container *cont, IDxDiagProvider *pProv, LPVOID *ppobj) DECLSPEC_HIDDEN;
|
|
|
|
/**********************************************************************
|
|
* Dll lifetime tracking declaration for dxdiagn.dll
|
|
*/
|
|
extern LONG DXDIAGN_refCount DECLSPEC_HIDDEN;
|
|
static inline void DXDIAGN_LockModule(void) { InterlockedIncrement( &DXDIAGN_refCount ); }
|
|
static inline void DXDIAGN_UnlockModule(void) { InterlockedDecrement( &DXDIAGN_refCount ); }
|
|
|
|
extern HINSTANCE dxdiagn_instance DECLSPEC_HIDDEN;
|
|
|
|
#endif
|