VirtualBox

Ignore:
Timestamp:
Jul 11, 2008 6:00:44 PM (16 years ago)
Author:
vboxsync
Message:

Removed deprecated IOCTL namings.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/WINNT/VBoxTray/VBoxRestore.cpp

    r10374 r10541  
    8484        DWORD cbReturned;
    8585
    86         if (!DeviceIoControl (gCtx.pEnv->hDriver, (ret) ? IOCTL_VBOXGUEST_ENABLE_VRDP_SESSION : IOCTL_VBOXGUEST_DISABLE_VRDP_SESSION, NULL, 0, NULL, 0, &cbReturned, NULL))
     86        if (!DeviceIoControl (gCtx.pEnv->hDriver, (ret) ? VBOXGUEST_IOCTL_ENABLE_VRDP_SESSION : VBOXGUEST_IOCTL_DISABLE_VRDP_SESSION, NULL, 0, NULL, 0, &cbReturned, NULL))
    8787        {
    8888            dprintf(("VBoxRestoreThread: DeviceIOControl(CtlMask) failed, SeamlessChangeThread exited\n"));
     
    106106    maskInfo.u32OrMask = VMMDEV_EVENT_RESTORED;
    107107    maskInfo.u32NotMask = 0;
    108     if (DeviceIoControl (gVBoxDriver, IOCTL_VBOXGUEST_CTL_FILTER_MASK, &maskInfo, sizeof (maskInfo), NULL, 0, &cbReturned, NULL))
     108    if (DeviceIoControl (gVBoxDriver, VBOXGUEST_IOCTL_CTL_FILTER_MASK, &maskInfo, sizeof (maskInfo), NULL, 0, &cbReturned, NULL))
    109109    {
    110110        dprintf(("VBoxRestoreThread: DeviceIOControl(CtlMask - or) succeeded\n"));
     
    122122        waitEvent.u32TimeoutIn = 5000;
    123123        waitEvent.u32EventMaskIn = VMMDEV_EVENT_RESTORED;
    124         if (DeviceIoControl(gVBoxDriver, IOCTL_VBOXGUEST_WAITEVENT, &waitEvent, sizeof(waitEvent), &waitEvent, sizeof(waitEvent), &cbReturned, NULL))
     124        if (DeviceIoControl(gVBoxDriver, VBOXGUEST_IOCTL_WAITEVENT, &waitEvent, sizeof(waitEvent), &waitEvent, sizeof(waitEvent), &cbReturned, NULL))
    125125        {
    126126            dprintf(("VBoxRestoreThread: DeviceIOControl succeded\n"));
     
    141141        else
    142142        {
    143             dprintf(("VBoxTray: error 0 from DeviceIoControl IOCTL_VBOXGUEST_WAITEVENT\n"));
     143            dprintf(("VBoxTray: error 0 from DeviceIoControl VBOXGUEST_IOCTL_WAITEVENT\n"));
    144144
    145145            /* sleep a bit to not eat too much CPU in case the above call always fails */
     
    155155    maskInfo.u32OrMask = 0;
    156156    maskInfo.u32NotMask = VMMDEV_EVENT_RESTORED;
    157     if (DeviceIoControl (gVBoxDriver, IOCTL_VBOXGUEST_CTL_FILTER_MASK, &maskInfo, sizeof (maskInfo), NULL, 0, &cbReturned, NULL))
     157    if (DeviceIoControl (gVBoxDriver, VBOXGUEST_IOCTL_CTL_FILTER_MASK, &maskInfo, sizeof (maskInfo), NULL, 0, &cbReturned, NULL))
    158158    {
    159159        dprintf(("VBoxRestoreThread: DeviceIOControl(CtlMask - not) succeeded\n"));
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