comctl32/listview: Additional tests for LVM_GETSUBITEMRECT.
[wine/hacks.git] / dlls / dxgi / dxgi_private.h
blob54446efcd6b4fb57f2a8c1b02afe67b71a56d025
1 /*
2 * Copyright 2008 Henri Verbeet for CodeWeavers
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2.1 of the License, or (at your option) any later version.
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library; if not, write to the Free Software
16 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
19 #ifndef __WINE_DXGI_PRIVATE_H
20 #define __WINE_DXGI_PRIVATE_H
22 #include "wine/debug.h"
24 #define COBJMACROS
25 #include "winbase.h"
26 #include "wingdi.h"
27 #include "winuser.h"
28 #include "objbase.h"
30 #include "dxgi.h"
31 #ifdef DXGI_INIT_GUID
32 #include "initguid.h"
33 #endif
34 #include "wine/wined3d.h"
35 #include "wine/winedxgi.h"
37 extern CRITICAL_SECTION dxgi_cs;
39 /* TRACE helper functions */
40 const char *debug_dxgi_format(DXGI_FORMAT format);
42 WINED3DFORMAT wined3dformat_from_dxgi_format(DXGI_FORMAT format);
44 /* IDXGIFactory */
45 extern const struct IWineDXGIFactoryVtbl dxgi_factory_vtbl;
46 struct dxgi_factory
48 const struct IWineDXGIFactoryVtbl *vtbl;
49 LONG refcount;
50 IWineD3D *wined3d;
51 UINT adapter_count;
52 IDXGIAdapter **adapters;
55 /* IDXGIDevice */
56 extern const struct IWineDXGIDeviceVtbl dxgi_device_vtbl;
57 struct dxgi_device
59 const struct IWineDXGIDeviceVtbl *vtbl;
60 IUnknown *child_layer;
61 LONG refcount;
62 IWineD3DDevice *wined3d_device;
63 IWineDXGIFactory *factory;
66 /* IDXGIAdapter */
67 extern const struct IWineDXGIAdapterVtbl dxgi_adapter_vtbl;
68 struct dxgi_adapter
70 const struct IWineDXGIAdapterVtbl *vtbl;
71 IDXGIFactory *parent;
72 LONG refcount;
73 UINT ordinal;
76 /* IDXGISwapChain */
77 extern const struct IDXGISwapChainVtbl dxgi_swapchain_vtbl;
78 struct dxgi_swapchain
80 const struct IDXGISwapChainVtbl *vtbl;
81 LONG refcount;
82 IWineD3DSwapChain *wined3d_swapchain;
85 /* IDXGISurface */
86 extern const struct IDXGISurfaceVtbl dxgi_surface_vtbl;
87 extern const struct IUnknownVtbl dxgi_surface_inner_unknown_vtbl;
88 struct dxgi_surface
90 const struct IDXGISurfaceVtbl *vtbl;
91 const struct IUnknownVtbl *inner_unknown_vtbl;
92 IUnknown *outer_unknown;
93 LONG refcount;
96 /* Layered device */
97 enum dxgi_device_layer_id
99 DXGI_DEVICE_LAYER_DEBUG1 = 0x8,
100 DXGI_DEVICE_LAYER_THREAD_SAFE = 0x10,
101 DXGI_DEVICE_LAYER_DEBUG2 = 0x20,
102 DXGI_DEVICE_LAYER_SWITCH_TO_REF = 0x30,
103 DXGI_DEVICE_LAYER_D3D10_DEVICE = 0xffffffff,
106 struct layer_get_size_args
108 DWORD unknown0;
109 DWORD unknown1;
110 DWORD *unknown2;
111 DWORD *unknown3;
112 IDXGIAdapter *adapter;
113 WORD interface_major;
114 WORD interface_minor;
115 WORD version_build;
116 WORD version_revision;
119 struct dxgi_device_layer
121 enum dxgi_device_layer_id id;
122 HRESULT (WINAPI *init)(enum dxgi_device_layer_id id, DWORD *count, DWORD *values);
123 UINT (WINAPI *get_size)(enum dxgi_device_layer_id id, struct layer_get_size_args *args, DWORD unknown0);
124 HRESULT (WINAPI *create)(enum dxgi_device_layer_id id, void **layer_base, DWORD unknown0,
125 void *device_object, REFIID riid, void **device_layer);
128 #endif /* __WINE_DXGI_PRIVATE_H */