Changeset 4301 in vbox for trunk/src/VBox/Additions/WINNT/VBoxGuest
- Timestamp:
- Aug 23, 2007 8:09:04 AM (17 years ago)
- Location:
- trunk/src/VBox/Additions/WINNT/VBoxGuest
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/WINNT/VBoxGuest/Makefile.kmk
r4071 r4301 30 30 VBoxGuest_DEFS = LOG_TO_BACKDOOR VBGL_VBOXGUEST VBOX_HGCM VBOX_REBOOT_ON_UNINSTALL 31 31 #VBoxGuest_DEFS += LOG_ENABLED 32 VBoxGuest_INCS = ../include 32 33 VBoxGuest_LDFLAGS = -Entry:DriverEntry@8 33 34 VBoxGuest_SOURCES = \ -
trunk/src/VBox/Additions/WINNT/VBoxGuest/VBoxGuest.cpp
r4145 r4301 33 33 #include <stdio.h> 34 34 #include <VBox/VBoxGuestLib.h> 35 #include <VBoxGuestInternal.h> 35 36 36 37 /******************************************************************************* … … 76 77 #pragma alloc_text (PAGE, VBoxGuestShutdown) 77 78 #pragma alloc_text (PAGE, VBoxGuestNotSupportedStub) 78 /* Note: at least the isr handler should be in non-pag able memory! */79 /* Note: at least the isr handler should be in non-pageable memory! */ 79 80 /*#pragma alloc_text (PAGE, VBoxGuestDpcHandler) 80 81 #pragma alloc_text (PAGE, VBoxGuestIsrHandler) */ … … 744 745 } break; 745 746 #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 746 775 747 776 default: -
trunk/src/VBox/Additions/WINNT/VBoxGuest/VBoxGuest_Internal.h
r4071 r4301 183 183 KEVENT keventNotification; 184 184 185 /* Old Windows session id */ 186 ULONG ulOldActiveConsoleId; 187 188 /* VRDP hook state */ 189 BOOLEAN fVRDPEnabled; 190 185 191 /* Preallocated VMMDevEvents for IRQ handler */ 186 192 VMMDevEvents *irqAckEvents;
Note:
See TracChangeset
for help on using the changeset viewer.