VirtualBox

Changeset 30245 in vbox


Ignore:
Timestamp:
Jun 16, 2010 1:05:30 PM (14 years ago)
Author:
vboxsync
Message:

VRDP: SunFlsh video channel: send frames, configuration (xTracker 4606).

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/VBox/vrdpapi.h

    r28802 r30245  
    958958#define VRDP_QP_VIDEO_CHANNEL         (5)
    959959#define VRDP_QP_VIDEO_CHANNEL_QUALITY (6)
     960#define VRDP_QP_VIDEO_CHANNEL_SUNFLSH (7)
    960961#endif /* VBOX_WITH_VRDP_VIDEO_CHANNEL */
    961962
  • trunk/src/VBox/Main/ConsoleVRDPServer.cpp

    r29518 r30245  
    786786            {
    787787                *(uint32_t *)pvBuffer = (uint32_t)ulQuality;
     788                rc = VINF_SUCCESS;
     789            }
     790            else
     791            {
     792                rc = VINF_BUFFER_OVERFLOW;
     793            }
     794
     795            *pcbOut = sizeof(uint32_t);
     796        } break;
     797
     798        case VRDP_QP_VIDEO_CHANNEL_SUNFLSH:
     799        {
     800            ULONG ulSunFlsh = 0;
     801
     802            com::Bstr bstr;
     803            HRESULT hrc = server->mConsole->machine ()->GetExtraData(Bstr("VRDP/SunFlsh"), bstr.asOutParam());
     804            if (hrc == S_OK && !bstr.isEmpty())
     805            {
     806                com::Utf8Str sunFlsh = bstr;
     807                if (!sunFlsh.isEmpty())
     808                {
     809                    ulSunFlsh = sunFlsh.toUInt32();
     810                }
     811            }
     812
     813            if (cbBuffer >= sizeof(uint32_t))
     814            {
     815                *(uint32_t *)pvBuffer = (uint32_t)ulSunFlsh;
    788816                rc = VINF_SUCCESS;
    789817            }
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