1 | /* $Id: VBoxDispD3DCmn.h 44528 2013-02-04 14:27:54Z vboxsync $ */
|
---|
2 | /** @file
|
---|
3 | * VBoxVideo Display D3D User mode dll
|
---|
4 | */
|
---|
5 |
|
---|
6 | /*
|
---|
7 | * Copyright (C) 2012 Oracle Corporation
|
---|
8 | *
|
---|
9 | * This file is part of VirtualBox Open Source Edition (OSE), as
|
---|
10 | * available from http://www.virtualbox.org. This file is free software;
|
---|
11 | * you can redistribute it and/or modify it under the terms of the GNU
|
---|
12 | * General Public License (GPL) as published by the Free Software
|
---|
13 | * Foundation, in version 2 as it comes in the "COPYING" file of the
|
---|
14 | * VirtualBox OSE distribution. VirtualBox OSE is distributed in the
|
---|
15 | * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
|
---|
16 | */
|
---|
17 |
|
---|
18 | #ifndef ___VBoxDispD3DCmn_h___
|
---|
19 | #define ___VBoxDispD3DCmn_h___
|
---|
20 |
|
---|
21 | # define _InterlockedExchange _InterlockedExchange_StupidDDKVsCompilerCrap
|
---|
22 | # define _InterlockedExchangeAdd _InterlockedExchangeAdd_StupidDDKVsCompilerCrap
|
---|
23 | # define _InterlockedCompareExchange _InterlockedCompareExchange_StupidDDKVsCompilerCrap
|
---|
24 | # define _InterlockedAddLargeStatistic _InterlockedAddLargeStatistic_StupidDDKVsCompilerCrap
|
---|
25 | # define _interlockedbittestandset _interlockedbittestandset_StupidDDKVsCompilerCrap
|
---|
26 | # define _interlockedbittestandreset _interlockedbittestandreset_StupidDDKVsCompilerCrap
|
---|
27 | # define _interlockedbittestandset64 _interlockedbittestandset64_StupidDDKVsCompilerCrap
|
---|
28 | # define _interlockedbittestandreset64 _interlockedbittestandreset64_StupidDDKVsCompilerCrap
|
---|
29 | # pragma warning(disable : 4163)
|
---|
30 | #include <windows.h>
|
---|
31 | # pragma warning(default : 4163)
|
---|
32 | # undef _InterlockedExchange
|
---|
33 | # undef _InterlockedExchangeAdd
|
---|
34 | # undef _InterlockedCompareExchange
|
---|
35 | # undef _InterlockedAddLargeStatistic
|
---|
36 | # undef _interlockedbittestandset
|
---|
37 | # undef _interlockedbittestandreset
|
---|
38 | # undef _interlockedbittestandset64
|
---|
39 | # undef _interlockedbittestandreset64
|
---|
40 |
|
---|
41 | #include <d3d9types.h>
|
---|
42 | //#include <d3dtypes.h>
|
---|
43 | #include <D3dumddi.h>
|
---|
44 | #include <d3dhal.h>
|
---|
45 |
|
---|
46 | #include <iprt/initterm.h>
|
---|
47 | #include <iprt/log.h>
|
---|
48 | #include <iprt/mem.h>
|
---|
49 |
|
---|
50 | #include <VBox/Log.h>
|
---|
51 |
|
---|
52 | #include <VBox/VBoxGuestLib.h>
|
---|
53 |
|
---|
54 | #include "VBoxDispDbg.h"
|
---|
55 | #include "VBoxDispD3DIf.h"
|
---|
56 | #include "common/wddm/VBoxMPIf.h"
|
---|
57 | #include "VBoxDispCm.h"
|
---|
58 | #include "VBoxDispMpInternal.h"
|
---|
59 | #include "VBoxDispKmt.h"
|
---|
60 | #ifdef VBOX_WITH_CRHGSMI
|
---|
61 | #include "VBoxUhgsmiBase.h"
|
---|
62 | #include "VBoxUhgsmiDisp.h"
|
---|
63 | #include "VBoxUhgsmiKmt.h"
|
---|
64 | #endif
|
---|
65 | #include "VBoxDispD3D.h"
|
---|
66 | #ifndef IN_VBOXCRHGSMI
|
---|
67 | #include "VBoxD3DIf.h"
|
---|
68 | #endif
|
---|
69 |
|
---|
70 | # ifdef VBOXWDDMDISP
|
---|
71 | # define VBOXWDDMDISP_DECL(_type) DECLEXPORT(_type)
|
---|
72 | # else
|
---|
73 | # define VBOXWDDMDISP_DECL(_type) DECLIMPORT(_type)
|
---|
74 | # endif
|
---|
75 |
|
---|
76 | #endif /* #ifndef ___VBoxDispD3DCmn_h___ */
|
---|