Changeset 33386 in vbox for trunk/src/VBox/Main/testcase/tstAPI.cpp
- Timestamp:
- Oct 24, 2010 3:57:55 PM (15 years ago)
- svn:sync-xref-src-repo-rev:
- 66973
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/testcase/tstAPI.cpp
r32718 r33386 1041 1041 #if 0 1042 1042 RTPrintf("\n"); 1043 RTPrintf("Enabling the VRD Pserver (must succeed even if the VM is saved):\n");1044 ComPtr<IVRD PServer> vrdp;1045 CHECK_ERROR_BREAK(sessionMachine, COMGETTER(VRD PServer)(vrdp.asOutParam()));1046 if (FAILED(vrd p->COMSETTER(Enabled)(TRUE)))1047 { 1048 PRINT_ERROR_INFO(com::ErrorInfo(vrd p));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)); 1049 1049 } 1050 1050 else 1051 1051 { 1052 1052 BOOL enabled = FALSE; 1053 CHECK_ERROR_BREAK(vrd p, COMGETTER(Enabled)(&enabled));1054 RTPrintf("VRD Pserver is %s\n", enabled ? "enabled" : "disabled");1053 CHECK_ERROR_BREAK(vrdeServer, COMGETTER(Enabled)(&enabled)); 1054 RTPrintf("VRDE server is %s\n", enabled ? "enabled" : "disabled"); 1055 1055 } 1056 1056 #endif … … 1233 1233 ComPtr<IMachine> machine; 1234 1234 Bstr name = argc > 1 ? argv[1] : "dsl"; 1235 Bstr sessionType = argc > 2 ? argv[2] : " vrdp";1235 Bstr sessionType = argc > 2 ? argv[2] : "headless"; 1236 1236 RTPrintf("Getting a machine object named '%ls'...\n", name.raw()); 1237 1237 CHECK_RC_BREAK(virtualBox->FindMachine(name, machine.asOutParam()));
Note:
See TracChangeset
for help on using the changeset viewer.