Changeset 4267 in vbox
- Timestamp:
- Aug 21, 2007 3:48:23 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/WINNT/VBoxService/VBoxDisplay.cpp
r4266 r4267 233 233 && paDeviceModes[Id].dmBitsPerPel == BitsPerPixel) 234 234 { 235 dprintf(("VBox Service: already at desired resolution.\n"));235 dprintf(("VBoxDisplayThread : already at desired resolution.\n")); 236 236 return FALSE; 237 237 } … … 307 307 if (DeviceIoControl (gVBoxDriver, IOCTL_VBOXGUEST_CTL_FILTER_MASK, &maskInfo, sizeof (maskInfo), NULL, 0, &cbReturned, NULL)) 308 308 { 309 dprintf(("VBox Service: DeviceIOControl(CtlMask - or) succeeded\n"));309 dprintf(("VBoxDisplayThread : DeviceIOControl(CtlMask - or) succeeded\n")); 310 310 } 311 311 else 312 312 { 313 dprintf(("VBox Service: DeviceIOControl(CtlMask) failed, DisplayChangeThread exited\n"));313 dprintf(("VBoxDisplayThread : DeviceIOControl(CtlMask) failed, DisplayChangeThread exited\n")); 314 314 return -1; 315 315 } … … 323 323 if (DeviceIoControl(gVBoxDriver, IOCTL_VBOXGUEST_WAITEVENT, &waitEvent, sizeof(waitEvent), &waitEvent, sizeof(waitEvent), &cbReturned, NULL)) 324 324 { 325 dprintf(("VBox Service: DeviceIOControl succeded\n"));325 dprintf(("VBoxDisplayThread : DeviceIOControl succeded\n")); 326 326 327 327 /* are we supposed to stop? */ … … 329 329 break; 330 330 331 dprintf(("VBox Service: checking event\n"));331 dprintf(("VBoxDisplayThread : checking event\n")); 332 332 333 333 /* did we get the right event? */ 334 334 if (waitEvent.u32EventFlagsOut & VMMDEV_EVENT_DISPLAY_CHANGE_REQUEST) 335 335 { 336 dprintf(("VBox Service: going to get display change information.\n"));336 dprintf(("VBoxDisplayThread : going to get display change information.\n")); 337 337 338 338 /* We got at least one event. Read the requested resolution … … 364 364 if (fDisplayChangeQueried) 365 365 { 366 dprintf(("VBox Service: VMMDevReq_GetDisplayChangeRequest2: %dx%dx%d at %d\n", displayChangeRequest.xres, displayChangeRequest.yres, displayChangeRequest.bpp, displayChangeRequest.display));366 dprintf(("VBoxDisplayThread : VMMDevReq_GetDisplayChangeRequest2: %dx%dx%d at %d\n", displayChangeRequest.xres, displayChangeRequest.yres, displayChangeRequest.bpp, displayChangeRequest.display)); 367 367 368 368 /* Horizontal resolution must be a multiple of 8, round down. */ … … 395 395 if (EnumDisplaySettings(NULL, ENUM_REGISTRY_SETTINGS, &devMode)) 396 396 { 397 dprintf(("VBox Service: Current mode: %dx%dx%d at %d,%d\n", devMode.dmPelsWidth, devMode.dmPelsHeight, devMode.dmBitsPerPel, devMode.dmPosition.x, devMode.dmPosition.y));397 dprintf(("VBoxDisplayThread : Current mode: %dx%dx%d at %d,%d\n", devMode.dmPelsWidth, devMode.dmPelsHeight, devMode.dmBitsPerPel, devMode.dmPosition.x, devMode.dmPosition.y)); 398 398 399 399 /* Check whether a mode reset or a change is requested. */ … … 420 420 && devMode.dmBitsPerPel == displayChangeRequest.bpp) 421 421 { 422 dprintf(("VBox Service: already at desired resolution.\n"));422 dprintf(("VBoxDisplayThread : already at desired resolution.\n")); 423 423 break; 424 424 } … … 438 438 devMode.dmBitsPerPel = displayChangeRequest.bpp; 439 439 440 dprintf(("VBox Service: setting the new mode %dx%dx%d\n", devMode.dmPelsWidth, devMode.dmPelsHeight, devMode.dmBitsPerPel));440 dprintf(("VBoxDisplayThread : setting the new mode %dx%dx%d\n", devMode.dmPelsWidth, devMode.dmPelsHeight, devMode.dmBitsPerPel)); 441 441 442 442 /* set the new mode */ … … 444 444 if (status != DISP_CHANGE_SUCCESSFUL) 445 445 { 446 dprintf(("VBox Service: error from ChangeDisplaySettings: %d\n", status));446 dprintf(("VBoxDisplayThread : error from ChangeDisplaySettings: %d\n", status)); 447 447 448 448 if (status == DISP_CHANGE_BADMODE) … … 460 460 else 461 461 { 462 dprintf(("VBox Service: error from EnumDisplaySettings: %d\n", GetLastError ()));462 dprintf(("VBoxDisplayThread : error from EnumDisplaySettings: %d\n", GetLastError ())); 463 463 break; 464 464 } … … 467 467 else 468 468 { 469 dprintf(("VBox Service: vboxDisplayDriver is not active.\n"));469 dprintf(("VBoxDisplayThread : vboxDisplayDriver is not active.\n")); 470 470 } 471 471 … … 480 480 else 481 481 { 482 dprintf(("VBox Service: error from DeviceIoControl IOCTL_VBOXGUEST_VMMREQUEST\n"));482 dprintf(("VBoxDisplayThread : error from DeviceIoControl IOCTL_VBOXGUEST_VMMREQUEST\n")); 483 483 /* sleep a bit to not eat too much CPU while retrying */ 484 484 /* are we supposed to stop? */ … … 493 493 } else 494 494 { 495 dprintf(("VBox Service: error 0 from DeviceIoControl IOCTL_VBOXGUEST_WAITEVENT\n"));495 dprintf(("VBoxDisplayThread : error 0 from DeviceIoControl IOCTL_VBOXGUEST_WAITEVENT\n")); 496 496 /* sleep a bit to not eat too much CPU in case the above call always fails */ 497 497 if (WaitForSingleObject(pCtx->pEnv->hStopEvent, 10) == WAIT_OBJECT_0) … … 507 507 if (DeviceIoControl (gVBoxDriver, IOCTL_VBOXGUEST_CTL_FILTER_MASK, &maskInfo, sizeof (maskInfo), NULL, 0, &cbReturned, NULL)) 508 508 { 509 dprintf(("VBox Service: DeviceIOControl(CtlMask - not) succeeded\n"));509 dprintf(("VBoxDisplayThread : DeviceIOControl(CtlMask - not) succeeded\n")); 510 510 } 511 511 else 512 512 { 513 dprintf(("VBox Service: DeviceIOControl(CtlMask) failed\n"));514 } 515 516 dprintf(("VBox Service: finished display change request thread\n"));513 dprintf(("VBoxDisplayThread : DeviceIOControl(CtlMask) failed\n")); 514 } 515 516 dprintf(("VBoxDisplayThread : finished display change request thread\n")); 517 517 return 0; 518 518 }
Note:
See TracChangeset
for help on using the changeset viewer.