[4171] | 1 | /** @file
|
---|
[21224] | 2 | * VBoxGuest - VirtualBox Guest Additions Driver Interface, 16-bit (OS/2) header.
|
---|
[4171] | 3 | */
|
---|
| 4 |
|
---|
| 5 | /*
|
---|
[44528] | 6 | * Copyright (C) 2006-2010 Oracle Corporation
|
---|
[4171] | 7 | *
|
---|
[4478] | 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
|
---|
[5999] | 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.
|
---|
[4171] | 24 | */
|
---|
| 25 |
|
---|
| 26 | #ifndef ___VBox_VBoxGuest16_h
|
---|
| 27 | #define ___VBox_VBoxGuest16_h
|
---|
| 28 |
|
---|
[21224] | 29 | #define RT_BIT(bit) (1UL << (bit))
|
---|
[4171] | 30 |
|
---|
| 31 | #define VBOXGUEST_DEVICE_NAME "vboxgst$"
|
---|
| 32 |
|
---|
| 33 | /* aka VBOXGUESTOS2IDCCONNECT */
|
---|
| 34 | typedef struct VBGOS2IDC
|
---|
| 35 | {
|
---|
| 36 | unsigned long u32Version;
|
---|
| 37 | unsigned long u32Session;
|
---|
| 38 | unsigned long pfnServiceEP;
|
---|
[21224] | 39 | short (__cdecl __far *fpfnServiceEP)(unsigned long u32Session, unsigned short iFunction,
|
---|
[4171] | 40 | void __far *fpvData, unsigned short cbData, unsigned short __far *pcbDataReturned);
|
---|
| 41 | unsigned long fpfnServiceAsmEP;
|
---|
| 42 | } VBGOS2IDC;
|
---|
| 43 | typedef VBGOS2IDC *PVBGOS2IDC;
|
---|
| 44 |
|
---|
| 45 | #define VBOXGUEST_IOCTL_WAITEVENT 2
|
---|
| 46 | #define VBOXGUEST_IOCTL_VMMREQUEST 3
|
---|
| 47 | #define VBOXGUEST_IOCTL_OS2_IDC_DISCONNECT 48
|
---|
| 48 |
|
---|
| 49 | #define VBOXGUEST_WAITEVENT_OK 0
|
---|
| 50 | #define VBOXGUEST_WAITEVENT_TIMEOUT 1
|
---|
| 51 | #define VBOXGUEST_WAITEVENT_INTERRUPTED 2
|
---|
| 52 | #define VBOXGUEST_WAITEVENT_ERROR 3
|
---|
| 53 |
|
---|
| 54 | typedef struct _VBoxGuestWaitEventInfo
|
---|
| 55 | {
|
---|
| 56 | unsigned long u32TimeoutIn;
|
---|
| 57 | unsigned long u32EventMaskIn;
|
---|
| 58 | unsigned long u32Result;
|
---|
| 59 | unsigned long u32EventFlagsOut;
|
---|
| 60 | } VBoxGuestWaitEventInfo;
|
---|
| 61 |
|
---|
| 62 |
|
---|
| 63 | #define VMMDEV_REQUEST_HEADER_VERSION (0x10001UL)
|
---|
| 64 | typedef struct
|
---|
| 65 | {
|
---|
| 66 | unsigned long size;
|
---|
| 67 | unsigned long version;
|
---|
| 68 | unsigned long requestType;
|
---|
| 69 | signed long rc;
|
---|
| 70 | unsigned long reserved1;
|
---|
| 71 | unsigned long reserved2;
|
---|
| 72 | } VMMDevRequestHeader;
|
---|
| 73 |
|
---|
| 74 | #define VMMDevReq_GetMouseStatus 1
|
---|
| 75 | #define VMMDevReq_SetMouseStatus 2
|
---|
| 76 | #define VMMDevReq_CtlGuestFilterMask 42
|
---|
| 77 |
|
---|
[21226] | 78 | #define VMMDEV_MOUSE_GUEST_CAN_ABSOLUTE RT_BIT(0)
|
---|
[32831] | 79 | #define VMMDEV_MOUSE_HOST_WANTS_ABSOLUTE RT_BIT(1)
|
---|
[21226] | 80 | #define VMMDEV_MOUSE_GUEST_NEEDS_HOST_CURSOR RT_BIT(2)
|
---|
| 81 | #define VMMDEV_MOUSE_HOST_CANNOT_HWPOINTER RT_BIT(3)
|
---|
[4171] | 82 |
|
---|
| 83 | typedef struct
|
---|
| 84 | {
|
---|
| 85 | VMMDevRequestHeader header;
|
---|
| 86 | unsigned long mouseFeatures;
|
---|
| 87 | unsigned long pointerXPos;
|
---|
| 88 | unsigned long pointerYPos;
|
---|
| 89 | } VMMDevReqMouseStatus;
|
---|
| 90 |
|
---|
| 91 | typedef struct
|
---|
| 92 | {
|
---|
| 93 | VMMDevRequestHeader header;
|
---|
| 94 | unsigned long u32OrMask;
|
---|
| 95 | unsigned long u32NotMask;
|
---|
| 96 | } VMMDevCtlGuestFilterMask;
|
---|
| 97 |
|
---|
[21224] | 98 |
|
---|
| 99 | /* From VMMDev.h: */
|
---|
| 100 | #define VMMDEV_VERSION 0x00010004UL
|
---|
| 101 |
|
---|
| 102 | #define VMMDEV_EVENT_MOUSE_CAPABILITIES_CHANGED RT_BIT(0)
|
---|
| 103 | #define VMMDEV_EVENT_HGCM RT_BIT(1)
|
---|
| 104 | #define VMMDEV_EVENT_DISPLAY_CHANGE_REQUEST RT_BIT(2)
|
---|
| 105 | #define VMMDEV_EVENT_JUDGE_CREDENTIALS RT_BIT(3)
|
---|
| 106 | #define VMMDEV_EVENT_RESTORED RT_BIT(4)
|
---|
| 107 |
|
---|
[4171] | 108 | #endif
|
---|
| 109 |
|
---|