1 | /** @file
|
---|
2 | *
|
---|
3 | * VBoxDisplay - private windows additions display header
|
---|
4 | *
|
---|
5 | * Copyright (C) 2006-2007 Oracle Corporation
|
---|
6 | *
|
---|
7 | * This file is part of VirtualBox Open Source Edition (OSE), as
|
---|
8 | * available from http://www.virtualbox.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 | #ifndef __VBoxDisplay_h__
|
---|
16 | #define __VBoxDisplay_h__
|
---|
17 |
|
---|
18 | #include <iprt/types.h>
|
---|
19 | #include <iprt/assert.h>
|
---|
20 |
|
---|
21 | #define VBOXESC_SETVISIBLEREGION 0xABCD9001
|
---|
22 | #define VBOXESC_ISVRDPACTIVE 0xABCD9002
|
---|
23 | #ifdef VBOX_WITH_WDDM
|
---|
24 | # define VBOXESC_REINITVIDEOMODES 0xABCD9003
|
---|
25 | # define VBOXESC_GETVBOXVIDEOCMCMD 0xABCD9004
|
---|
26 | # define VBOXESC_DBGPRINT 0xABCD9005
|
---|
27 | # define VBOXESC_SCREENLAYOUT 0xABCD9006
|
---|
28 | # define VBOXESC_SWAPCHAININFO 0xABCD9007
|
---|
29 | # define VBOXESC_UHGSMI_ALLOCATE 0xABCD9008
|
---|
30 | # define VBOXESC_UHGSMI_DEALLOCATE 0xABCD9009
|
---|
31 | # define VBOXESC_UHGSMI_SUBMIT 0xABCD900A
|
---|
32 |
|
---|
33 | typedef struct
|
---|
34 | {
|
---|
35 | DWORD Id;
|
---|
36 | DWORD Width;
|
---|
37 | DWORD Height;
|
---|
38 | DWORD BitsPerPixel;
|
---|
39 | } VBOXWDDM_RECOMMENDVIDPN_SCREEN_INFO, *PVBOXWDDM_RECOMMENDVIDPN_SCREEN_INFO;
|
---|
40 |
|
---|
41 | typedef struct
|
---|
42 | {
|
---|
43 | uint32_t cScreenInfos;
|
---|
44 | VBOXWDDM_RECOMMENDVIDPN_SCREEN_INFO aScreenInfos[1];
|
---|
45 | } VBOXWDDM_RECOMMENDVIDPN, *PVBOXWDDM_RECOMMENDVIDPN;
|
---|
46 |
|
---|
47 | #define VBOXWDDM_RECOMMENDVIDPN_SIZE(_c) (RT_OFFSETOF(VBOXWDDM_RECOMMENDVIDPN, aScreenInfos[_c]))
|
---|
48 |
|
---|
49 | #endif /* #ifdef VBOX_WITH_WDDM */
|
---|
50 |
|
---|
51 | typedef struct VBOXDISPIFESCAPE
|
---|
52 | {
|
---|
53 | int32_t escapeCode;
|
---|
54 | uint32_t u32CmdSpecific;
|
---|
55 | } VBOXDISPIFESCAPE, *PVBOXDISPIFESCAPE;
|
---|
56 |
|
---|
57 | /* ensure command body is always 8-byte-aligned*/
|
---|
58 | AssertCompile((sizeof (VBOXDISPIFESCAPE) & 7) == 0);
|
---|
59 |
|
---|
60 | #define VBOXDISPIFESCAPE_DATA_OFFSET() ((sizeof (VBOXDISPIFESCAPE) + 7) & ~7)
|
---|
61 | #define VBOXDISPIFESCAPE_DATA(_pHead, _t) ( (_t*)(((uint8_t*)(_pHead)) + VBOXDISPIFESCAPE_DATA_OFFSET()))
|
---|
62 | #define VBOXDISPIFESCAPE_DATA_SIZE(_s) ( (_s) < VBOXDISPIFESCAPE_DATA_OFFSET() ? 0 : (_s) - VBOXDISPIFESCAPE_DATA_OFFSET() )
|
---|
63 | #define VBOXDISPIFESCAPE_SIZE(_cbData) ((_cbData) ? VBOXDISPIFESCAPE_DATA_OFFSET() + (_cbData) : sizeof (VBOXDISPIFESCAPE))
|
---|
64 |
|
---|
65 | #define IOCTL_VIDEO_VBOX_SETVISIBLEREGION \
|
---|
66 | CTL_CODE(FILE_DEVICE_VIDEO, 0xA01, METHOD_BUFFERED, FILE_ANY_ACCESS)
|
---|
67 |
|
---|
68 | #endif /* __VBoxDisplay_h__ */
|
---|