VirtualBox

Ignore:
Timestamp:
Jul 21, 2008 2:17:40 PM (16 years ago)
Author:
vboxsync
Message:

Windows VBoxService: Getting rid of custom logging routines; now using the R3 guest lib.

File:
1 edited

Legend:

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

    r10541 r10777  
    4343int VBoxRestoreInit(const VBOXSERVICEENV *pEnv, void **ppInstance, bool *pfStartThread)
    4444{
    45     dprintf(("VBoxRestoreInit\n"));
     45    Log(("VBoxRestoreInit\n"));
    4646
    4747    gCtx.pEnv      = pEnv;
     
    5858void VBoxRestoreDestroy(const VBOXSERVICEENV *pEnv, void *pInstance)
    5959{
    60     dprintf(("VBoxRestoreDestroy\n"));
     60    Log(("VBoxRestoreDestroy\n"));
    6161    return;
    6262}
     
    7777    /* send to display driver */
    7878    ret = ExtEscape(hdc, VBOXESC_ISVRDPACTIVE, 0, NULL, 0, NULL);
    79     dprintf(("VBoxRestoreSession -> VRDP activate state = %d\n", ret));
     79    Log(("VBoxRestoreSession -> VRDP activate state = %d\n", ret));
    8080    ReleaseDC(HWND_DESKTOP, hdc);
    8181
     
    8686        if (!DeviceIoControl (gCtx.pEnv->hDriver, (ret) ? VBOXGUEST_IOCTL_ENABLE_VRDP_SESSION : VBOXGUEST_IOCTL_DISABLE_VRDP_SESSION, NULL, 0, NULL, 0, &cbReturned, NULL))
    8787        {
    88             dprintf(("VBoxRestoreThread: DeviceIOControl(CtlMask) failed, SeamlessChangeThread exited\n"));
     88            Log(("VBoxRestoreThread: DeviceIOControl(CtlMask) failed, SeamlessChangeThread exited\n"));
    8989        }
    9090        gCtx.fRDPState = ret;
     
    108108    if (DeviceIoControl (gVBoxDriver, VBOXGUEST_IOCTL_CTL_FILTER_MASK, &maskInfo, sizeof (maskInfo), NULL, 0, &cbReturned, NULL))
    109109    {
    110         dprintf(("VBoxRestoreThread: DeviceIOControl(CtlMask - or) succeeded\n"));
     110        Log(("VBoxRestoreThread: DeviceIOControl(CtlMask - or) succeeded\n"));
    111111    }
    112112    else
    113113    {
    114         dprintf(("VBoxRestoreThread: DeviceIOControl(CtlMask) failed, SeamlessChangeThread exited\n"));
     114        Log(("VBoxRestoreThread: DeviceIOControl(CtlMask) failed, SeamlessChangeThread exited\n"));
    115115        return 0;
    116116    }
     
    124124        if (DeviceIoControl(gVBoxDriver, VBOXGUEST_IOCTL_WAITEVENT, &waitEvent, sizeof(waitEvent), &waitEvent, sizeof(waitEvent), &cbReturned, NULL))
    125125        {
    126             dprintf(("VBoxRestoreThread: DeviceIOControl succeded\n"));
     126            Log(("VBoxRestoreThread: DeviceIOControl succeded\n"));
    127127
    128128            /* are we supposed to stop? */
     
    130130                break;
    131131
    132             dprintf(("VBoxRestoreThread: checking event\n"));
     132            Log(("VBoxRestoreThread: checking event\n"));
    133133
    134134            /* did we get the right event? */
     
    141141        else
    142142        {
    143             dprintf(("VBoxTray: error 0 from DeviceIoControl VBOXGUEST_IOCTL_WAITEVENT\n"));
     143            Log(("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 */
     
    157157    if (DeviceIoControl (gVBoxDriver, VBOXGUEST_IOCTL_CTL_FILTER_MASK, &maskInfo, sizeof (maskInfo), NULL, 0, &cbReturned, NULL))
    158158    {
    159         dprintf(("VBoxRestoreThread: DeviceIOControl(CtlMask - not) succeeded\n"));
     159        Log(("VBoxRestoreThread: DeviceIOControl(CtlMask - not) succeeded\n"));
    160160    }
    161161    else
    162162    {
    163         dprintf(("VBoxRestoreThread: DeviceIOControl(CtlMask) failed\n"));
     163        Log(("VBoxRestoreThread: DeviceIOControl(CtlMask) failed\n"));
    164164    }
    165165
    166     dprintf(("VBoxRestoreThread: finished seamless change request thread\n"));
     166    Log(("VBoxRestoreThread: finished seamless change request thread\n"));
    167167    return 0;
    168168}
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