VirtualBox

Changeset 10522 in vbox


Ignore:
Timestamp:
Jul 11, 2008 1:07:00 PM (17 years ago)
Author:
vboxsync
Message:

r=bird: Added a todo: IOCTL_CODE should not be #defined.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/VBox/VBoxGuest.h

    r10518 r10522  
    11011101#if defined(RT_OS_WINDOWS)
    11021102/* @todo Remove IOCTL_CODE later! Integrate it in VBOXGUEST_IOCTL_CODE below. */
     1103/** @todo r=bird: IOCTL_CODE is supposedly defined in some header included by Windows.h or ntddk.h, which is why it wasn't in the #if 0 earlier. See HostDrivers/Support/SUPDrvIOC.h... */
    11031104# define IOCTL_CODE(DeviceType, Function, Method, Access, DataSize_ignored) \
    11041105  ( ((DeviceType) << 16) | ((Access) << 14) | ((Function) << 2) | (Method))
     
    11401141
    11411142/** IOCTL to VBoxGuest to query the VMMDev IO port region start. */
    1142 # define VBOXGUEST_IOCTL_GETVMMDEVPORT  VBOXGUEST_IOCTL_CODE(1, sizeof(VBoxGuestPortInfo))
    1143 # define IOCTL_VBOXGUEST_GETVMMDEVPORT  VBOXGUEST_IOCTL_GETVMMDEVPORT
     1143#define VBOXGUEST_IOCTL_GETVMMDEVPORT   VBOXGUEST_IOCTL_CODE(1, sizeof(VBoxGuestPortInfo))
     1144#define IOCTL_VBOXGUEST_GETVMMDEVPORT   VBOXGUEST_IOCTL_GETVMMDEVPORT
    11441145
    11451146#pragma pack(4)
     
    11511152
    11521153/** IOCTL to VBoxGuest to wait for a VMMDev host notification */
    1153 # define VBOXGUEST_IOCTL_WAITEVENT      VBOXGUEST_IOCTL_CODE(2, sizeof(VBoxGuestWaitEventInfo))
    1154 # define IOCTL_VBOXGUEST_WAITEVENT      VBOXGUEST_IOCTL_WAITEVENT
     1154#define VBOXGUEST_IOCTL_WAITEVENT       VBOXGUEST_IOCTL_CODE(2, sizeof(VBoxGuestWaitEventInfo))
     1155#define IOCTL_VBOXGUEST_WAITEVENT       VBOXGUEST_IOCTL_WAITEVENT
    11551156
    11561157/** IOCTL to VBoxGuest to interrupt (cancel) any pending WAITEVENTs and return.
    11571158 * Handled inside the guest additions and not seen by the host at all.
    11581159 * @see VBOXGUEST_IOCTL_WAITEVENT */
    1159 # define VBOXGUEST_IOCTL_CANCEL_ALL_WAITEVENTS    VBOXGUEST_IOCTL_CODE(5, 0)
     1160#define VBOXGUEST_IOCTL_CANCEL_ALL_WAITEVENTS       VBOXGUEST_IOCTL_CODE(5, 0)
    11601161
    11611162/**
     
    11891190 * @remark  The data buffer for this IOCtl has an variable size, keep this in mind
    11901191 *          on systems where this matters. */
    1191 # define VBOXGUEST_IOCTL_VMMREQUEST(Size)   VBOXGUEST_IOCTL_CODE(3, (Size))
    1192 # define IOCTL_VBOXGUEST_VMMREQUEST         VBOXGUEST_IOCTL_VMMREQUEST(sizeof(VMMDevRequestHeader))
     1192#define VBOXGUEST_IOCTL_VMMREQUEST(Size)    VBOXGUEST_IOCTL_CODE(3, (Size))
     1193#define IOCTL_VBOXGUEST_VMMREQUEST          VBOXGUEST_IOCTL_VMMREQUEST(sizeof(VMMDevRequestHeader))
    11931194
    11941195/** Input and output buffer layout of the IOCTL_VBOXGUEST_CTL_FILTER_MASK. */
     
    12011202
    12021203/** IOCTL to VBoxGuest to control event filter mask. */
    1203 # define VBOXGUEST_IOCTL_CTL_FILTER_MASK            VBOXGUEST_IOCTL_CODE(4, sizeof(VBoxGuestFilterMaskInfo))
    1204 # define IOCTL_VBOXGUEST_CTL_FILTER_MASK            VBOXGUEST_IOCTL_CTL_FILTER_MASK
     1204#define VBOXGUEST_IOCTL_CTL_FILTER_MASK             VBOXGUEST_IOCTL_CODE(4, sizeof(VBoxGuestFilterMaskInfo))
     1205#define IOCTL_VBOXGUEST_CTL_FILTER_MASK             VBOXGUEST_IOCTL_CTL_FILTER_MASK
    12051206
    12061207/** IOCTL to VBoxGuest to check memory ballooning. */
    1207 # define VBOXGUEST_IOCTL_CTL_CHECK_BALLOON_MASK     VBOXGUEST_IOCTL_CODE(7, 100)
    1208 # define IOCTL_VBOXGUEST_CTL_CHECK_BALLOON          VBOXGUEST_IOCTL_CTL_CHECK_BALLOON_MASK
     1208#define VBOXGUEST_IOCTL_CTL_CHECK_BALLOON_MASK      VBOXGUEST_IOCTL_CODE(7, 100)
     1209#define IOCTL_VBOXGUEST_CTL_CHECK_BALLOON           VBOXGUEST_IOCTL_CTL_CHECK_BALLOON_MASK
    12091210
    12101211/** IOCTL to VBoxGuest to perform backdoor logging. */
    1211 # define VBOXGUEST_IOCTL_LOG(Size)                  VBOXGUEST_IOCTL_CODE(6, (Size))
     1212#define VBOXGUEST_IOCTL_LOG(Size)                   VBOXGUEST_IOCTL_CODE(6, (Size))
    12121213
    12131214
     
    12161217 * therefore packing must be defined explicitely.
    12171218 */
    1218 #pragma pack(1)
     1219# pragma pack(1)
    12191220typedef struct _VBoxGuestHGCMConnectInfo
    12201221{
     
    12381239    /* Parameters follow in form HGCMFunctionParameter aParms[cParms] */
    12391240} VBoxGuestHGCMCallInfo;
    1240 #pragma pack()
     1241# pragma pack()
    12411242
    12421243# define VBOXGUEST_IOCTL_HGCM_CONNECT       VBOXGUEST_IOCTL_CODE(16, sizeof(VBoxGuestHGCMConnectInfo))
     
    12491250# define IOCTL_VBOXGUEST_CLIPBOARD_CONNECT  VBOXGUEST_IOCTL_CLIPBOARD_CONNECT
    12501251
    1251 #define VBOXGUEST_HGCM_CALL_PARMS(a) ((HGCMFunctionParameter *)((uint8_t *)(a) + sizeof (VBoxGuestHGCMCallInfo)))
     1252# define VBOXGUEST_HGCM_CALL_PARMS(a)      ((HGCMFunctionParameter *)((uint8_t *)(a) + sizeof (VBoxGuestHGCMCallInfo)))
    12521253
    12531254#endif /* VBOX_HGCM */
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette