VirtualBox

Changeset 25030 in vbox


Ignore:
Timestamp:
Nov 26, 2009 7:41:42 PM (15 years ago)
Author:
vboxsync
Message:

Removed ExtraData VRDPBindPort, etc. Now there is a proper API.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/ConsoleVRDPServer.cpp

    r23643 r25030  
    707707        {
    708708            com::Bstr bstr;
    709             HRESULT hrc = server->mConsole->machine ()->GetExtraData(Bstr("VBoxInternal2/VRDPPortRange"), bstr.asOutParam());
    710             if (hrc != S_OK || bstr == "")
    711             {
    712                 hrc = server->mConsole->getVRDPServer ()->COMGETTER(Ports) (bstr.asOutParam());
    713             }
     709            HRESULT hrc = server->mConsole->getVRDPServer ()->COMGETTER(Ports) (bstr.asOutParam());
     710
    714711            if (hrc != S_OK)
    715712            {
     
    770767           
    771768            server->mVRDPBindPort = port;
    772 
    773             com::Bstr bstr = Utf8StrFmt("%d", port);
    774 
    775             server->mConsole->machine ()->SetExtraData(Bstr("VBoxInternal2/VRDPBindPort"), bstr);
    776769
    777770            rc = VINF_SUCCESS;
     
    11431136    console->RegisterCallback(mConsoleCallback);
    11441137
    1145     mConsole->machine ()->SetExtraData(Bstr("VBoxInternal2/VRDPPortRange"), Bstr(""));
    11461138    mVRDPBindPort = -1;
    11471139#endif /* VBOX_WITH_VRDP */
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