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
|
---|
24 | typedef enum
|
---|
25 | {
|
---|
26 | UNKNOWN_WINVERSION = 0,
|
---|
27 | WINNT4 = 1,
|
---|
28 | WIN2K = 2,
|
---|
29 | WINXP = 3,
|
---|
30 | WINVISTA = 4,
|
---|
31 | WIN7 = 5
|
---|
32 | } winVersion_t;
|
---|
33 |
|
---|
34 |
|
---|
35 | extern "C"
|
---|
36 | {
|
---|
37 | BOOLEAN vboxQueryDisplayRequest(uint32_t *xres, uint32_t *yres, uint32_t *bpp);
|
---|
38 | BOOLEAN vboxLikesVideoMode(uint32_t width, uint32_t height, uint32_t bpp);
|
---|
39 | ULONG vboxGetHeightReduction();
|
---|
40 | BOOLEAN vboxQueryPointerPos(uint16_t *pointerXPos, uint16_t *pointerYPos);
|
---|
41 | BOOLEAN vboxQueryHostWantsAbsolute();
|
---|
42 | winVersion_t vboxQueryWinVersion();
|
---|
43 | #ifndef VBOX_WITH_HGSMI
|
---|
44 | BOOLEAN vboxUpdatePointerShape(PVIDEO_POINTER_ATTRIBUTES pointerAttr, uint32_t cbLength);
|
---|
45 | #endif /* !VBOX_WITH_HGSMI */
|
---|
46 |
|
---|
47 | #include "vboxioctl.h"
|
---|
48 |
|
---|
49 | int vboxVbvaEnable (ULONG ulEnable, VBVAENABLERESULT *pVbvaResult);
|
---|
50 | }
|
---|
51 |
|
---|
52 |
|
---|
53 | /* debug printf */
|
---|
54 | # define OSDBGPRINT(a) DbgPrint a
|
---|
55 |
|
---|
56 | /* dprintf */
|
---|
57 | #if (defined(DEBUG) && !defined(NO_LOGGING)) || defined(LOG_ENABLED)
|
---|
58 | # ifdef LOG_TO_BACKDOOR
|
---|
59 | # include <VBox/log.h>
|
---|
60 | # define dprintf(a) RTLogBackdoorPrintf a
|
---|
61 | # else
|
---|
62 | # define dprintf(a) OSDBGPRINT(a)
|
---|
63 | # endif
|
---|
64 | /* flow log */
|
---|
65 | # define dfprintf dprintf
|
---|
66 | /* release log */
|
---|
67 | # define drprintf dprintf
|
---|
68 | #else
|
---|
69 | # define dprintf(a) do {} while (0)
|
---|
70 | /* flow log */
|
---|
71 | # define dfprintf dprintf
|
---|
72 | /* release log */
|
---|
73 | # define drprintf dprintf
|
---|
74 | #endif
|
---|
75 |
|
---|
76 | /* dprintf2 - extended logging. */
|
---|
77 | #if 0
|
---|
78 | # define dprintf2 dprintf
|
---|
79 | #else
|
---|
80 | # define dprintf2(a) do { } while (0)
|
---|
81 | #endif
|
---|
82 |
|
---|
83 |
|
---|
84 | #endif // __HELPER_h__
|
---|