VirtualBox

Ignore:
Timestamp:
Mar 30, 2010 8:31:42 PM (15 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
59514
Message:

2d: working multi-monitor + some fixing for working with not-using-VRAM mode

Location:
trunk/src/VBox/Additions/WINNT/Graphics/Miniport
Files:
2 edited

Legend:

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

    r27286 r27839  
    26872687            break;
    26882688        }
     2689# ifdef VBOX_WITH_VIDEOHWACCEL
     2690        case IOCTL_VIDEO_VHWA_QUERY_INFO:
     2691        {
     2692            if (RequestPacket->OutputBufferLength < sizeof (VHWAQUERYINFO))
     2693            {
     2694                dprintf(("VBoxVideo::VBoxVideoStartIO: Output buffer too small: %d needed: %d!!!\n",
     2695                         RequestPacket->OutputBufferLength, sizeof(VHWAQUERYINFO)));
     2696                RequestPacket->StatusBlock->Status = ERROR_INSUFFICIENT_BUFFER;
     2697                return FALSE;
     2698            }
     2699
     2700            if (!pDevExt->pPrimary->u.primary.bHGSMI)
     2701            {
     2702                RequestPacket->StatusBlock->Status = ERROR_INVALID_FUNCTION;
     2703                return FALSE;
     2704            }
     2705
     2706            VHWAQUERYINFO *pInfo = (VHWAQUERYINFO *)RequestPacket->OutputBuffer;
     2707            pInfo->offVramBase = (ULONG_PTR)pDevExt->ulFrameBufferOffset;
     2708            RequestPacket->StatusBlock->Information = sizeof (VHWAQUERYINFO);
     2709            Result = TRUE;
     2710            break;
     2711        }
     2712# endif
    26892713#endif /* VBOX_WITH_HGSMI */
    2690 
    26912714        default:
    26922715            dprintf(("VBoxVideo::VBoxVideoStartIO: Unsupported %p, fn %d(0x%x)\n",
  • trunk/src/VBox/Additions/WINNT/Graphics/Miniport/vboxioctl.h

    r22548 r27839  
    6363#define IOCTL_VIDEO_HGSMI_QUERY_PORTPROCS \
    6464    CTL_CODE(FILE_DEVICE_VIDEO, 0x434, METHOD_BUFFERED, FILE_ANY_ACCESS)
     65
     66#define IOCTL_VIDEO_VHWA_QUERY_INFO \
     67    CTL_CODE(FILE_DEVICE_VIDEO, 0x435, METHOD_BUFFERED, FILE_ANY_ACCESS)
    6568
    6669#endif /* VBOX_WITH_HGSMI */
     
    167170} HGSMIHANDLERDISABLE;
    168171
     172# ifdef VBOX_WITH_VIDEOHWACCEL
     173typedef struct _VHWAQUERYINFO
     174{
     175    ULONG_PTR offVramBase;
     176} VHWAQUERYINFO;
     177# endif
     178
    169179#endif /* VBOX_WITH_HGSMI */
    170180#pragma pack()
Note: See TracChangeset for help on using the changeset viewer.

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