VirtualBox

Changeset 3118 in vbox


Ignore:
Timestamp:
Jun 15, 2007 11:29:48 AM (18 years ago)
Author:
vboxsync
Message:

Report monitors in the windows guest video driver.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/WINNT/Graphics/Miniport/VBoxVideo.cpp

    r2981 r3118  
    15411541   PULONG pUnused)
    15421542{
    1543    dprintf(("VBoxVideo::VBoxVideoGetChildDescriptor\n"));
    1544    return ERROR_NO_MORE_DEVICES;
     1543    dprintf(("VBoxVideo::VBoxVideoGetChildDescriptor\n"));
     1544
     1545    DEVICE_EXTENSION *pDevExt = (DEVICE_EXTENSION *)HwDeviceExtension;
     1546
     1547    if (ChildEnumInfo->ChildIndex > 0)
     1548    {
     1549        if (   (ChildEnumInfo->ChildIndex == 1 && gNumDisplays == 0)
     1550            || ((int)ChildEnumInfo->ChildIndex <= gNumDisplays)
     1551           )
     1552        {
     1553            *VideoChildType = Monitor;
     1554            *pUId = ChildEnumInfo->ChildIndex;
     1555
     1556            return VIDEO_ENUM_MORE_DEVICES;
     1557        }
     1558    }
     1559
     1560    return ERROR_NO_MORE_DEVICES;
    15451561}
    15461562
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette