Changeset 4302 in vbox
- Timestamp:
- Aug 23, 2007 8:10:09 AM (17 years ago)
- Location:
- trunk/src/VBox/Additions/WINNT/VBoxService
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/WINNT/VBoxService/VBoxRestore.cpp
r4290 r4302 33 33 static VBOXRESTORECONTEXT gCtx = {0}; 34 34 35 static void VBoxRestoreCheckVRDP();36 37 35 38 36 int VBoxRestoreInit(const VBOXSERVICEENV *pEnv, void **ppInstance, bool *pfStartThread) … … 61 59 } 62 60 63 staticvoid VBoxRestoreCheckVRDP()61 void VBoxRestoreCheckVRDP() 64 62 { 65 63 HDC hdc; 66 64 BOOL ret; 67 65 68 69 66 /* Check VRDP activity */ 70 67 hdc = GetDC(HWND_DESKTOP); … … 125 122 { 126 123 dprintf(("VBoxService: error 0 from DeviceIoControl IOCTL_VBOXGUEST_WAITEVENT\n")); 124 125 /** @todo Don't poll, but wait for connect/disconnect events */ 126 PostMessage(gToolWindow, WM_VBOX_CHECK_VRDP, 0, 0); 127 127 /* sleep a bit to not eat too much CPU in case the above call always fails */ 128 128 if (WaitForSingleObject(pCtx->pEnv->hStopEvent, 10) == WAIT_OBJECT_0) -
trunk/src/VBox/Additions/WINNT/VBoxService/VBoxRestore.h
r4281 r4302 23 23 void VBoxRestoreDestroy (const VBOXSERVICEENV *pEnv, void *pInstance); 24 24 25 void VBoxRestoreSession (); 25 void VBoxRestoreSession(); 26 void VBoxRestoreCheckVRDP(); 26 27 27 28 #endif /* __VBOXSERVICERESTORE__H */ -
trunk/src/VBox/Additions/WINNT/VBoxService/VBoxService.cpp
r4281 r4302 23 23 #include "resource.h" 24 24 #include <malloc.h> 25 #include <VBoxGuestInternal.h> 25 26 26 27 #include "helpers.h" … … 92 93 VBoxSeamlessDestroy 93 94 }, 95 #ifdef VBOX_WITH_VRDP_SESSION_HANDLING 94 96 { 95 97 "Restore", … … 98 100 VBoxRestoreDestroy, 99 101 }, 102 #endif 100 103 { 101 104 NULL … … 437 440 break; 438 441 442 case WM_VBOX_CHECK_VRDP: 443 VBoxRestoreCheckVRDP(); 444 break; 445 439 446 default: 440 447 return DefWindowProc(hwnd, msg, wParam, lParam); -
trunk/src/VBox/Additions/WINNT/VBoxService/VBoxService.h
r4281 r4302 31 31 32 32 #define WM_VBOX_RESTORED 0x2005 33 #define WM_VBOX_CHECK_VRDP 0x2006 33 34 34 35
Note:
See TracChangeset
for help on using the changeset viewer.