VirtualBox

source: vbox/trunk/src/VBox/Additions/WINNT/Graphics/Display/wddm/VBoxScreen.h@ 35036

最後變更 在這個檔案從35036是 32061,由 vboxsync 提交於 15 年 前

wddm/3d: wine: shared resource handling fixes

  • 屬性 svn:eol-style 設為 native
  • 屬性 svn:keywords 設為 Author Date Id Revision
檔案大小: 1.8 KB
 
1/** @file
2 *
3 * VBoxVideo Display D3D User mode dll
4 *
5 * Copyright (C) 2010 Oracle Corporation
6 *
7 * This file is part of VirtualBox Open Source Edition (OSE), as
8 * available from http://www.alldomusa.eu.org. This file is free software;
9 * you can redistribute it and/or modify it under the terms of the GNU
10 * General Public License (GPL) as published by the Free Software
11 * Foundation, in version 2 as it comes in the "COPYING" file of the
12 * VirtualBox OSE distribution. VirtualBox OSE is distributed in the
13 * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
14 */
15#include <windows.h>
16#include <d3dkmthk.h>
17
18#include <iprt/cdefs.h>
19#include <iprt/ctype.h>
20
21#include <VBox/VBoxVideo.h>
22
23#include "../../Miniport/wddm/VBoxVideoIf.h"
24
25typedef struct VBOXDISPIFESCAPE_SCREENLAYOUT_DATA
26{
27 VBOXDISPIFESCAPE_SCREENLAYOUT ScreenLayout;
28 POINT buffer[VBOX_VIDEO_MAX_SCREENS];
29} VBOXDISPIFESCAPE_SCREENLAYOUT_DATA, *PVBOXDISPIFESCAPE_SCREENLAYOUT_DATA;
30
31typedef struct VBOXSCREENMON
32{
33 BOOL bInited;
34
35 HMODULE hGdi32;
36
37 HWND hWnd;
38
39 /* open adapter */
40 PFND3DKMT_OPENADAPTERFROMHDC pfnD3DKMTOpenAdapterFromHdc;
41 PFND3DKMT_OPENADAPTERFROMGDIDISPLAYNAME pfnD3DKMTOpenAdapterFromGdiDisplayName;
42 /* close adapter */
43 PFND3DKMT_CLOSEADAPTER pfnD3DKMTCloseAdapter;
44 /* escape */
45 PFND3DKMT_ESCAPE pfnD3DKMTEscape;
46
47 VBOXDISPIFESCAPE_SCREENLAYOUT_DATA LoData;
48} VBOXSCREENMON, *PVBOXSCREENMON;
49
50typedef DECLCALLBACK(HRESULT) FNVBOXDISPESCAPECB(void * pvBuffer, uint32_t cbBuffer, void *pvContext);
51typedef FNVBOXDISPESCAPECB *PFNVBOXDISPESCAPECB;
52
53typedef struct VBOXSCREENMONRUNNER
54{
55// VBOXSCREENMON Screen;
56 HANDLE hThread;
57 DWORD idThread;
58 HANDLE hEvent;
59} VBOXSCREENMONRUNNER, *PVBOXSCREENMONRUNNER;
60
61HRESULT VBoxScreenMRunnerStart(PVBOXSCREENMONRUNNER pMon);
62HRESULT VBoxScreenMRunnerStop(PVBOXSCREENMONRUNNER pMon);
注意: 瀏覽 TracBrowser 來幫助您使用儲存庫瀏覽器

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