VirtualBox

source: vbox/trunk/src/VBox/Additions/WINNT/Graphics/Wine/wined3d/vboxext.h@ 39016

Last change on this file since 39016 was 38363, checked in by vboxsync, 13 years ago

wddm/3d: make wine handle gl window create/destroy

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 1.3 KB
Line 
1/* $Id: vboxext.h 38363 2011-08-08 19:01:30Z vboxsync $ */
2/** @file
3 *
4 * VBox extension to Wine D3D
5 *
6 * Copyright (C) 2011 Oracle Corporation
7 *
8 * This file is part of VirtualBox Open Source Edition (OSE), as
9 * available from http://www.virtualbox.org. This file is free software;
10 * you can redistribute it and/or modify it under the terms of the GNU
11 * General Public License (GPL) as published by the Free Software
12 * Foundation, in version 2 as it comes in the "COPYING" file of the
13 * VirtualBox OSE distribution. VirtualBox OSE is distributed in the
14 * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
15 */
16#ifndef ___VBOXEXT_H__
17#define ___VBOXEXT_H__
18
19#include <windows.h>
20#include <iprt/cdefs.h>
21
22
23HRESULT VBoxExtCheckInit();
24HRESULT VBoxExtCheckTerm();
25#if 0
26/* Windows destroys HDC created by a given thread when the thread is terminated
27 * this leads to a mess-up in Wine & Chromium code in some situations, e.g.
28 * D3D device is created in one thread, then the thread is terminated,
29 * then device is started to be used in another thread */
30HDC VBoxExtGetDC(HWND hWnd);
31int VBoxExtReleaseDC(HWND hWnd, HDC hDC);
32#endif
33
34/* API for creating & destroying windows */
35HRESULT VBoxExtWndDestroy(HWND hWnd, HDC hDC);
36HRESULT VBoxExtWndCreate(DWORD width, DWORD height, HWND *phWnd, HDC *phDC);
37
38#endif /* #ifndef ___VBOXEXT_H__*/
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette