VirtualBox

Ignore:
Timestamp:
Oct 24, 2010 3:57:55 PM (15 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
66973
Message:

VRDE: API changes for the VRDP server separation.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/testcase/tstAPI.cpp

    r32718 r33386  
    10411041#if 0
    10421042        RTPrintf("\n");
    1043         RTPrintf("Enabling the VRDP server (must succeed even if the VM is saved):\n");
    1044         ComPtr<IVRDPServer> vrdp;
    1045         CHECK_ERROR_BREAK(sessionMachine, COMGETTER(VRDPServer)(vrdp.asOutParam()));
    1046         if (FAILED(vrdp->COMSETTER(Enabled)(TRUE)))
    1047         {
    1048             PRINT_ERROR_INFO(com::ErrorInfo(vrdp));
     1043        RTPrintf("Enabling the VRDE server (must succeed even if the VM is saved):\n");
     1044        ComPtr<IVRDEServer> vrdeServer;
     1045        CHECK_ERROR_BREAK(sessionMachine, COMGETTER(VRDEServer)(vrdeServer.asOutParam()));
     1046        if (FAILED(vrdeServer->COMSETTER(Enabled)(TRUE)))
     1047        {
     1048            PRINT_ERROR_INFO(com::ErrorInfo(vrdeServer));
    10491049        }
    10501050        else
    10511051        {
    10521052            BOOL enabled = FALSE;
    1053             CHECK_ERROR_BREAK(vrdp, COMGETTER(Enabled)(&enabled));
    1054             RTPrintf("VRDP server is %s\n", enabled ? "enabled" : "disabled");
     1053            CHECK_ERROR_BREAK(vrdeServer, COMGETTER(Enabled)(&enabled));
     1054            RTPrintf("VRDE server is %s\n", enabled ? "enabled" : "disabled");
    10551055        }
    10561056#endif
     
    12331233        ComPtr<IMachine> machine;
    12341234        Bstr name = argc > 1 ? argv[1] : "dsl";
    1235         Bstr sessionType = argc > 2 ? argv[2] : "vrdp";
     1235        Bstr sessionType = argc > 2 ? argv[2] : "headless";
    12361236        RTPrintf("Getting a machine object named '%ls'...\n", name.raw());
    12371237        CHECK_RC_BREAK(virtualBox->FindMachine(name, machine.asOutParam()));
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