1 | /* $Id: VBoxUhgsmiKmt.h 76540 2018-12-30 06:26:37Z vboxsync $ */
|
---|
2 | /** @file
|
---|
3 | * VBoxVideo Display D3D User mode dll
|
---|
4 | */
|
---|
5 |
|
---|
6 | /*
|
---|
7 | * Copyright (C) 2011-2017 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 ___VBoxUhgsmiKmt_h__
|
---|
19 | #define ___VBoxUhgsmiKmt_h__
|
---|
20 | #ifndef RT_WITHOUT_PRAGMA_ONCE
|
---|
21 | # pragma once
|
---|
22 | #endif
|
---|
23 |
|
---|
24 | #include "VBoxDispD3DCmn.h"
|
---|
25 |
|
---|
26 |
|
---|
27 | typedef struct VBOXUHGSMI_PRIVATE_KMT
|
---|
28 | {
|
---|
29 | VBOXUHGSMI_PRIVATE_BASE BasePrivate;
|
---|
30 | VBOXDISPKMT_CALLBACKS Callbacks;
|
---|
31 | VBOXDISPKMT_ADAPTER Adapter;
|
---|
32 | VBOXDISPKMT_DEVICE Device;
|
---|
33 | VBOXDISPKMT_CONTEXT Context;
|
---|
34 | } VBOXUHGSMI_PRIVATE_KMT, *PVBOXUHGSMI_PRIVATE_KMT;
|
---|
35 |
|
---|
36 | #define VBOXUHGSMIKMT_GET_PRIVATE(_p, _t) ((_t*)(((uint8_t*)_p) - RT_OFFSETOF(_t, BasePrivate.Base)))
|
---|
37 | #define VBOXUHGSMIKMT_GET(_p) VBOXUHGSMIKMT_GET_PRIVATE(_p, VBOXUHGSMI_PRIVATE_KMT)
|
---|
38 |
|
---|
39 | HRESULT vboxUhgsmiKmtDestroy(PVBOXUHGSMI_PRIVATE_KMT pHgsmi);
|
---|
40 |
|
---|
41 | HRESULT vboxUhgsmiKmtCreate(PVBOXUHGSMI_PRIVATE_KMT pHgsmi, BOOL bD3D);
|
---|
42 |
|
---|
43 | #endif /* #ifndef ___VBoxUhgsmiKmt_h__ */
|
---|