VirtualBox

source: vbox/trunk/src/VBox/Additions/WINNT/Graphics/Miniport/Helper.h@ 30215

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

Automated rebranding to Oracle copyright/license strings via filemuncher

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 2.7 KB
Line 
1/** @file
2 *
3 * VBoxGuest -- VirtualBox Win 2000/XP guest video driver
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
16#ifndef __HELPER_h__
17#define __HELPER_h__
18
19// Windows version identifier
20typedef enum
21{
22 UNKNOWN_WINVERSION = 0,
23 WINNT4 = 1,
24 WIN2K = 2,
25 WINXP = 3,
26 WINVISTA = 4,
27 WIN7 = 5
28} winVersion_t;
29
30
31extern "C"
32{
33BOOLEAN vboxQueryDisplayRequest(uint32_t *xres, uint32_t *yres, uint32_t *bpp, uint32_t *pDisplayId);
34BOOLEAN vboxLikesVideoMode(uint32_t display, uint32_t width, uint32_t height, uint32_t bpp);
35ULONG vboxGetHeightReduction();
36BOOLEAN vboxQueryPointerPos(uint16_t *pointerXPos, uint16_t *pointerYPos);
37BOOLEAN vboxQueryHostWantsAbsolute();
38winVersion_t vboxQueryWinVersion();
39#ifndef VBOX_WITH_HGSMI
40BOOLEAN vboxUpdatePointerShape(PVIDEO_POINTER_ATTRIBUTES pointerAttr, uint32_t cbLength);
41#endif /* !VBOX_WITH_HGSMI */
42
43#include "vboxioctl.h"
44
45int vboxVbvaEnable (ULONG ulEnable, VBVAENABLERESULT *pVbvaResult);
46}
47
48
49/* debug printf */
50# define OSDBGPRINT(a) DbgPrint a
51
52/* dprintf */
53#if (defined(DEBUG) && !defined(NO_LOGGING)) || defined(LOG_ENABLED)
54# ifdef LOG_TO_BACKDOOR
55# include <VBox/log.h>
56# define dprintf(a) RTLogBackdoorPrintf a
57# else
58# define dprintf(a) OSDBGPRINT(a)
59# endif
60/* flow log */
61# define dfprintf dprintf
62/* release log */
63# define drprintf dprintf
64#else
65# define dprintf(a) do {} while (0)
66/* flow log */
67# define dfprintf dprintf
68/* release log */
69# define drprintf dprintf
70#endif
71
72/* dprintf2 - extended logging. */
73#if 0
74# define dprintf2 dprintf
75#else
76# define dprintf2(a) do { } while (0)
77#endif
78
79#ifdef DEBUG_misha
80/* specifies whether the vboxVDbgBreakF should break in the debugger
81 * windbg seems to have some issues when there is a lot ( >~50) of sw breakpoints defined
82 * to simplify things we just insert breaks for the case of intensive debugging WDDM driver*/
83extern bool g_bVBoxVDbgBreakF;
84extern bool g_bVBoxVDbgBreakFv;
85#define vboxVDbgBreakF() do { if (g_bVBoxVDbgBreakF) AssertBreakpoint(); } while (0)
86#define vboxVDbgBreakFv() do { if (g_bVBoxVDbgBreakFv) AssertBreakpoint(); } while (0)
87#else
88#define vboxVDbgBreakF() do { } while (0)
89#define vboxVDbgBreakFv() do { } while (0)
90#endif
91
92#endif // __HELPER_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