Lines Matching defs:session

227     ComPtr<ISession> session;
250 rc = session.createInprocObject(CLSID_Session);
252 RTPrintf("ERROR: failed to create a session object!\n");
528 rc = session->COMGETTER(Machine)(machine.asOutParam());
529 RTPrintf("session->COMGETTER(Machine)=%08X\n", rc);
538 rc = session->COMGETTER(State)(&state);
539 RTPrintf("session->COMGETTER(State)=%08X\n", rc);
1017 // open a (direct) session
1027 RTPrintf("Opening a session for this machine...\n");
1028 CHECK_RC_BREAK(virtualBox->OpenSession(session, guid));
1031 RTPrintf("Getting machine session object...\n");
1032 CHECK_RC_BREAK(session->COMGETTER(Machine)(sessionMachine.asOutParam()));
1033 RTPrintf("Accessing the machine within the session:\n");
1055 CHECK_RC_BREAK(session->COMGETTER(Console)(console.asOutParam()));
1074 RTPrintf("Press enter to close session...");
1076 session->Close();
1083 // open a remote session
1093 RTPrintf("Opening a remote session for this machine...\n");
1095 CHECK_RC_BREAK(virtualBox->OpenRemoteSession(session, guid, Bstr("gui"),
1097 RTPrintf("Waiting for the session to open...\n");
1100 RTPrintf("Getting machine session object...\n");
1101 CHECK_RC_BREAK(session->COMGETTER(Machine)(sessionMachine.asOutParam()));
1104 CHECK_RC_BREAK(session->COMGETTER(Console)(console.asOutParam()));
1105 RTPrintf("Press enter to pause the VM execution in the remote session...");
1108 RTPrintf("Press enter to close this session...");
1110 session->Close();
1117 // open an existing remote session
1127 RTPrintf("Opening an existing remote session for this machine...\n");
1128 CHECK_RC_BREAK(virtualBox->OpenExistingSession(session, guid));
1130 RTPrintf("Getting machine session object...\n");
1131 CHECK_RC_BREAK(session->COMGETTER(Machine)(sessionMachine.asOutParam()));
1141 CHECK_RC_BREAK(session->COMGETTER(Console)(console.asOutParam()));
1142 RTPrintf("Press enter to pause the VM execution in the remote session...");
1145 RTPrintf("Press enter to close this session...");
1148 session->Close();
1261 // Note that one needs to set up metrics after a session is open for a machine.
1304 // Open session
1307 CHECK_ERROR_BREAK(machine, LaunchVMProcess(session, sessionType.raw(),
1313 // RTPrintf("Getting machine session object...\n");
1314 // CHECK_ERROR_BREAK(session, COMGETTER(Machine)(sessionMachine.asOutParam()));
1317 // Note that one needs to set up metrics after a session is open for a machine.
1332 CHECK_ERROR_BREAK(session, COMGETTER(Console)(console.asOutParam()));
1340 //RTPrintf("Press enter to pause the VM execution in the remote session...");
1390 RTPrintf("Press enter to close this session...");
1392 session->UnlockMachine();
1508 /* open a session for the VM (new or shared) */
1509 CHECK_ERROR_BREAK(machine, LockMachine(session, LockType_Shared));
1511 CHECK_ERROR_BREAK(session, COMGETTER(Type)(&st));
1518 /* get the mutable session machine */
1519 session->COMGETTER(Machine)(machine.asOutParam());
1531 RTPrintf("Press enter to close this session...");
1533 session->UnlockMachine();
1544 /* open a session for the VM (new or shared) */
1545 CHECK_ERROR_BREAK(machine, LockMachine(session, LockType_Shared));
1546 /* get the mutable session machine */
1547 session->COMGETTER(Machine)(machine.asOutParam());
1569 RTPrintf("Press enter to close this session...");
1571 session->UnlockMachine();