Changeset 10374 in vbox for trunk/src/VBox/Additions/WINNT/VBoxTray
- Timestamp:
- Jul 8, 2008 2:57:59 PM (16 years ago)
- Location:
- trunk/src/VBox/Additions/WINNT/VBoxTray
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/WINNT/VBoxTray/VBoxDisplay.cpp
r8887 r10374 57 57 if (NULL == hUser) 58 58 { 59 dprintf(("VBox Service: Could not get module handle of USER32.DLL!\n"));59 dprintf(("VBoxTray: Could not get module handle of USER32.DLL!\n")); 60 60 return VERR_NOT_IMPLEMENTED; 61 61 } … … 63 63 { 64 64 *(uintptr_t *)&gCtx.pfnChangeDisplaySettingsEx = (uintptr_t)GetProcAddress(hUser, "ChangeDisplaySettingsExA"); 65 dprintf(("VBox Service: pfnChangeDisplaySettingsEx = %p\n", gCtx.pfnChangeDisplaySettingsEx));65 dprintf(("VBoxTray: pfnChangeDisplaySettingsEx = %p\n", gCtx.pfnChangeDisplaySettingsEx)); 66 66 67 67 *(uintptr_t *)&gCtx.pfnEnumDisplayDevices = (uintptr_t)GetProcAddress(hUser, "EnumDisplayDevicesA"); 68 dprintf(("VBox Service: pfnEnumDisplayDevices = %p\n", gCtx.pfnEnumDisplayDevices));68 dprintf(("VBoxTray: pfnEnumDisplayDevices = %p\n", gCtx.pfnEnumDisplayDevices)); 69 69 } 70 70 else if (OSinfo.dwMajorVersion <= 4) /* Windows NT 4.0 */ … … 74 74 else /* Unsupported platform */ 75 75 { 76 dprintf(("VBox Service: Warning, display for platform not handled yet!\n"));76 dprintf(("VBoxTray: Warning, display for platform not handled yet!\n")); 77 77 return VERR_NOT_IMPLEMENTED; 78 78 } 79 79 80 dprintf(("VBox Service: Display init successful.\n"));80 dprintf(("VBoxTray: Display init successful.\n")); 81 81 82 82 *pfStartThread = true; -
trunk/src/VBox/Additions/WINNT/VBoxTray/VBoxRestore.cpp
r8857 r10374 141 141 else 142 142 { 143 dprintf(("VBox Service: error 0 from DeviceIoControl IOCTL_VBOXGUEST_WAITEVENT\n"));143 dprintf(("VBoxTray: error 0 from DeviceIoControl IOCTL_VBOXGUEST_WAITEVENT\n")); 144 144 145 145 /* sleep a bit to not eat too much CPU in case the above call always fails */ -
trunk/src/VBox/Additions/WINNT/VBoxTray/VBoxSeamless.cpp
r8857 r10374 324 324 if (waitEvent.u32EventFlagsOut & VMMDEV_EVENT_SEAMLESS_MODE_CHANGE_REQUEST) 325 325 { 326 dprintf(("VBox Service: going to get seamless change information.\n"));326 dprintf(("VBoxTray: going to get seamless change information.\n")); 327 327 328 328 /* We got at least one event. Read the requested resolution … … 395 395 else 396 396 { 397 dprintf(("VBox Service: error 0 from DeviceIoControl IOCTL_VBOXGUEST_WAITEVENT\n"));397 dprintf(("VBoxTray: error 0 from DeviceIoControl IOCTL_VBOXGUEST_WAITEVENT\n")); 398 398 /* sleep a bit to not eat too much CPU in case the above call always fails */ 399 399 if (WaitForSingleObject(pCtx->pEnv->hStopEvent, 10) == WAIT_OBJECT_0) -
trunk/src/VBox/Additions/WINNT/VBoxTray/VBoxTray.cpp
r8897 r10374 150 150 static int vboxStartServices (VBOXSERVICEENV *pEnv, VBOXSERVICEINFO *pTable) 151 151 { 152 dprintf(("VBox Service: Starting services...\n"));152 dprintf(("VBoxTray: Starting services...\n")); 153 153 154 154 pEnv->hStopEvent = CreateEvent(NULL, TRUE, FALSE, NULL); … … 263 263 void WINAPI VBoxServiceStart(void) 264 264 { 265 dprintf(("VBox Service: Start\n"));265 dprintf(("VBoxTray: Start\n")); 266 266 267 267 VBOXSERVICEENV svcEnv; … … 279 279 if (gVBoxDriver == INVALID_HANDLE_VALUE) 280 280 { 281 dprintf(("VBox Service: could not open VBox Guest Additions driver! Please install / start it first! rc = %d\n", GetLastError()));281 dprintf(("VBoxTray: could not open VBox Guest Additions driver! Please install / start it first! rc = %d\n", GetLastError())); 282 282 status = ERROR_GEN_FAILURE; 283 283 } 284 284 285 dprintf(("VBox Service: Driver h %p, st %p\n", gVBoxDriver, status));285 dprintf(("VBoxTray: Driver h %p, st %p\n", gVBoxDriver, status)); 286 286 287 287 if (status == NO_ERROR) … … 298 298 } 299 299 300 dprintf(("VBox Service: Class st %p\n", status));300 dprintf(("VBoxTray: Class st %p\n", status)); 301 301 302 302 if (status == NO_ERROR) … … 325 325 } 326 326 327 dprintf(("VBox Service: Window h %p, st %p\n", gToolWindow, status));327 dprintf(("VBoxTray: Window h %p, st %p\n", gToolWindow, status)); 328 328 329 329 if (status == NO_ERROR) … … 332 332 if (gStopSem == NULL) 333 333 { 334 dprintf(("VBox Service: CreateEvent for Stopping failed: rc = %d\n", GetLastError()));334 dprintf(("VBoxTray: CreateEvent for Stopping failed: rc = %d\n", GetLastError())); 335 335 return; 336 336 } … … 354 354 if (GetVersionEx(&info)) 355 355 { 356 dprintf(("VBox Service: Windows version major %d minor %d\n", info.dwMajorVersion, info.dwMinorVersion));356 dprintf(("VBoxTray: Windows version major %d minor %d\n", info.dwMajorVersion, info.dwMinorVersion)); 357 357 dwMajorVersion = info.dwMajorVersion; 358 358 } … … 399 399 if (ghSeamlessNotifyEvent == NULL) 400 400 { 401 dprintf(("VBox Service: CreateEvent for Seamless failed: rc = %d\n", GetLastError()));401 dprintf(("VBoxTray: CreateEvent for Seamless failed: rc = %d\n", GetLastError())); 402 402 return; 403 403 } … … 441 441 sprintf(ndata.szTip, "Sun xVM VirtualBox Guest Additions %d.%d.%dr%d", VBOX_VERSION_MAJOR, VBOX_VERSION_MINOR, VBOX_VERSION_BUILD, VBOX_SVN_REV); 442 442 443 dprintf(("VBox Service: ndata.hWnd %08X, ndata.hIcon = %p\n", ndata.hWnd, ndata.hIcon));443 dprintf(("VBoxTray: ndata.hWnd %08X, ndata.hIcon = %p\n", ndata.hWnd, ndata.hIcon)); 444 444 445 445 /* Boost thread priority to make sure we wake up early for seamless window notifications (not sure if it actually makes any difference though) */ … … 457 457 dwEventCount = 1; 458 458 459 dprintf(("VBox Service: Number of events to wait in main loop: %ld\n", dwEventCount));459 dprintf(("VBoxTray: Number of events to wait in main loop: %ld\n", dwEventCount)); 460 460 461 461 while(true) … … 464 464 waitResult = waitResult - WAIT_OBJECT_0; 465 465 466 dprintf(("VBox Service: Wait result = %ld.\n", waitResult));466 dprintf(("VBoxTray: Wait result = %ld.\n", waitResult)); 467 467 468 468 if (waitResult == 0) 469 469 { 470 dprintf(("VBox Service: Event 'Exit' triggered.\n"));470 dprintf(("VBoxTray: Event 'Exit' triggered.\n")); 471 471 /* exit */ 472 472 break; … … 474 474 else if ((waitResult == 1) && (ghSeamlessNotifyEvent!=0)) /* Only jump in, if seamless is active! */ 475 475 { 476 dprintf(("VBox Service: Event 'Seamless' triggered.\n"));476 dprintf(("VBoxTray: Event 'Seamless' triggered.\n")); 477 477 478 478 /* seamless window notification */ … … 485 485 while (PeekMessage(&msg, NULL, 0, 0, PM_REMOVE)) 486 486 { 487 dprintf(("VBox Service: msg %p\n", msg.message));487 dprintf(("VBoxTray: msg %p\n", msg.message)); 488 488 if (msg.message == WM_QUIT) 489 489 { 490 dprintf(("VBox Service: WM_QUIT!\n"));490 dprintf(("VBoxTray: WM_QUIT!\n")); 491 491 SetEvent(gStopSem); 492 492 continue; … … 499 499 { 500 500 fTrayIconCreated = Shell_NotifyIcon(NIM_ADD, &ndata); 501 dprintf(("VBox Service: fTrayIconCreated = %d, err %08X\n", fTrayIconCreated, GetLastError ()));502 } 503 } 504 } 505 506 dprintf(("VBox Service: returned from main loop, exiting...\n"));501 dprintf(("VBoxTray: fTrayIconCreated = %d, err %08X\n", fTrayIconCreated, GetLastError ())); 502 } 503 } 504 } 505 506 dprintf(("VBoxTray: returned from main loop, exiting...\n")); 507 507 508 508 /* remove the system tray icon */ 509 509 Shell_NotifyIcon(NIM_DELETE, &ndata); 510 510 511 dprintf(("VBox Service: waiting for display change thread...\n"));511 dprintf(("VBoxTray: waiting for display change thread...\n")); 512 512 513 513 vboxStopServices (&svcEnv, vboxServiceTable); 514 514 515 dprintf(("VBox Service: destroying tool window...\n"));515 dprintf(("VBoxTray: destroying tool window...\n")); 516 516 517 517 /* destroy the tool window */ … … 524 524 CloseHandle(ghSeamlessNotifyEvent); 525 525 526 dprintf(("VBox Service: leaving service main function\n"));526 dprintf(("VBoxTray: leaving service main function\n")); 527 527 528 528 return; … … 546 546 } 547 547 548 dprintf(("VBox Service: Started.\n"));548 dprintf(("VBoxTray: Started.\n")); 549 549 550 550 gInstance = hInstance; 551 551 VBoxServiceStart(); 552 552 553 dprintf(("VBox Service: Ended.\n"));553 dprintf(("VBoxTray: Ended.\n")); 554 554 555 555 /* Release instance mutex. */ -
trunk/src/VBox/Additions/WINNT/VBoxTray/VBoxVRDP.cpp
r8857 r10374 410 410 else 411 411 { 412 dprintf(("VBox Service: error from DeviceIoControl IOCTL_VBOXGUEST_VMMREQUEST\n"));412 dprintf(("VBoxTray: error from DeviceIoControl IOCTL_VBOXGUEST_VMMREQUEST\n")); 413 413 414 414 /* sleep a bit to not eat too much CPU in case the above call always fails */ … … 423 423 else 424 424 { 425 dprintf(("VBox Service: error from DeviceIoControl IOCTL_VBOXGUEST_WAITEVENT\n"));425 dprintf(("VBoxTray: error from DeviceIoControl IOCTL_VBOXGUEST_WAITEVENT\n")); 426 426 427 427 /* sleep a bit to not eat too much CPU in case the above call always fails */
Note:
See TracChangeset
for help on using the changeset viewer.