Changeset 3811 in vbox for trunk/src/VBox
- Timestamp:
- Jul 24, 2007 11:37:53 AM (17 years ago)
- Location:
- trunk/src/VBox/Additions/WINNT/VBoxService
- Files:
-
- 1 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/WINNT/VBoxService/VBoxSeamless.cpp
r3804 r3811 23 23 24 24 #include "VBoxService.h" 25 #include "VBoxSeamless.h" 25 26 #include <VBoxHook.h> 26 27 #include <VBox/VBoxDev.h> … … 105 106 gCtx.hModule = 0; 106 107 return; 108 } 109 110 void VBoxSeamlessInstallHook() 111 { 112 if (gCtx.pfnVBoxInstallHook) 113 gCtx.pfnVBoxInstallHook(gCtx.hModule); 114 } 115 116 void VBoxSeamlessRemoveHook() 117 { 118 if (gCtx.pfnVBoxRemoveHook) 119 gCtx.pfnVBoxRemoveHook(); 107 120 } 108 121 … … 172 185 { 173 186 case VMMDev_Seamless_Disabled: 174 if (pCtx->pfnVBoxRemoveHook) 175 pCtx->pfnVBoxRemoveHook(); 187 PostMessage(gToolWindow, WM_VBOX_REMOVE_SEAMLESS_HOOK, 0, 0); 176 188 break; 177 189 178 190 case VMMDev_Seamless_Visible_Region: 179 if (pCtx->pfnVBoxInstallHook) 180 pCtx->pfnVBoxInstallHook(pCtx->hModule); 191 PostMessage(gToolWindow, WM_VBOX_INSTALL_SEAMLESS_HOOK, 0, 0); 181 192 break; 182 193 -
trunk/src/VBox/Additions/WINNT/VBoxService/VBoxService.cpp
r3789 r3811 21 21 22 22 #include "VBoxService.h" 23 #include "VBoxSeamless.h" 23 24 #include "resource.h" 24 25 #include <malloc.h> … … 75 76 unsigned __stdcall VBoxClipboardThread (void *pInstance); 76 77 void VBoxClipboardDestroy (const VBOXSERVICEENV *pEnv, void *pInstance); 77 /* The seamless windows service prototypes */78 int VBoxSeamlessInit (const VBOXSERVICEENV *pEnv, void **ppInstance, bool *pfStartThread);79 unsigned __stdcall VBoxSeamlessThread (void *pInstance);80 void VBoxSeamlessDestroy (const VBOXSERVICEENV *pEnv, void *pInstance);81 78 82 79 /* The service table. */ … … 900 897 break; 901 898 899 case WM_VBOX_INSTALL_SEAMLESS_HOOK: 900 901 break; 902 903 case WM_VBOX_REMOVE_SEAMLESS_HOOK: 904 break; 905 902 906 default: 903 907 return DefWindowProc(hwnd, msg, wParam, lParam); -
trunk/src/VBox/Additions/WINNT/VBoxService/VBoxService.h
r2981 r3811 57 57 } VBOXSERVICEINFO; 58 58 59 60 extern HWND gToolWindow; 61 59 62 #endif /* __VBOXSERVICE__H */
Note:
See TracChangeset
for help on using the changeset viewer.