VirtualBox

Ignore:
Timestamp:
Aug 23, 2007 8:09:04 AM (17 years ago)
Author:
vboxsync
Message:

Disabled code for VRDP status checks

File:
1 edited

Legend:

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

    r4145 r4301  
    3333#include <stdio.h>
    3434#include <VBox/VBoxGuestLib.h>
     35#include <VBoxGuestInternal.h>
    3536
    3637/*******************************************************************************
     
    7677#pragma alloc_text (PAGE, VBoxGuestShutdown)
    7778#pragma alloc_text (PAGE, VBoxGuestNotSupportedStub)
    78 /* Note: at least the isr handler should be in non-pagable memory! */
     79/* Note: at least the isr handler should be in non-pageable memory! */
    7980/*#pragma alloc_text (PAGE, VBoxGuestDpcHandler)
    8081 #pragma alloc_text (PAGE, VBoxGuestIsrHandler) */
     
    744745        } break;
    745746#endif /* VBOX_HGCM */
     747
     748#ifdef VBOX_WITH_VRDP_SESSION_HANDLING
     749        case IOCTL_VBOXGUEST_ENABLE_VRDP_SESSION:
     750        {
     751            if (!pDevExt->fVRDPEnabled)
     752            {
     753                KUSER_SHARED_DATA *pSharedUserData = (KUSER_SHARED_DATA *)KI_USER_SHARED_DATA;
     754
     755                pDevExt->fVRDPEnabled            = TRUE;
     756                pDevExt->ulOldActiveConsoleId    = pSharedUserData->ActiveConsoleId;
     757                pSharedUserData->ActiveConsoleId = 2;
     758            }
     759            break;
     760        }
     761
     762        case IOCTL_VBOXGUEST_DISABLE_VRDP_SESSION:
     763        {
     764            if (pDevExt->fVRDPEnabled)
     765            {
     766                KUSER_SHARED_DATA *pSharedUserData = (KUSER_SHARED_DATA *)KI_USER_SHARED_DATA;
     767
     768                pDevExt->fVRDPEnabled            = FALSE;
     769                pSharedUserData->ActiveConsoleId = pDevExt->ulOldActiveConsoleId;
     770                pDevExt->ulOldActiveConsoleId    = 0;
     771            }
     772            break;
     773        }
     774#endif
    746775
    747776        default:
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