Lines Matching refs:NumDevices
330 DWORD NumDevices = 0;
339 NumDevices++;
345 NumDevices++;
353 return NumDevices;
356 DWORD VBoxGetDisplayConfig(const DWORD NumDevices, DWORD *pDevPrimaryNum, DWORD *pNumDevices, DISPLAY_DEVICE *paDisplayDevices, DEVMODE *paDeviceModes)
389 if (DevNum >= NumDevices)
391 LogFlowFunc(("ResizeDisplayDevice: %d >= %d\n", NumDevices, DevNum));
460 DWORD NumDevices = VBoxGetDisplayConfigCount();
462 if (NumDevices == 0 || Id >= NumDevices)
468 LogFlowFunc(("ResizeDisplayDevice: Found total %d devices. err %d\n", NumDevices, GetLastError ()));
470 DISPLAY_DEVICE *paDisplayDevices = (DISPLAY_DEVICE *)alloca (sizeof (DISPLAY_DEVICE) * NumDevices);
471 DEVMODE *paDeviceModes = (DEVMODE *)alloca (sizeof (DEVMODE) * NumDevices);
472 RECTL *paRects = (RECTL *)alloca (sizeof (RECTL) * NumDevices);
475 DWORD dwStatus = VBoxGetDisplayConfig(NumDevices, &DevPrimaryNum, &DevNum, paDisplayDevices, paDeviceModes);
482 if (NumDevices != DevNum)
483 LogFlowFunc(("ResizeDisplayDevice: NumDevices(%d) != DevNum(%d)\n", NumDevices, DevNum));
579 hlpResizeRect(paRects, NumDevices, DevPrimaryNum, Id,
582 for (i = 0; i < NumDevices; i++)
596 for (i = 0; i < NumDevices; i++)
646 for (i = 0; i < NumDevices; i++)
656 for (i = 0; i < NumDevices; i++)