VirtualBox

source: vbox/trunk/src/VBox/Additions/WINNT/include/VBoxDisplay.h@ 27988

Last change on this file since 27988 was 27988, checked in by vboxsync, 15 years ago

wddm: more impl for guest autoresize support

  • Property svn:eol-style set to native
File size: 2.1 KB
Line 
1/** @file
2 *
3 * VBoxDisplay - private windows additions display header
4 *
5 * Copyright (C) 2006-2007 Sun Microsystems, Inc.
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 * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa
16 * Clara, CA 95054 USA or visit http://www.sun.com if you need
17 * additional information or have any questions.
18 */
19#ifndef __VBoxDisplay_h__
20#define __VBoxDisplay_h__
21
22#define VBOXESC_SETVISIBLEREGION 0xABCD9001
23#define VBOXESC_ISVRDPACTIVE 0xABCD9002
24#ifdef VBOXWDDM
25# define VBOXESC_REINITVIDEOMODES 0xABCD9003
26
27typedef struct
28{
29 ULONG Id;
30 DWORD Width;
31 DWORD Height;
32 DWORD BitsPerPixel;
33} VBOXWDDM_RECOMMENDVIDPN_SCREEN_INFO, *PVBOXWDDM_RECOMMENDVIDPN_SCREEN_INFO;
34
35typedef struct
36{
37 uint32_t cScreenInfos;
38 VBOXWDDM_RECOMMENDVIDPN_SCREEN_INFO aScreenInfos[1];
39} VBOXWDDM_RECOMMENDVIDPN, *PVBOXWDDM_RECOMMENDVIDPN;
40
41#define VBOXWDDM_RECOMMENDVIDPN_SIZE(_c) (RT_OFFSETOF(VBOXWDDM_RECOMMENDVIDPN, aScreenInfos[_c]))
42#endif /* #ifdef VBOXWDDM */
43
44typedef struct VBOXDISPIFESCAPE
45{
46 int escapeCode;
47} VBOXDISPIFESCAPE, *PVBOXDISPIFESCAPE;
48
49#define VBOXDISPIFESCAPE_DATA_OFFSET() ((sizeof (VBOXDISPIFESCAPE) + 7) & ~7)
50#define VBOXDISPIFESCAPE_DATA(_pHead, _t) ( (_t*)(((uint8_t*)(_pHead)) + VBOXDISPIFESCAPE_DATA_OFFSET()))
51#define VBOXDISPIFESCAPE_DATA_SIZE(_s) ( (_s) < VBOXDISPIFESCAPE_DATA_OFFSET() ? 0 : (_s) - VBOXDISPIFESCAPE_DATA_OFFSET() )
52#define VBOXDISPIFESCAPE_SIZE(_cbData) ((_cbData) ? VBOXDISPIFESCAPE_DATA_OFFSET() + (_cbData) : sizeof (VBOXDISPIFESCAPE))
53
54#define IOCTL_VIDEO_VBOX_SETVISIBLEREGION \
55 CTL_CODE(FILE_DEVICE_VIDEO, 0xA01, METHOD_BUFFERED, FILE_ANY_ACCESS)
56
57#endif /* __VBoxDisplay_h__ */
Note: See TracBrowser for help on using the repository browser.

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