VirtualBox

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

Last change on this file since 2981 was 2981, checked in by vboxsync, 18 years ago

InnoTek -> innotek: all the headers and comments.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 1.9 KB
Line 
1/** @file
2 *
3 * VBoxGuest -- VirtualBox Win 2000/XP guest video driver
4 *
5 * Copyright (C) 2006-2007 innotek GmbH
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 as published by the Free Software Foundation,
11 * in version 2 as it comes in the "COPYING" file of the VirtualBox OSE
12 * distribution. VirtualBox OSE is distributed in the hope that it will
13 * be useful, but WITHOUT ANY WARRANTY of any kind.
14 *
15 * If you received this file as part of a commercial VirtualBox
16 * distribution, then only the terms of your commercial VirtualBox
17 * license agreement apply instead of the previous paragraph.
18 *
19 */
20
21#ifndef __HELPER_h__
22#define __HELPER_h__
23
24// Windows version identifier
25typedef enum
26{
27 UNKNOWN_WINVERSION = 0,
28 WINNT4 = 1,
29 WIN2K = 2,
30 WINXP = 3
31} winVersion_t;
32
33
34extern "C"
35{
36BOOLEAN vboxQueryDisplayRequest(uint32_t *xres, uint32_t *yres, uint32_t *bpp);
37BOOLEAN vboxLikesVideoMode(uint32_t width, uint32_t height, uint32_t bpp);
38ULONG vboxGetHeightReduction();
39BOOLEAN vboxQueryPointerPos(uint16_t *pointerXPos, uint16_t *pointerYPos);
40BOOLEAN vboxQueryHostWantsAbsolute();
41winVersion_t vboxQueryWinVersion();
42BOOLEAN vboxUpdatePointerShape(PVIDEO_POINTER_ATTRIBUTES pointerAttr, uint32_t cbLength);
43
44#include "vboxioctl.h"
45
46int vboxVbvaEnable (ULONG ulEnable, VBVAENABLERESULT *pVbvaResult);
47}
48
49
50/* debug printf */
51# define OSDBGPRINT(a) DbgPrint a
52
53/* dprintf */
54#if (defined(DEBUG) && !defined(NO_LOGGING)) || defined(LOG_ENABLED)
55# ifdef LOG_TO_BACKDOOR
56# include <VBox/log.h>
57# define dprintf(a) RTLogBackdoorPrintf a
58# else
59# define dprintf(a) OSDBGPRINT(a)
60# endif
61#else
62# define dprintf(a) do {} while (0)
63#endif
64
65/* dprintf2 - extended logging. */
66#if 0
67# define dprintf2 dprintf
68#else
69# define dprintf2(a) do { } while (0)
70#endif
71
72
73#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