Lines Matching refs:winEr
94 DWORD winEr = gCtx.pfnGetDisplayConfigBufferSizes(fFlags, &cPathInfoArray, &cModeInfoArray);
95 if (winEr != ERROR_SUCCESS)
98 return winEr;
115 winEr = gCtx.pfnQueryDisplayConfig(fFlags, &cPathInfoArray, pPathInfoArray, &cModeInfoArray, pModeInfoArray, NULL);
116 if (winEr != ERROR_SUCCESS)
121 return winEr;
189 DWORD winEr = vboxDispIfWddmDcCreate(&DispCfg, QDC_ALL_PATHS);
190 if (winEr != ERROR_SUCCESS)
192 WARN(("VBoxTray:(WDDM) vboxDispIfWddmDcCreate Failed winEr %d\n", winEr));
193 return winEr;
294 DWORD winEr = vboxDispIfWddmDcSettingsModeAdd(pCfg, &iSrcMode);
295 if (winEr != ERROR_SUCCESS)
297 WARN(("VBoxTray:(WDDM) vboxDispIfWddmDcSettingsModeAdd Failed winEr %d\n", winEr));
298 return winEr;
365 DWORD winEr = gCtx.pfnSetDisplayConfig(pCfg->cPathInfoArray, pCfg->pPathInfoArray, pCfg->cModeInfoArray, pCfg->pModeInfoArray, fFlags);
366 if (winEr != ERROR_SUCCESS)
368 return winEr;
408 DWORD winEr = vboxDispIfWddmDcQueryNumDisplays(&cDisplays);
409 if (winEr != ERROR_SUCCESS)
411 WARN(("VBoxTray:(WDDM) vboxDispIfWddmDcQueryNumDisplays Failed winEr %d\n", winEr));
412 return winEr;
440 winEr = vboxDispIfWddmDcCreate(&AllCfg, QDC_ALL_PATHS);
441 if (winEr != ERROR_SUCCESS)
443 WARN(("VBoxTray:(WDDM) vboxDispIfWddmDcCreate Failed winEr %d\n", winEr));
445 return winEr;
676 DWORD winEr = ERROR_INVALID_STATE;
695 winEr = GetLastError();
696 WARN(("CreateDC failed %d", winEr));
704 winEr = GetLastError();
705 WARN(("EnumDisplayDevices failed %d", winEr));
710 WARN(("vboxDispIfWDDMAdpHdcCreate failure branch %d", winEr));
711 return winEr;
716 DWORD winEr = ERROR_SUCCESS;
737 winEr = ERROR_SUCCESS;
741 winEr = ERROR_GEN_FAILURE;
746 return winEr;
1075 DWORD winEr = GetLastError();
1076 hr = HRESULT_FROM_WIN32(winEr);
1082 WARN(("VBoxTray: GetMessage returned -1, err %d\n", winEr));
1250 DWORD winEr = vboxDispIfWddmDcCreate(&DispCfg, QDC_ALL_PATHS);
1251 if (winEr != ERROR_SUCCESS)
1253 WARN(("VBoxTray: (WDDM) Failed vboxDispIfWddmDcCreate winEr %d\n", winEr));
1254 return winEr;
1267 DWORD winEr = ERROR_SUCCESS;
1290 winEr = vboxDispIfQueryDisplayConnection(pOp, i, &fConnected);
1291 if (winEr != ERROR_SUCCESS)
1293 WARN(("VBoxTray: (WDDM) Failed vboxDispIfQueryDisplayConnection winEr %d\n", winEr));
1294 return winEr;
1309 return winEr;
1314 DWORD winEr = ERROR_SUCCESS;
1334 winEr = ERROR_SUCCESS;
1338 winEr = ERROR_GEN_FAILURE;
1341 winEr = vboxDispIfWaitDisplayDataInited(pOp);
1342 if (winEr != NO_ERROR)
1343 WARN(("VBoxTray: (WDDM) Failed vboxDispIfWaitDisplayDataInited winEr %d\n", winEr));
1345 return winEr;
1369 DWORD winEr = EnableAndResizeDispDev(paDeviceModes, paDisplayDevices, cDevModes, iChangedMode, paDeviceModes[iChangedMode].dmPelsWidth, paDeviceModes[iChangedMode].dmPelsHeight,
1371 if (winEr != NO_ERROR)
1372 WARN(("VBoxTray: (WDDM) Failed EnableAndResizeDispDev winEr %d\n", winEr));
1374 return winEr;
1379 DWORD winEr;
1382 winEr = vboxDispIfWddmResizeDisplay(pIf, iChangedMode, fEnable, paDisplayDevices, paDeviceModes, cDevModes);
1383 if (winEr != NO_ERROR)
1384 WARN(("VBoxTray: (WDDM) Failed vboxDispIfWddmResizeDisplay winEr %d\n", winEr));
1388 winEr = vboxDispIfWddmResizeDisplayVista(paDeviceModes, paDisplayDevices, cDevModes, iChangedMode, fEnable, fExtDispSup);
1389 if (winEr != NO_ERROR)
1390 WARN(("VBoxTray: (WDDM) Failed vboxDispIfWddmResizeDisplayVista winEr %d\n", winEr));
1392 return winEr;
1397 DWORD winEr = NO_ERROR;
1404 winEr = vboxDispIfOpBegin(pIf, &Op);
1405 if (winEr != NO_ERROR)
1407 WARN(("VBoxTray: vboxDispIfOpBegin failed winEr 0x%x", winEr));
1408 return winEr;
1443 winEr = NO_ERROR;
1450 winEr = vboxDispIfUpdateModesWDDM(&Op, iChangedMode, &Size);
1451 if (winEr != NO_ERROR)
1452 WARN(("vboxDispIfUpdateModesWDDM failed %d\n", winEr));
1455 if (winEr == NO_ERROR)
1457 winEr = vboxDispIfResizePerform(pIf, iChangedMode, fEnable, fExtDispSup, paDisplayDevices, paDeviceModes, cDevModes);
1459 if (winEr == ERROR_RETRY)
1463 winEr = NO_ERROR;
1470 return winEr;
1477 DWORD winEr;
1480 winEr = vboxDispIfWddmDcCreate(&DispCfg, QDC_ONLY_ACTIVE_PATHS);
1481 if (winEr != ERROR_SUCCESS)
1483 WARN(("VBoxTray: (WDDM) Failed vboxDispIfWddmDcCreate winEr %d\n", winEr));
1484 return winEr;
1492 winEr = ERROR_OUTOFMEMORY;
1524 winEr = ERROR_SUCCESS;
1529 winEr = vboxDispIfWddmDcSettingsIncludeAllTargets(&DispCfg);
1530 if (winEr != ERROR_SUCCESS)
1532 WARN(("VBoxTray: (WDDM) Failed vboxDispIfWddmDcSettingsIncludeAllTargets winEr %d\n", winEr));
1533 return winEr;
1547 winEr = ERROR_GEN_FAILURE;
1551 winEr = vboxDispIfWddmDcSettingsUpdate(&DispCfg, iPath, pDeviceMode, !fEnabled || fSetTopology, fEnabled);
1552 if (winEr != ERROR_SUCCESS)
1554 WARN(("VBoxTray: (WDDM) Failed vboxDispIfWddmDcSettingsUpdate winEr %d\n", winEr));
1568 winEr = ERROR_GEN_FAILURE;
1572 winEr = vboxDispIfWddmDcSettingsUpdate(&DispCfg, iPath, /* just re-use device node here*/ pDeviceMode, fSetTopology, TRUE);
1573 if (winEr != ERROR_SUCCESS)
1575 WARN(("VBoxTray: (WDDM) Failed vboxDispIfWddmDcSettingsUpdate winEr %d\n", winEr));
1581 winEr = vboxDispIfWddmDcSet(&DispCfg, fSetFlags | SDC_VALIDATE);
1582 if (winEr != ERROR_SUCCESS)
1586 WARN(("VBoxTray: (WDDM) vboxDispIfWddmDcSet validation failed winEr, trying with changes %d\n", winEr));
1591 Log(("VBoxTray: (WDDM) vboxDispIfWddmDcSet topology validation failed winEr %d\n", winEr));
1599 winEr = vboxDispIfWddmDcSet(&DispCfg, fSetFlags | SDC_APPLY);
1600 if (winEr != ERROR_SUCCESS)
1601 WARN(("VBoxTray: (WDDM) vboxDispIfWddmDcSet apply failed winEr %d\n", winEr));
1606 return winEr;
1611 DWORD winEr = vboxDispIfWddmEnableDisplays(pIf, cIds, pIds, fEnable, FALSE, NULL);
1612 if (winEr != ERROR_SUCCESS)
1615 WARN(("VBoxTray: (WDDM) Failed vboxDispIfWddmEnableDisplay mode winEr %d\n", winEr));
1617 Log(("VBoxTray: (WDDM) Failed vboxDispIfWddmEnableDisplay mode winEr %d\n", winEr));
1618 winEr = vboxDispIfWddmEnableDisplays(pIf, cIds, pIds, fEnable, TRUE, NULL);
1619 if (winEr != ERROR_SUCCESS)
1620 WARN(("VBoxTray: (WDDM) Failed vboxDispIfWddmEnableDisplay mode winEr %d\n", winEr));
1623 return winEr;
1629 DWORD winEr;
1632 winEr = vboxDispIfWddmDcCreate(&DispCfg, QDC_ONLY_ACTIVE_PATHS);
1633 if (winEr != ERROR_SUCCESS)
1636 return winEr;
1651 winEr = vboxDispIfWddmEnableDisplaysTryingTopology(pIf, 1, &Id, fEnable);
1652 if (winEr != ERROR_SUCCESS)
1654 WARN(("VBoxTray: (WDDM) Failed vboxDispIfWddmEnableDisplaysTryingTopology winEr %d\n", winEr));
1655 return winEr;
1658 winEr = vboxDispIfWddmDcCreate(&DispCfg, QDC_ONLY_ACTIVE_PATHS);
1659 if (winEr != ERROR_SUCCESS)
1661 WARN(("VBoxTray: (WDDM) Failed vboxDispIfWddmDcCreate winEr %d\n", winEr));
1662 return winEr;
1668 WARN(("VBoxTray: (WDDM) path (%d) is still disabled, going to retry winEr %d\n", winEr));
1681 winEr = vboxDispIfWddmEnableDisplaysTryingTopology(pIf, 1, &Id, fEnable);
1682 if (winEr != ERROR_SUCCESS)
1684 WARN(("VBoxTray: (WDDM) Failed vboxDispIfWddmEnableDisplaysTryingTopology winEr %d\n", winEr));
1685 return winEr;
1688 return winEr;
1693 winEr = vboxDispIfWddmDcSettingsUpdate(&DispCfg, iPath, &paDeviceMode[Id], FALSE, fEnable);
1694 if (winEr != ERROR_SUCCESS)
1698 return winEr;
1702 winEr = vboxDispIfWddmDcSet(&DispCfg, fSetFlags | SDC_VALIDATE);
1703 if (winEr != ERROR_SUCCESS)
1705 WARN(("VBoxTray:(WDDM) pfnSetDisplayConfig Failed to validate winEr %d.\n", winEr));
1709 winEr = vboxDispIfWddmDcSet(&DispCfg, fSetFlags | SDC_SAVE_TO_DATABASE | SDC_APPLY);
1710 if (winEr != ERROR_SUCCESS)
1712 WARN(("VBoxTray:(WDDM) pfnSetDisplayConfig Failed to validate winEr %d.\n", winEr));
1717 return winEr;
1803 DWORD winEr = VBoxGetDisplayConfig(NumDevices, &DevPrimaryNum, &DevNum, paDisplayDevices, paDeviceModes);
1804 if (winEr != NO_ERROR)
1806 WARN(("VBoxTray: vboxDispIfResizeStartedWDDMOp: VBoxGetDisplayConfig failed, %d\n", winEr));
1807 return winEr;
1815 winEr = vboxDispIfConfigureTargetsWDDM(pOp, &cConnected);
1816 if (winEr != NO_ERROR)
1818 WARN(("VBoxTray: vboxDispIfConfigureTargetsWDDM failed winEr 0x%x\n", winEr));
1819 return winEr;
1828 winEr = vboxDispIfWaitDisplayDataInited(pOp);
1829 if (winEr != NO_ERROR)
1830 WARN(("VBoxTray: vboxDispIfResizeStartedWDDMOp: vboxDispIfWaitDisplayDataInited failed winEr 0x%x\n", winEr));
1847 winEr = VBoxGetDisplayConfig(NewNumDevices, &NewDevPrimaryNum, &NewDevNum, paNewDisplayDevices, paNewDeviceModes);
1848 if (winEr != NO_ERROR)
1850 WARN(("VBoxTray: vboxDispIfResizeStartedWDDMOp: VBoxGetDisplayConfig failed for new devices, %d\n", winEr));
1851 return winEr;
1879 winEr = vboxDispIfWddmEnableDisplaysTryingTopology(pOp->pIf, cIds, pIds, FALSE);
1880 if (winEr != NO_ERROR)
1881 WARN(("VBoxTray: vboxDispIfWddmEnableDisplaysTryingTopology failed to record current settings, %d, ignoring\n", winEr));
1887 winEr = vboxDispIfWddmResizeDisplayVista(paNewDeviceModes, paNewDisplayDevices, NewDevNum, i, FALSE, TRUE);
1888 if (winEr != NO_ERROR)
1889 WARN(("VBoxTray: vboxDispIfResizeStartedWDDMOp: vboxDispIfWddmResizeDisplayVista failed winEr 0x%x\n", winEr));
1893 return winEr;
1901 DWORD winEr = vboxDispIfOpBegin(pIf, &Op);
1902 if (winEr != NO_ERROR)
1904 WARN(("VBoxTray: vboxDispIfOpBegin failed winEr 0x%x\n", winEr));
1905 return winEr;
1908 winEr = vboxDispIfResizeStartedWDDMOp(&Op);
1909 if (winEr != NO_ERROR)
1911 WARN(("VBoxTray: vboxDispIfResizeStartedWDDMOp failed winEr 0x%x\n", winEr));
1916 return winEr;
2146 DWORD winEr;
2151 winEr = NO_ERROR;
2156 winEr = vboxDispIfSeamlesTermWDDM(pSeamless);
2161 winEr = ERROR_INVALID_PARAMETER;
2165 if (winEr == NO_ERROR)
2168 return winEr;