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 |
|
---|
23 | HRESULT VBoxExtCheckInit();
|
---|
24 | HRESULT 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 */
|
---|
30 | HDC VBoxExtGetDC(HWND hWnd);
|
---|
31 | int VBoxExtReleaseDC(HWND hWnd, HDC hDC);
|
---|
32 | #endif
|
---|
33 |
|
---|
34 | /* API for creating & destroying windows */
|
---|
35 | HRESULT VBoxExtWndDestroy(HWND hWnd, HDC hDC);
|
---|
36 | HRESULT VBoxExtWndCreate(DWORD width, DWORD height, HWND *phWnd, HDC *phDC);
|
---|
37 |
|
---|
38 | #endif /* #ifndef ___VBOXEXT_H__*/
|
---|