VirtualBox

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

Last change on this file since 8383 was 8155, checked in by vboxsync, 17 years ago

The Big Sun Rebranding Header Change

  • 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 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
20#ifndef __HELPER_h__
21#define __HELPER_h__
22
23// Windows version identifier
24typedef enum
25{
26 UNKNOWN_WINVERSION = 0,
27 WINNT4 = 1,
28 WIN2K = 2,
29 WINXP = 3
30} winVersion_t;
31
32
33extern "C"
34{
35BOOLEAN vboxQueryDisplayRequest(uint32_t *xres, uint32_t *yres, uint32_t *bpp);
36BOOLEAN vboxLikesVideoMode(uint32_t width, uint32_t height, uint32_t bpp);
37ULONG vboxGetHeightReduction();
38BOOLEAN vboxQueryPointerPos(uint16_t *pointerXPos, uint16_t *pointerYPos);
39BOOLEAN vboxQueryHostWantsAbsolute();
40winVersion_t vboxQueryWinVersion();
41BOOLEAN vboxUpdatePointerShape(PVIDEO_POINTER_ATTRIBUTES pointerAttr, uint32_t cbLength);
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#else
61# define dprintf(a) do {} while (0)
62#endif
63
64/* dprintf2 - extended logging. */
65#if 0
66# define dprintf2 dprintf
67#else
68# define dprintf2(a) do { } while (0)
69#endif
70
71
72#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