VirtualBox

source: vbox/trunk/include/VBox/VBoxGuest16.h@ 8113

Last change on this file since 8113 was 5999, checked in by vboxsync, 17 years ago

The Giant CDDL Dual-License Header Change.

  • Property svn:eol-style set to native
File size: 3.5 KB
Line 
1/** @file
2 * VBoxGuest - VirtualBox Guest Additions Interface, 16-bit (OS/2) header.
3 */
4
5/*
6 * Copyright (C) 2006-2007 innotek GmbH
7 *
8 * This file is part of VirtualBox Open Source Edition (OSE), as
9 * available from http://www.virtualbox.org. This file is free software;
10 * you can redistribute it and/or modify it under the terms of the GNU
11 * General Public License (GPL) as published by the Free Software
12 * Foundation, in version 2 as it comes in the "COPYING" file of the
13 * VirtualBox OSE distribution. VirtualBox OSE is distributed in the
14 * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
15 *
16 * The contents of this file may alternatively be used under the terms
17 * of the Common Development and Distribution License Version 1.0
18 * (CDDL) only, as it comes in the "COPYING.CDDL" file of the
19 * VirtualBox OSE distribution, in which case the provisions of the
20 * CDDL are applicable instead of those of the GPL.
21 *
22 * You may elect to license modified versions of this file under the
23 * terms and conditions of either the GPL or the CDDL or both.
24 */
25
26#ifndef ___VBox_VBoxGuest16_h
27#define ___VBox_VBoxGuest16_h
28
29#define RT_BIT(bit) (1UL << (bit))
30
31
32#define VMMDEV_VERSION 0x00010004UL
33
34#define VBOXGUEST_DEVICE_NAME "vboxgst$"
35
36/* aka VBOXGUESTOS2IDCCONNECT */
37typedef struct VBGOS2IDC
38{
39 unsigned long u32Version;
40 unsigned long u32Session;
41 unsigned long pfnServiceEP;
42 short (__cdecl __far *fpfnServiceEP)(unsigned long u32Session, unsigned short iFunction,
43 void __far *fpvData, unsigned short cbData, unsigned short __far *pcbDataReturned);
44 unsigned long fpfnServiceAsmEP;
45} VBGOS2IDC;
46typedef VBGOS2IDC *PVBGOS2IDC;
47
48#define VBOXGUEST_IOCTL_WAITEVENT 2
49#define VBOXGUEST_IOCTL_VMMREQUEST 3
50#define VBOXGUEST_IOCTL_OS2_IDC_DISCONNECT 48
51
52
53#define VMMDEV_EVENT_MOUSE_CAPABILITIES_CHANGED RT_BIT(0)
54#define VMMDEV_EVENT_HGCM RT_BIT(1)
55#define VMMDEV_EVENT_DISPLAY_CHANGE_REQUEST RT_BIT(2)
56#define VMMDEV_EVENT_JUDGE_CREDENTIALS RT_BIT(3)
57#define VMMDEV_EVENT_RESTORED RT_BIT(4)
58
59
60#define VBOXGUEST_WAITEVENT_OK 0
61#define VBOXGUEST_WAITEVENT_TIMEOUT 1
62#define VBOXGUEST_WAITEVENT_INTERRUPTED 2
63#define VBOXGUEST_WAITEVENT_ERROR 3
64
65typedef struct _VBoxGuestWaitEventInfo
66{
67 unsigned long u32TimeoutIn;
68 unsigned long u32EventMaskIn;
69 unsigned long u32Result;
70 unsigned long u32EventFlagsOut;
71} VBoxGuestWaitEventInfo;
72
73
74#define VMMDEV_REQUEST_HEADER_VERSION (0x10001UL)
75typedef struct
76{
77 unsigned long size;
78 unsigned long version;
79 unsigned long requestType;
80 signed long rc;
81 unsigned long reserved1;
82 unsigned long reserved2;
83} VMMDevRequestHeader;
84
85#define VMMDevReq_GetMouseStatus 1
86#define VMMDevReq_SetMouseStatus 2
87#define VMMDevReq_CtlGuestFilterMask 42
88
89#define VBOXGUEST_MOUSE_GUEST_CAN_ABSOLUTE RT_BIT(0)
90#define VBOXGUEST_MOUSE_HOST_CAN_ABSOLUTE RT_BIT(1)
91#define VBOXGUEST_MOUSE_GUEST_NEEDS_HOST_CURSOR RT_BIT(2)
92#define VBOXGUEST_MOUSE_HOST_CANNOT_HWPOINTER RT_BIT(3)
93
94typedef struct
95{
96 VMMDevRequestHeader header;
97 unsigned long mouseFeatures;
98 unsigned long pointerXPos;
99 unsigned long pointerYPos;
100} VMMDevReqMouseStatus;
101
102typedef struct
103{
104 VMMDevRequestHeader header;
105 unsigned long u32OrMask;
106 unsigned long u32NotMask;
107} VMMDevCtlGuestFilterMask;
108
109#endif
110
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