VirtualBox

Ignore:
Timestamp:
Jun 24, 2010 6:51:20 PM (15 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
63086
Message:

crOpenGL: wddm friendly windows info tracking + more consistent updates (disabled except windows yet)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostServices/SharedOpenGL/crserver/crservice.cpp

    r29019 r30440  
    277277        }
    278278
     279        case SHCRGL_GUEST_FN_INJECT:
     280        {
     281            Log(("svcCall: SHCRGL_GUEST_FN_INJECT\n"));
     282
     283            /* Verify parameter count and types. */
     284            if (cParms != SHCRGL_CPARMS_INJECT)
     285            {
     286                rc = VERR_INVALID_PARAMETER;
     287            }
     288            else
     289            if (    paParms[0].type != VBOX_HGCM_SVC_PARM_32BIT /* u32ClientID */
     290                 || paParms[1].type != VBOX_HGCM_SVC_PARM_PTR   /* pBuffer */
     291               )
     292            {
     293                rc = VERR_INVALID_PARAMETER;
     294            }
     295            else
     296            {
     297                /* Fetch parameters. */
     298                uint32_t u32InjectClientID = paParms[0].u.uint32;
     299                uint8_t *pBuffer  = (uint8_t *)paParms[1].u.pointer.addr;
     300                uint32_t cbBuffer = paParms[1].u.pointer.size;
     301
     302                /* Execute the function. */
     303                rc = crVBoxServerClientWrite(u32InjectClientID, pBuffer, cbBuffer);
     304                if (!RT_SUCCESS(rc))
     305                {
     306                    Assert(VERR_NOT_SUPPORTED==rc);
     307                    svcClientVersionUnsupported(0, 0);
     308                }
     309
     310            }
     311            break;
     312        }
     313
    279314        case SHCRGL_GUEST_FN_READ:
    280315        {
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